Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do you call a PRG which returns a value?
Message
From
03/11/2011 20:05:45
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, United States
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01527979
Message ID:
01528012
Views:
65
This is interesting. The problem is trying to call a function having a space in the path. If you set path to the function then it works.

try this.
lcfile = "test.vcx" 
SET PATH TO SET("path")+";C:\Program Files (x86)\Microsoft Visual FoxPro 9"
bbb='SCCTextX(lcFile)' 
?eval(bbb) 
>>I tested it on a test prg and it worked fine for me.
>>
>>test.prg
>>
>>LPARAMETERS tcTest
>>?tcTest
>>
>>
>>calling code
>>
>>aaa='test1'
>>bbb='test(aaa)'
>>?EVALUATE(bbb)
>>
>>
>>>>use eval like this.
>>>>
>>>>lcSCCText = Home(1) + 'SCCTextX(lcFile)'
>>>>?eval(lcSCCText) 
>>>>
>>>>
>>>I don't think this will work.
>
>Did you test with the whole path provided?
Previous
Reply
Map
View

Click here to load this message in the networking platform