PROPER_STRING Function
TonyAngelo
Posts: 315
Anyone have one of these floating around so I don't have to roll my own?
0
Comments
DEFINE_FUNCTION CHAR[20] TITLE_STRING(CHAR str[]){ STACK_VAR CHAR c[2]; if(LENGTH_STRING(str) < 2) return UPPER_STRING(str); c = LEFT_STRING(str,1); GET_BUFFER_CHAR(str); return "UPPER_STRING(c),LOWER_STRING(str)"; }Hmm I just noticed that this was only designed for single words, sorry... it's a start anyway, you'll have to tokenize for spaces and call this function on each part.