Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

substring problem..

Status
Not open for further replies.

eja2000

Programmer
Nov 30, 2003
209
NG
i have a string that reads thus;
equipment catalog id=Faxmail;

what i want is to create a variable which will display "Faxmail" (no quotes)

i have several rows of data that are in this format..
in short, i want everything between the "=" sign and the ";" sign..
i am using webi6 ..
thanks
 
Does WebI feature the Pos() and Substr() functions?

Ties Blom
Information analyst
tbl@shimano-eu.com
 
If a variable FRED contains "equipment catalog id=Faxmail;"

then

=SubStr(<fred> ,Pos(<fred> ,"=") ,Length(<fred>)-Pos(<fred> ,"="))

gives Faxmail

It works by using POS to find the position of the = sign to determine the first character required, and then to determine the number of characters to be moved.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top