Results 1 to 4 of 4

Thread: toughy, if you can handle it click here

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Sep 2001
    Posts
    152

    Exclamation toughy, if you can handle it click here

    how would one convert this Visual Basic Code into JavaScript?

    Dim counter As Integer
    Dim counter1 As Integer
    Dim counter3 As Integer
    Dim x As Integer
    Dim i As Integer
    Dim strLockerOpenClosed As String
    List1.Clear

    i = 1

    Do Until counter3 > 60
    For x = 0 To 60 Step i
    truefalse(x) = Not truefalse(x)
    Next x
    i = i + 1
    counter3 = counter3 + 1
    Loop

  2. #2
    Frenzied Member
    Join Date
    Feb 2001
    Posts
    1,140

    Re: toughy, if you can handle it click here

    Code:
    var i = 1;
    
    for (var counter3 = 0; counter3 <= 60; counter3++) {
      for (var x = 0; x <= 60; x++) {
        truefalse[x] = !truefalse[x];
      }
      i++;
    }
    'Course, I'm not sure why you would do any of that.
    Travis, Kung Foo Journeyman
    As always, RTFM.

    WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
    Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
    YBMS, but Mozilla doesn't.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Sep 2001
    Posts
    152

    Exclamation math problem

    I answered a mathmatical word problem with basic code, but due to my schools security system for the computers, it would not let me run any outside EXEs, so i need to put it in a web page to display the answers . Just in case you were wondering

  4. #4
    Frenzied Member
    Join Date
    Feb 2001
    Posts
    1,140
    Well, IE can handle VBScript. I don't know on which platforms. I understand that IE has been ported to MacOS and Solaris, but I don't know it its support for VBScript went with it.
    Travis, Kung Foo Journeyman
    As always, RTFM.

    WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
    Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
    YBMS, but Mozilla doesn't.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width