Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Concatenating counter and object value
#1
Solved: 10 Years, 9 Months, 1 Week ago
In do while loop i want to concatenate txtFirstName with counter value like Kim1
Kim2
code im using for it:
Code:
counter = 1
Do
Browser("Softronic - HCMS").Page("Softronic - HCMS_2").WebList("ddlTitle").Select "Ms."
Fname = Browser("Softronic - HCMS").Page("Softronic - HCMS_2").WebEdit("txtFirstName").Set("Kim")
counterstr = CStr(counter)
Fname = Fname + counterstr
Loop while counter <= 5
counter = counter + 1
Fname shows only counter value i.e 1 , it is not showing Kim1 displays 1
Tell me what is wrong with the code?how can i concatenate
Reply


Messages In This Thread
Concatenating counter and object value - by Anum Saleem - 02-21-2012, 10:19 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
Rolleyes concatenating " (double quote) in a string??? vijayendra.shukla 3 18,709 07-05-2011, 08:06 PM
Last Post: rajpes

Forum Jump:


Users browsing this thread: 1 Guest(s)