|
-
Oct 21st, 2007, 07:43 PM
#1
Thread Starter
Member
How to add data in a variable
Hi guys, im having trouble with my script about data adding to a variable, here is the scenario :
dim buff as string,message1 as string,message2 as string _
combineMessage as string,realMess as string
buff = "" <--- initial variable
for x = 1 to 10
message1=mid(realMess,x,1)
combineMessage=message1 & buff <--- combine the two message
buff=left(combineMessage,2) <--- get the data to be added for the next loop
next
what i wanted is after getting the buff data, its contents will be added to the combineMessage after the next loop, but what happens is the same buff data i being generated.
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
|