Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Struct Variable
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00204069
Message ID:
00204161
Vues:
23
Hi Fred,

>How do I define a struct variable in VFP.

There are several possibilities. For example, I wrote with Mark Wilden a struct class that gives lets you treat a structure as an object including pointers, arrays, etc. But in this particular case you can easily use something like this:
DIMENSION aStruct[1024]

* convert to string
lcString = ""
For lnItem=1 to 1024
   lcString = lcString + Chr(aStruct[lnItem])
Endfor

* convert from string
For lnItem=1 to 1024
   aStruct[lnItem] = Asc(Substr(lcString,lnItem,1))
Endfor
Christof
--
Christof
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform