Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grabbing a range in excel and putting it into a cursor i
Message
De
01/06/2007 09:59:46
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
01/06/2007 09:54:48
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Vista
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01229777
Message ID:
01229786
Vues:
13
>>>I have a VFP screen into which I want to import a range from an existing XLS sheet
>>>I imagine having the screen open in VFP. By prssing a button the excel sheet comes to the forground. I highlight a range let's say k144:o162 and by either copying it to the clipbord or executing an excel macro pushing the values of the range into an array and returning it into a VFP array
>>>
>>>is this possible?
>>>
>>>
>>>Peter
>>
>>I think it's possible. You would analyze the selected range and assign values from columns to field values.
>>
>>I have a function which imports Excel sheet into a DBF. I think this function can be used as a starting point...
>>
>>It also probably can be done through Clipboard functions, but I'm not sure yet how.
>
>Thanks

Clipboard would be faster, if it can be done: A speed bottleneck is, how many messages are exchanged between VFP and Excel.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform