|
-
Oct 4th, 2000, 07:19 PM
#1
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?
-
Oct 4th, 2000, 09:37 PM
#2
Fanatic Member
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? 
-
Oct 4th, 2000, 10:21 PM
#3
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|