Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Vfp50 - How do I change a MEMO field to a CHARACTER fiel
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00032148
Message ID:
00032258
Views:
36
>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform