Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Struct Variable
Message
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00204069
Message ID:
00204161
Views:
25
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
Previous
Reply
Map
View

Click here to load this message in the networking platform