Hi,
I'm trying to parse a load of text and have a string that contains the following "if endurance_percent < 50".
There's loads of these lines that I need to check, but what I need to do is evaluate if the line would be true or false, so if the string X contained the above, is there anyway I can do something like IF X THEN..... ??
I've written the program in Perl and use the EVAL function, but I'm now trying to port it to VB6.
Also, it would prove difficult to pull out the individual parts of the string and evaluate them, as the string may contain numerous checks, like "if endurance_percent < 50 and score = 1 and opponent = weak....".
Hope someone can help...
Darren Rathbone
I'm trying to parse a load of text and have a string that contains the following "if endurance_percent < 50".
There's loads of these lines that I need to check, but what I need to do is evaluate if the line would be true or false, so if the string X contained the above, is there anyway I can do something like IF X THEN..... ??
I've written the program in Perl and use the EVAL function, but I'm now trying to port it to VB6.
Also, it would prove difficult to pull out the individual parts of the string and evaluate them, as the string may contain numerous checks, like "if endurance_percent < 50 and score = 1 and opponent = weak....".
Hope someone can help...
Darren Rathbone