Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MEMOWIDTH, MLINE() and MEMLINES()
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00030321
Message ID:
00030351
Vues:
54
>>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform