Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. drathbone

    VB6 and VBScript

    sorry... got the control now. Thanks for all your help...
  2. drathbone

    VB6 and VBScript

    Top info from both of you, which will eventually solve my problem, but I still can't find the MS Script Control !!
  3. drathbone

    VB6 and VBScript

    This will sound stupid, but I can't find the MS SCript Control anywhere !!! I've got VB6 Pro installed... is it a seperate item ?
  4. drathbone

    VB6 and VBScript

    Ok, it's a stupid question, but how do I execute a bit of VBScript code inside a VB6 application (need to use the eval function) ?? Cheers
  5. drathbone

    Evaluating contents of a string

    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.
  6. drathbone

    Evaluating contents of a string

    Hi, I'm trying to parse a load of text and have a string that contains the following &quot;if endurance_percent < 50&quot;. 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...
  7. drathbone

    Help !! Missing right bracket - error !!

    Cheers Neil... very useful.
  8. drathbone

    Help !! Missing right bracket - error !!

    Cheers... Problem has now been solved. Two missing curly brackets !!
  9. drathbone

    Help !! Missing right bracket - error !!

    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 !!
  10. drathbone

    Help !! Missing right bracket - error !!

    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...
  11. drathbone

    Variable substitution ???

    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...
  12. drathbone

    Variable substitution ???

    :-) 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
  13. drathbone

    Variable substitution ???

    :-) 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 = &quot;$x = 1&quot;; if (contents of $var1 are...
  14. drathbone

    Variable substitution ???

    thats right, but the endurance_percent < 50 bit is ONLY known in the variable $var1....
  15. drathbone

    Variable substitution ???

    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...
  16. drathbone

    Variable substitution ???

    Sorry, that dosen't quite help me.... Maybe a better explanation.... My actual variable $var1 contains the following string &quot;endurance_percent < 50&quot;. $var1 = &quot;endurance_percent < 50&quot;; $var1 is grabbed from a load of text, and there are many others I need to evaluate. What...
  17. drathbone

    Variable substitution ???

    I'm sure there's an easy way to do this.... I have a variable, lets call it $var1.. $var1 = &quot;$var2 < 50&quot;. 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...
  18. drathbone

    identify sun hardware

    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.
  19. drathbone

    How do I cluster 2 A5200's to an E4500?

    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...
  20. drathbone

    Help !! NIS Password problem !!

    Sorted it myself !!! Changed permissions on /var/yp/src and restarted the rpc.yppasswdd daemon.

Part and Inventory Search

Back
Top