Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Removing chr(10)
Message
 
To
22/06/2006 11:20:22
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP
Miscellaneous
Thread ID:
01130832
Message ID:
01131211
Views:
10
>>Hi all
>>I have to run a scan/endscan on table and to do the following changes in memo field: if the first letter is chr(10) (empty line/paragraph) remove this line (all the other lines will go up one line).
>>Help please
>
>Replace all yourfield with substr(yourfield,2) for yourfield=chr(10)

If you are using VFP 9 you might be able to use LTRIM().

Replace all yourfield with LTRIM(yourfield,0,chr(10)) for yourfield=chr(10)
Previous
Reply
Map
View

Click here to load this message in the networking platform