Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SDT NeedUpdate/Update not working at client machine
Message
 
 
To
22/10/2000 14:13:49
Adam Skowronski
Custom Designed Systems
Miami, Florida, United States
General information
Forum:
Visual FoxPro
Category:
Stonefield
Miscellaneous
Thread ID:
00432554
Message ID:
00432967
Views:
21
Just to confirm, you added the SDT classes from the \Stonefield\SDT\Source folder to your project? Just make sure they are either included, or provided if excluded. The following is what I have in my apps:

oMeta = NewObject("DBCXMgr", "DBCXMgr.VCX")
if vartype(oMeta) <> "O" or IsNull(oMeta)
return .f.
endif
if !oMeta.oSDTMgr.OpenData(DATABASE_NAME, .t., .f.)
return .f.
endif
return .t.


>Mark, thanks for the suggestion. I have eliminated the duplicate lMeta reference and the code is now as follows, yet when I do the transfer to the second computer and try to run the application, it tells me the 'Database is invalid'.
>
>I changed the 4th property to .T. (to run in debug mode) and it tells me that 'DBCXMGR.VCX' does not exist. As per the manual, both DBCXMGR & SDT are added to the project.
>
>Any other suggestions for me to look at here?
>Thanks,
>
>
>>PRIVATE oMeta
>>oMeta = NEWOBJECT('DBCXMgr', 'DBCXMGR.VCX', '', .F., JustPath(DBC()))
>>IF TYPE('oMeta') <> 'O' OR ISNULL(oMeta)
>> * Error message would be here.
>> * other code to deal with client.
>> CLOSE DATABASE
>> CLEAR EVENTS
>> CLEAR ALL
>> QUIT
>>ENDIF
>>oMeta.SetDatabase(DBC())
>
>>IF oMeta.oSDTMgr.NeedUpdate()
>> WAIT WINDOW "Updating your Application - Please Wait" NOWAIT
>> oMeta.oSDTMgr.Update()
>> WAIT CLEAR
>>ENDIF oMeta.oSDTMgr.NeedUpdate()
Mark McCasland
Midlothian, TX USA
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform