Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Macro substitution with ASP?
Message
From
18/09/2006 14:06:07
 
 
To
07/09/2006 16:52:33
General information
Forum:
Visual FoxPro
Category:
COMCodebook
Miscellaneous
Thread ID:
01151943
Message ID:
01154820
Views:
16
>>I know this is a little off topic but can someone tell me if there is an equivalent to VFP macro substitution in HTML/ASP? Suppose I have a VFP COM server that creates and returns an object containing data. Such as:
>>
>>oData.P1 = 10
>>oData.P2 = 24
>>oData.P3 = 76
>>etc.
>>
>>In the ASP page I want to write a loop that accesses this data, such as:
>>
>>for i = 1 to n
>>  dataprop = "oData.P" + transform(i)
>>  myvar = &dataprop
>>  do something with myvar . . .
>>next
>>
>>This would be easy in VFP but how would you do it in ASP?
>>
>>Thanks for any insights.
>>
>>- Don
>
>
>If you are using VBscript on the server end, then you can use the Eval() function much like the Evaluate() function in FoxPro.
>
>http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/a4ede5a0-5d7a-4a3e-adea-dad5105d0a2f.asp


Thanks Greg, I suspect that will do the trick.
Previous
Reply
Map
View

Click here to load this message in the networking platform