Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Long String Problem
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00274923
Message ID:
00275055
Views:
21
My problem is that the string below is getting imported from an ASCII dump (I use fgets to read it in line by line). So I don't know how long it will be beforehand. My end intention is to cut up the long strings into 80-char lines and put each line into a char field (no memos!), but I can't get that far yet. Help?


>Steve,
>
>A string variable's length is only limited by memory available. A single string constant in VFP can not be longer than 256 characters. You'll just have to break it up into parts and concatenate them.
>
>
lcLongString = "a string constant less than 256 char" + ;
>   "another short string constant"
>
>Most of us find it useful to break long string constants at the edge of your normal code window anyway to eliminate the need for horizontal scrolling while doing code edits.
>
>>I have the following :
>>
>>? '18264 DATABASE dumped with following info: Database Name:Apo32, Creation Date and Time:Oct 6, 99(18:18), Pages dumped:26674, Current Sequence:36435 10410385, Sort Order:52, Striped:NO, Number of Dump Devices:1, device info:(VOLID=SQL001 NAME=C:\TST\Apo32_db_dump.199910061818 TYPE=DISK FILE=1)'
>>
>>And VFP6/SP3 complains 'Command contains unrecognized phrase/keyword'
>>
>>But if I do this:
>>
>>? '18264 DATABASE dumped with following info: Database Name:Apo32, Creation Date and Time:Oct 6, 99(18:18), Pages dumped:26674, Current Sequence:36435 10410385, Sort Order:52, Striped:NO, Number of Dump Devices:1, device info:(VOLID=SQ'
>>
>>VFP doesn't mind and prints it OK. How can I get it to work with longer strings? I need to parse this but can't even seem to read it.
>>
>>Thanks.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform