Results 1 to 3 of 3

Thread: more command probs

  1. #1

    Thread Starter
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    for some reason, I can do this when I use a command line argument:
    Code:
    text1.Text = Command$
    But I can't do this:
    Code:
    If (Command$ <> "") then
        text1.Text = Command$
    End If
    And I have no F**KING clue why its not working, I tried to use Command$ as the index of an array(it was an integer) and an error box comes up saying "Index out of bounds" when I hit debug and float the mouse over the Command$ as the index of the array and the TextTip says that Command$ = Empty, but it obviously has content, as I showed in the first code. What's the deal? Anybody?

  2. #2
    Fanatic Member invitro's Avatar
    Join Date
    Jan 2000
    Location
    Outside your window
    Posts
    547
    Ummmm, it works great for me.
    Try taking the () out of the IF statment.

    Maybe give me more detail on your CODE.
    Like what command$ is = to.
    ok, so... windows takes 1 minute to search for a file on my PC yet google.com takes 1 second to search the entire internet?

  3. #3
    Guest
    Not exactly, but simi-correct, invitro. Half a face --

    Code:
    If (Command$ <> "") then
        text1.Text = Command$
    End If
    If is a KEYWORD (or OPERATOR, depends on you), and not a function. You can either:

    Code:
    If (Command$ <> "") then
        text1.Text = Command$
    End If
    Or

    Code:
    IIf Command$ <> "", text1.Text = Command$, [False]

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