Thanks.
I've no experience with VBSCript, but it sounds the way to go. I presume that there's a control that'll let me use VB Script within a VB 6 application.
Anyway, I'll have a dig around and see what I can come up with.
Thanks again for your help.
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...
hmmm... thanks for running that through (how do you do the parenthesis matching in vi ??)....
I can't find a problem with that line, though.
3 open brackets and 3 close brackets !!
The following is part of a script I'm writing. With this code in I get the above error (read thread title). I've read through this many times and can't find the problem - it's definately in this piece of the code, as if I remove this piece it works fine - any suggestions ??
Code
----
if...
FYI :
The solution mailed to me from perlhelp.com was as follows :
#!/usr/bin/perl
# NOTE: don't use strict
my $variable = 'endurance';
my $condition = '>';
my $value = '70';
$endurance = 0; # this variable can not be declared with 'my'
# because my variables are not in the...
:-)
Thanks a million !!!
You can both be proud in the fact that I got an email from perlhelp.com this morning, suggesting a solution. Whilst their solution did work, it split the $variable up and eval'd each one in turn.
That's solved my problem.
Again, thanks,
Darren
:-) Nope... sorry....
I need to execute the following line :
if (xxx) { ..... }
Where xxx is the contents of a variable, and that variable contains an expression.
so instead of typing :
if ($x = 1) { ..... }
I need a way of executing :
$var1 = "$x = 1";
if (contents of $var1 are...
Okay ;-)
I need to parse a load of text like the following:
1) 4/5/5
2) if endurance_percent < 50 then 10/5/5
4) if endurance_percent < 40 then 4/8/8
10) if score = 3 then 1/1/18
Parsing the text is fine (it's the language for an online game). The above text is supplied by the user and...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.