Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MLINE(comment,1) in cursor truncates memo field
Message
De
02/03/1999 07:35:46
Bob Tracy
Independent Consultant
Driftwood, Texas, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00192872
Message ID:
00193074
Vues:
21
>>If I do this:
>>SELECT MLINE(comment,1) FROM hdefects INTO CURSOR curTemp WHERE .....
>>I get the first few characters of the memo line but not the entire line. SET
>>MEMOWIDTH doesn't seem to have anything to do with the length of the returned
>>line. What am I overlooking? TIA
>
>You're probably overlooking the fact that the first returned line in a SELECT statement determines the field width for the rest of the lines.
>
>Try SELECT PADR(MLINE(comment, 1), SET('MEMOWIDTH')) AS comment...

Thanks Garrett, that worked fine. I had tried using the _MLINE system variable as the second parameter but that didn't do the trick. Appreciate the help from both you and John.
Bob Tracy

Never engage in a battle of wits if you're only half armed.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform