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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

4gl help with trim function 1

Status
Not open for further replies.

davehill1974

Technical User
Oct 28, 2003
14
0
0
GB
Hi,
I need to get rid of whitespace and a trailing charecter return at the end of the line ive tried trim(fieldname) but just get an error. Also i believe chomp() may get rid of the charecter return. I have no idea how to use chomp() can anybody help?
Here is a snippet of the code....

function get_info()

let imei = job.js_phone_code

i changed this to...

function get_info()

let imei = trim(job.js_phone_code)

I'm guessing that I have completely got the syntax wrong, but hey i'm new to 4gl.

Thanks.
 
Have a look at CLIPPED

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top