Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Scatter problem
Message
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Title:
Miscellaneous
Thread ID:
00477283
Message ID:
00477302
Views:
27
>FoxPro creates the object with a baseclass of "EMPTY". EMPTY is not a baseclass that you can use to do anything with.
>
>Just off the top of my head, a quick fix for this, (assuming you don't want to build the object yourself) could be to add the memo fields to a cursor then scatter. How about something like this?
>
>
>CREATE TABLE cTest(cName c(20),cNumber n(10))
>CREATE TABLE cTemp(cMemo m)
>
>SELECT cTest.*, cTemp.cMemo FROM cTest, cTemp INTO CURSOR cTestWithMemos
>
>SCATTER MEMO NAME oTest
>
>
>
>FYI, a MEMO field SCATTERed to an object just comes out to be an empty text property.

Only in case of the code like above, which produces the empty cursor as there are no records in source tables. If you have a valid record with some memo content in cTestWithMemos cursor, the memo text will appear in oTest.cMemo property.
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform