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]
lcString = ""
For lnItem=1 to 1024
lcString = lcString + Chr(aStruct[lnItem])
Endfor
For lnItem=1 to 1024
aStruct[lnItem] = Asc(Substr(lcString,lnItem,1))
Endfor
Christof
--
Christof