General information
Category:
Coding, syntax & commands
>>I have a memo field called comments. I have:
>>SET MEMOWIDTH TO 30
>>REPLACE comments WITH 'a23456789 b23456789 c23456789c'
>>?comments
>>result:
>>a23456789 b23456789
>>c23456789c
>>Since my string is exactly 30 characters long, I might have expected it to print on one line, but it gets worse:
>>?MEMLINES(comments)
>>I get 1, and:
>>?MLINE(comments,1)
>>I get the whole string. Another memo in which I was putting stuff, it kept saying MEMLINES(memofield) = 0 and MLINE(memofield,1) = "" for reasons I also can't determine. Why are these functions not behaving consistently?
>
>May have been eof() on last. Can't explain why prints on 2 lines
>unless there's a hidden chr(13) in there.
Turns out the second one was as EOF(). So much for that one. However, I entered the comment from the keyboard with a REPLACE command without hitting [enter]. There shouldnt be a chr(13) in there.
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only