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...
Sorry, that dosen't quite help me....
Maybe a better explanation....
My actual variable $var1 contains the following string "endurance_percent < 50".
$var1 = "endurance_percent < 50";
$var1 is grabbed from a load of text, and there are many others I need to evaluate. What...
I'm sure there's an easy way to do this....
I have a variable, lets call it $var1..
$var1 = "$var2 < 50". Another variable called $var 2...
$var2 = 25....
Is there anyway to do a line like,
if $var1 then ......
so that it substitues for the contents of $var1 and does something like...
I stopped working for Sun about 2 years ago, but still have the Field Reference and Parts manuals.... If there's any part numbers on the enclosures (tho usually they'll be on the drives themselves) I could try and identify them for you. A Sun part number should read xxx-xxxx i.e. 370-1705.
Steve's right,
A cluster would be 1xA5200 connected to 2xE4500 (example)...
If you want to connect 2xA5200 to a single E4500 then, as
Steve says, it's a case of either connecting them to seperate controllers as individual arrays, or daisy-chaining them together, numbering the A5200s 0 and 1...
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.