Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Scatter problem
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Titre:
Divers
Thread ID:
00477283
Message ID:
00477294
Vues:
23
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.


>Hi
>
>create table cTest(cName c(20),cNumber n(10))
>scatter name oTest
>? type('oTest')
>oTest.Addproperty('cTest')
>
>Obtain the message 'addproperty property not found'
>What type is oTest?
>I'm using scatter and need to add memo fields to object, but addpropterty not work
>What can I do?
>
>TIA
Marty Smith, CSQE
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform