Joined: 21 Dec 2007
Online Status: Offline
Posts: 4374
Posted: 29 Apr 2010 at 6:42am
the simplest solution that comes to mind would be to do something like:
local stringvar addr:="";
addr:= your exising statment;
addr:=trim(addr); //just to be safe
if right(addr,1) = "," then
addr:= mid(addr,1, len(addr)-1);
addr
this should create the variable that is everything that you are currently displaying, strip off any spaces at the end, and then check if the last character is a comma, if it is, remove it, and finally display the result.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum