Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
AddProperty In a DLL
Message
De
18/09/1999 18:33:55
 
 
À
18/09/1999 18:09:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00266410
Message ID:
00266411
Vues:
25
>I am currently trying to use the AddProperty method of a Session Object to add properties dynamically at run time. When running my code in development mode the properties appear to be there. After compiling the code into a DLL the properties are not there. What's up with that? Heres some similar code
>DEFINE CLASS oMyobject AS SESSION OLEPUBLIC
>  DIMENSION aRecordSet[2,4]
>
>  PROCEDURE LOADCURSORS
>     WITH THIS
>        .aRecordSet[1,1] = "MYTABLE1"
>        .aRecordSet[2,1] = "MYTABLE2"
>     ENDWITH
>  ENDPROC
>
>  PROCEDURE LOADDE
>     WITH THIS
>        FOR i = 1 TO ALEN(.aRecordSet,1)
>            .AddProperty(.aRecordSet[i,1])
>        ENDFOR
>     ENDWITH
>  ENDPROC
>
>ENDDEFINE
>
>When running the DLL:
>ox = CREATEOBJECT("MYAPP.oMYOBJECT")
>ox.LoadCursors()
>ox.LoadDE()
>
>
>When running the development code:
>change the object from being olepublic then
>
>ox = CREATEOBJECT("oMYOBJECT")
>ox.LoadCursors()
>ox.LoadDE()
>
>In development properties appear in debugger
>in DLL properties should but do not appear in DLL

I am not sure why you are adding the names of your tables as properties.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform