Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Pass an array to a VFP COM Object
Message
De
26/02/1999 00:36:54
 
 
À
26/02/1999 00:26:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00191796
Message ID:
00191799
Vues:
19
>I need to pass a block of data values to a VFP COM Object as a single parameter from C++. The data is a set of short integers, some of which may have a value of zero. This block of data can be stored directly to a memo field with no processing. A C character array will not work because of the zero values. What is the best way to impliment this?

Why not simply pass a string containing comma-separated values, and then parse the string to extract the values on the VFP side, using itoa() to convert the ints to ascii strings, and then just string them together? On the VFP side, uou can spin through the string, taking the VAL of the string (VAL will stop when it hits a non-numeric character like a comma) and then dropping the portion of the string up to and including the first comma found using AT().
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform