Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
AddProperty In a DLL
Message
From
18/09/1999 18:33:55
 
 
To
18/09/1999 18:09:07
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00266410
Message ID:
00266411
Views:
26
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform