Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Break up a string of text and variables
#4
Not Solved
What would happen if a charachter is introduced? Probably this would upset if a dynamic text happens to come up.
Honestly, I wasnt quite able to understand completely as to what you intended to do.
Parsing is always an issue and at times requires quite a bit of tweak. Here is one simple example, see if this helps you to achieve what you intend to.
Code:
ostrValue = "WebTableTitleProduct :TypeOfProductExpiration :N/AOrder Status :Order Initiation Project Id :<variable number>Opportunity Id :N/ARequest Id :<variable number>Brand :N/ATerm :N/ACommitment :N/A"
oValue = Split(ostrValue,":")

For i = Lbound(oValue) to Ubound(oValue)
    msgbox oValue(i)
Next
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.
Reply


Messages In This Thread
RE: Break up a string of text and variables - by basanth27 - 03-20-2013, 06:58 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Need to Validate Text filed is blank after clicking on the Text box balak89 3 4,974 09-13-2015, 12:06 AM
Last Post: ADITI1992
  How to retrieve specied string from text file nsuresh316 1 2,496 06-09-2015, 12:24 AM
Last Post: nsuresh316
  Replace a string in a word document with another string rekha.naik 8 15,583 11-14-2013, 12:58 PM
Last Post: pranikgarg
  where to declare variables?? ACCBAJPA 0 2,401 10-01-2013, 07:20 PM
Last Post: ACCBAJPA
  I am trying to extract text from a webelement but it is generating blank text scenari excellentpawan 2 4,752 08-13-2013, 08:37 PM
Last Post: excellentpawan

Forum Jump:


Users browsing this thread: 1 Guest(s)