Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Long string
Message
 
 
To
14/03/1999 17:14:07
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00197423
Message ID:
00197499
Views:
15
Mark,

The length of a string constant in VFP is limited to 255 characters. To get a string longer that that you just have to + smaller strings. You can also not enter on the property sheet a string longer that 255 characters. If you set the property value in code you can get around this.

lcMyLittleString = "abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz "
lcMyBigString = lcMyLittleString + lcMyLittleString + lcMyLittleString
? len( lcMyLittleString ), len( lcMyBigString )

>How can I create a long string (> 255chars)?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform