Yongyao-
> oDB = NEWOBJECT('losmain','sps')
Is SPS a PRG or a VCX? If it's not a VCX, you do need to specify the extension.
> Why I run it ok in the VFP but not the exe file?
It does run in VFP okay? The EXE does not give an error? I'm confused then because I think you are saying you've found the error at the NEWOBJECT line, but if it runs then we are looking in the wrong place?
Anyway, to answer the question, we first have to find out what the problem is.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only