Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Evaluate() revisited
Message
 
 
To
01/04/1998 13:20:49
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00088744
Message ID:
00088767
Views:
30
>Ok, here we go again with this famous missing Evaluate() function in VB.
>
>After looking for several other alternatives, neither of them can do the job. I really need to evaluate a string in VB.
>
>Assuming lnMaximum=13, I need to obtain the following:
>
>MsgBox(Evaluate(["You can't enter a value greather than "+Str(lnMaximum)]))
>
>Given an array will contains 200 messages. Most of them are messages that contains variable that only the values are, of course, accessible at run time.
>
>Given a specific error message, we will pull out a specific message from this array. There, we need to evaluate the string at that time, and only at that time, as now the lnMaximum value is accessible.
>
>If no Evaluate() function is present in the environment, is thinking of doing that function in C++ makes sense? Or, is any other person has the miracle solution?

Isn't there a way to do this with Resource files and a little Duct tape? :) Actually, can't you return an error number, use that to extract the proper message from the resource file and if you need to show a value (like a limit, maximum, etc), just concatenate it.

If not, could you elaborate a little more because I just understand that you want to use the sentence as an index on an array.

Hugo Dahl
"My get up and go must've got up and went"
-Steve Tyler, Aerosmith
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform