Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do you call a PRG which returns a value?
Message
De
03/11/2011 20:05:45
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, États-Unis
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Database:
Visual FoxPro
Divers
Thread ID:
01527979
Message ID:
01528012
Vues:
56
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?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform