Marc, You can use: SET VAR your_text = (RTRIM(.your_text)) to delete all trailing blanks and then use Mike's method to check if the last character is a period; if it is not, add a period.
Javier, Javier Valencia 913-915-3137 -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of MDRD Sent: Wednesday, April 22, 2009 5:23 PM To: RBASE-L Mailing List Subject: [RBASE-L] - Re: Back space Mike I want to be able to push a button that adds a Period to the end of the note field and want to be able to delete the space at the end of the text or back space then add the '.' Thanks for the help Marc -------------------------------------------------- From: "MikeB" <[email protected]> Sent: Wednesday, April 22, 2009 5:15 PM To: "RBASE-L Mailing List" <[email protected]> Subject: [RBASE-L] - Re: Back space > SELECT somenotefield INTO vnote IND vin0 FROM sometable + > WHERE somepkcol = .somepdval > > SET VAR vspace = (CHAR(20)) > IF (SGET(.vnote,1,(SLEN(.vtext)))) = .vspace THEN > PAUSE 2 USING 'Trailing Space Found' > ELSE > PAUSE 2 USING 'Trailing Space NOT Found' > ENDIF > RETURN > > What is the context of the BackSpace? > > ----- Original Message ----- > From: "MDRD" <[email protected]> > To: "RBASE-L Mailing List" <[email protected]> > Sent: Wednesday, April 22, 2009 5:34 PM > Subject: [RBASE-L] - Back space > > > Hi > > Is there a way to see if the last character or thing in a a note field is > a space? > > Also, is there a way to issue a backspace in a EEP? > > Thanks > Marc > >

