Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Trim MEMO help
Message
From
17/04/2002 08:55:13
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
17/04/2002 08:49:10
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00645842
Message ID:
00645846
Views:
13
>Hi all,
>
>I have many lines of memo fields needed to be trimmed to remove all right blanks :
>
>for example : memos lines
>aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
>bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
>ccccccccccccccccccccccccccccccccccc
>ddddddddddddddddddddddddddddddddddd
>
>I used alltr(memos) still gave :
>aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
>
>bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
>
>ccccccccccccccccccccccccccccccccccc
>
>ddddddddddddddddddddddddddddddddddd
>
>how to get :
>aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbcccccccccccccccccccccddddddddddddddddddddddddddddddddd
>
>please guide me what command to use Mline(), ratline() left()
>
>or sample of coding to remove right blanks until the end .
>
>TIA
>Paul

You want to combine lines? Something like this:
local i, MyText
MyText = ""
for i = 1 to memlines(MyMemo)
  MyText = MyText + mline(MyMemo, i)
next
replace MyMemo with MyText
For a more efficient (faster) approach, read the help on MemLines() (using variable _mline), or use alines().

Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform