-
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?
-
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.
-
Not exactly, but simi-correct, invitro. Half a face -:rolleyes:-
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]