Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to convert a string to array of byte
Message
From
15/07/2005 06:13:44
 
 
To
15/07/2005 05:19:20
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8
Miscellaneous
Thread ID:
01032941
Message ID:
01032960
Views:
14
>Hi. I am new in FoxPro. I wonder how to convert a string to array of byte in FoxPro. thanks before.
lnStringLen = LEN( YourStringVar)  && Gets the number of chars in the string
DIMENSION  YourArrray(lnStringLen) && makes array of correct number of elements
For I = 1 to lnStringLen 
  YourArrray( I) = SUBSTR( YourStringVar, I, 1)
EndFor
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.
Previous
Reply
Map
View

Click here to load this message in the networking platform