|
-
Sep 27th, 2001, 12:36 PM
#1
adding numbers...i cant add
hey, I have this prob, I'm making an app that renames file and the files are name abc-001s.jpg, abc-002s.jpg, etc. So this is what i have:
Dim a as string
a = "001"
do:
filecopy "A:\abc-" & a & "s.jpg", "A:\" & text1.text & ".jpg"
a = a + 1
it makes a turn to 2 when it adds it. so what can i do??!?!?!
-
Sep 27th, 2001, 12:39 PM
#2
PowerPoster
Re: adding numbers...i cant add
Originally posted by InternalError
it makes a turn to 2 when it adds it. so what can i do??!?!?!
Isn't that what you want?
-
Sep 27th, 2001, 12:57 PM
#3
i think he means ..its 2 instead of 002
try this:
VB Code:
a = 1
Do:
FileNm = "abc-" & Format(a, "000") & "s.jpg"
Filecopy "A:\" & FileNm , "A:\" & text1.text & ".jpg"
a = a + 1
JPnyc rocks!! (Just ask him!)
If u have your answer please go to the thread tools and click "Mark Thread Resolved"
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
|