Jan 30, 2004 #1 EBOUGHEY Programmer Aug 20, 2002 143 US I would like to delete everything to the right of an '&' ie: John & Sandra (Remove '& Sandra') How would this be accomplished? Thanks for any assistance.
I would like to delete everything to the right of an '&' ie: John & Sandra (Remove '& Sandra') How would this be accomplished? Thanks for any assistance.
Jan 30, 2004 1 #2 darrellblackhawk Programmer Aug 30, 2002 846 US ? left("John & Sandra",at("&","John & Sandra"-1) Darrell Upvote 0 Downvote
Jan 30, 2004 #3 EzLogic Programmer Aug 21, 2001 1,230 US cStr = 'John & Sandra' ? SUBSTR(cStr,1,AT('&',cStr)-1) Ali Koumaiha TeknoSoft Inc Farmington Hills, Michigan Upvote 0 Downvote
cStr = 'John & Sandra' ? SUBSTR(cStr,1,AT('&',cStr)-1) Ali Koumaiha TeknoSoft Inc Farmington Hills, Michigan
Jan 30, 2004 #4 EzLogic Programmer Aug 21, 2001 1,230 US Darrel, nice that he has 2 options.. a Left() or a Substr() to use.. Ali Koumaiha TeknoSoft Inc Farmington Hills, Michigan Upvote 0 Downvote
Darrel, nice that he has 2 options.. a Left() or a Substr() to use.. Ali Koumaiha TeknoSoft Inc Farmington Hills, Michigan
Jan 30, 2004 #5 Dan Freeman Programmer Apr 28, 2003 1,965 US Here's a third option: StrExtract("John & Sandra","","&" Upvote 0 Downvote
Jan 30, 2004 Thread starter #6 EBOUGHEY Programmer Aug 20, 2002 143 US This worked great. Thanks so much for answering so quickly. REPLACE ALL t with left(first,at("&",first)-1) replace all first with t for !empty(t) Upvote 0 Downvote
This worked great. Thanks so much for answering so quickly. REPLACE ALL t with left(first,at("&",first)-1) replace all first with t for !empty(t)
Jan 30, 2004 #7 craigsboyd IS-IT--Management Nov 9, 2002 2,839 US TecknoSDS, nice that he has 2 options ...gender here is not always masculine, some of our best members are female. Elena didn't notice or take offense, but I thought I would mention it. Slighthaze = NULL craig1442@mchsi.com"Whom computers would destroy, they must first drive mad." - Anon Upvote 0 Downvote
TecknoSDS, nice that he has 2 options ...gender here is not always masculine, some of our best members are female. Elena didn't notice or take offense, but I thought I would mention it. Slighthaze = NULL craig1442@mchsi.com"Whom computers would destroy, they must first drive mad." - Anon