Try b=substr("string,1,3) Rot47: <;F56]52D9:6==@?2GJ]>:=> -----Original Message----- From: programmingblind-bounce@xxxxxxxxxxxxx [mailto:programmingblind-bounce@xxxxxxxxxxxxx] On Behalf Of Alex Hall Sent: Wednesday, May 06, 2009 10:49 To: programmingblind@xxxxxxxxxxxxx Subject: e: hp substr function So what about if I want all chars from the start to the third (str[2])? Thanks. Have a great day, Alex > ----- Original Message ----- >From: "DaShiell, Jude T. CIV NAVAIR 1490, 1, 26" <jude.dashiell@xxxxxxxx >To: <programmingblind@xxxxxxxxxxxxx >Date sent: Wed, 6 May 2009 10:38:20 -0400 >Subject: Re: hp substr function >Looks to be a pretty garden variety substr function. Try if >substr("string",2,1)="-" then (do something) >Also: >A=substr("string",1,2) >Print a >Rot47: <;F56]52D9:6==@?2GJ]>:= >__________ >View the list's information and change your settings at >//www.freelists.org/list/programmingblind __________ View the list's information and change your settings at //www.freelists.org/list/programmingblind __________ View the list's information and change your settings at //www.freelists.org/list/programmingblind