Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
String too long...
Message
 
 
To
01/03/2002 12:30:51
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00627057
Message ID:
00627149
Views:
19
Tom,

A string constant in VFP can not exceed 254 characters. ie "you can not put more than 254 characters in between quotes"

A string variable can contain megabytes of data.

If you have to work with long blocks of static text build them from smaller string constants:
lcSelect = "select ......" + ;
   " from ....." + ;
   " where ....."
SQLExec( lnConnection, lcSelect )
>I'm trying to pass a string to sql with a length of 500. VFP truncates my string to 254. How do I pass the whole string?
df (was a 10 time MVP)

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

Click here to load this message in the networking platform