Login
Register
Search
Home
Forums
Jobs
LawsonGuru
LawsonGuru Letter
LawsonGuru Blog
Worthwhile Reading
Infor Lawson News Feed
Store
Store FAQs
About
Forums
Integration / Customization
IPA/ProcessFlow
replacement in variables
Home
Forums
Jobs
LawsonGuru
LawsonGuru Letter
LawsonGuru Blog
Worthwhile Reading
Infor Lawson News Feed
Store
Store FAQs
About
Who's On?
Membership:
Latest:
Jeffin Joy
Past 24 Hours:
0
Prev. 24 Hours:
0
Overall:
4988
People Online:
Visitors:
32
Members:
0
Total:
32
Online Now:
New Topics
Top Forum Posters
Name
Points
Greg Moeller
4184
David Williams
3349
Kat V
2984
Woozy
1973
Jimmy Chiu
1883
Kwane McNeal
1437
Ragu Raghavan
1377
Roger French
1315
mark.cook
1244
Chris Martin
825
Forums
Filtered Topics
Unanswered
Unresolved
Active Topics
Most Liked
Most Replies
Search Forums
Advanced Search
Prev
Next
Forums
Integration / Customization
IPA/ProcessFlow
replacement in variables
Please
login
to post a reply.
2 Replies
0
Subscribed to this topic
53 Subscribed to this forum
Sort:
Oldest First
Most Recent First
Author
Messages
TommyT
Veteran Member
Posts: 58
4/19/2011 4:22 PM
I need to strip a variable of certain characters (& / \ etc). I'm using the replace method like this
wname=qryPL.replace("&","")
wname=wname.replace("',"")
wname=wname.replace("/","")
The only replacement that works is whichever character I place in the first_ line. Once I'm acting on the variable
wname
it doesnt work. I can change the characters to be replaced around and only the one in the first line works.
Is there something different I need when acting on the vairiable?
John Henley
Posts: 3366
New Poster
Congrats on posting!
Engaged Reader
You are an engaged reader!
Avid Reader
Avid Reader art thou!
4/19/2011 4:50 PM
Split
Did you try ?
wname=qryPL.replace("&","").replace("',"").replace("/","")
TommyT
Veteran Member
Posts: 58
4/19/2011 7:42 PM
Split
Worked great. Thanks!
Please
login
to post a reply.