Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Vfp50 - How do I change a MEMO field to a CHARACTER fiel
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00032148
Message ID:
00032258
Vues:
34
>>To make sure your new character field is long enough, type the following in the command window:
>>
>>SELECT MAX(LEN(ALLTRIM(MyMemoField))) AS length FROM MyTable
>>
>>This will give you the length of the longest memo field data string in your table and you can create your character field to be at least that long.
>>
>>HTH
>
>And, in case you have any memos that are really too long (over 255 characters, maybe) you could SET MEMOWIDTH TO 255, check the value of MEMLINES(memofield) for each record, STORE MLINE(memofield,1) TO NewTextField, and
>FOR i = 2 TO MEMLINES(memofield)
>STORE MLINE(memofield,i) TO SomeWhereElseUntilYouFigureOutWhatToDoWithIt(i)
>ENDFOR

thanks Bret for the code...thanks again..rob
Robert Keith
Independent Developer
San Antonio, Texas
E-mail address:
rebelrob1@yahoo.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform