Right justify
Posted in 1999
Bill Zega — — source: Informix-list mailing list archive (1991-1998)
Are there any right_justify functions out there? I need a function that receives a character parameter (char(100) max), and returns the parameter right justified. My main problem is that I cannot figure out how to size a char variable INCLUDING trailing spaces. Example: char_var char(10) let char_var="abc " # Note: length(char_var)=3, not 10 let char_var=right_justify(char_var) char_var should now be " abc" (7 spaces, "abc") Thanks!