Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Evaluate recordset field
Message
General information
Forum:
Visual Basic
Category:
Other
Miscellaneous
Thread ID:
00602891
Message ID:
00602916
Views:
15
>Hi,
>
>Is there any function in VB similar to VFP EVAL()/ macro substitution (&).
>
>TIA
>Ajay Mishra
>MCP
>www.konstruct.com


this is copied from a previous message (original poster JCF)
Dim oSC As ScriptControl
Dim iVal As Integer
Set oSC = New ScriptControl
oSC.Language = "VBScript"

Dim toexe As String
toexe = "4*5"
iVal = oSC.Eval(toexe)

MsgBox iVal, vbOKOnly, "Value of iVal"
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Previous
Reply
Map
View

Click here to load this message in the networking platform