Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

 
 
Thread Tools Display Modes
Prev Previous Post in Thread   Next Post in Thread Next
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
 

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 3:08 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC