Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Execscript and CreateObject problem
Message
From
09/06/2008 14:22:38
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01322627
Message ID:
01322629
Views:
13
Hi Sergey, now the question, why after I add this code HARDCODED in my application before call script, and then run script - NO ERROR?? It looks strange...

>Te ExecScript() dumps the code into temporary PRG, compiles and runs it. It's the same as running external PRG.
>
>>I have a strange behaviour of my application and can't understand whats happen.
>>
>>In my application I use scriping. The script has some lines like
>>
>>loQuery = Createobject("qw_query",lcQueryID)
>>MESSAGEBOX(TYPE("loQuery"))
>>loQuery.ExportQuery("XL5",lcFilename)
>>
>>In the application where I call this script I have a next code
>>
>>SET CLASSLIB TO mks_query.vcx ADDITIVE
>>llReturn = EXECSCRIPT(lcTable.MemoField)
>>
>>Well... I have an error "mks_query.vcx" does not found.. and program offer to locate file on the disk (like a file does not included inside exe). Type("loQuery")="U" !
>>
>>Ok. Then.. In the application I put hardcoded lines:
>>
>>SET CLASSLIB TO mks_query.vcx ADDITIVE
>>oCheck = Createobject("qw_query", lcQueryID)
>>MESSAGEBOX(TYPE("oCheck"))
>>llReturn = EXECSCRIPT(lcTable.MemoField)
>>
>>Now.. when I run application oCheck is object.. and script executed without error (TYPE("loQuery")="O"!!!)
>>
>>Any ideas, what does it means? :(
>>
>>Thanks
>>Denis
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform