View Single Post
Old Jul 5th, 2006, 8:38 PM   #1
Keiran
Newbie
 
Join Date: May 2006
Location: uk
Posts: 3
Rep Power: 0 Keiran is on a distinguished road
Send a message via AIM to Keiran Send a message via MSN to Keiran
When using variables things dont work..

Been trying to figure out how to make it work for the last few hours, not sure what to search for on google, so i thought i'd ask here, and *hope* for an answer
If InStr(dmsg, prefix & "makedir") = 1 Then
Dim MakeDirectory As String
'MsgBox dat(4), vbOKOnly, "Testing.."
MakeDirectory = dat(4)
Call MkDir(MakeDirectory)
End If
The code works fine when MakeDirectory = "C:\Testing"
but if i change it to dat(4) which is part of an array, and in the MsgBox shows fine as "C:\Testing" it wont work..
dmsg, refers to the first word/command given to it on the irc server
and dat(4) refers to the second, like
example:
(+Keiran) .makedir C:\Testing
Hope ive explained it Ok !
Thanks
Keiran is offline   Reply With Quote