May 5, 2006 #1 ajr1705 Programmer Apr 12, 2006 27 GB Is there a formula I can use to remove all spaces. I have used the trim command but I want all spaces removed thus from with the text. E.g " AA xx" required data "AAXX"
Is there a formula I can use to remove all spaces. I have used the trim command but I want all spaces removed thus from with the text. E.g " AA xx" required data "AAXX"
May 5, 2006 #2 synapsevampire Programmer Mar 23, 2002 20,180 US Try: replace({table.field}," ","") And if you've numerous, nest them, as in: replace(replace({table.field}," ","")," ","") Or you can loop: whileprintingrecords; stringvar Output:=""; numbervar counter; for counter = 1 to len({table.field}) do( if mid({table.field},counter,1) <> " " then Output:=Output+mid({table.field},counter,1) ); Output -k Upvote 0 Downvote
Try: replace({table.field}," ","") And if you've numerous, nest them, as in: replace(replace({table.field}," ","")," ","") Or you can loop: whileprintingrecords; stringvar Output:=""; numbervar counter; for counter = 1 to len({table.field}) do( if mid({table.field},counter,1) <> " " then Output:=Output+mid({table.field},counter,1) ); Output -k
May 10, 2006 Thread starter #3 ajr1705 Programmer Apr 12, 2006 27 GB Boss sorry for the late reply. Thanks for the help. Upvote 0 Downvote