Purpose Remove trailing characters Please keep in mind that this is not necessary for space characters, since they are truncated automatically when you use a GuiXT variable unless you have specified ProcessingOption trailingSpace="On" |
Solution // sample value Set V[city] "@@@@@München@@@" // character to remove // length of string in characters // search last non-matching character if V[k>0] and V[trimchar=&V[city](&V[k],&V[k])] Set V[k] &V[k] - 1 goto compare endif // set new string
// test message |
Components |