Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!psuvax1!psuvm!gfx From: GFX@PSUVM.BITNET Newsgroups: comp.sys.mac.hypercard Subject: strings padded with blanks Message-ID: <89230.192452GFX@PSUVM> Date: 18 Aug 89 23:24:52 GMT Organization: Penn State University - Center for Academic Computing Lines: 10 My question looks awfully simple and I suppose I am overlooking the obvious here. Please accept my apologies (and suggest a fix ASAP :-) I have to write numerical values to a field and want them to be aligned. Suppose X1 is an integer between 1 and 99 and X2 is an integer between 1 and 999. I do NOT want leading 0s. What is the most efficient procedure? As far as I can see, I'd have to check the numChar of Xs to determine the length of padding I must insert before them, since numberFormat fills the space with leading 0s. I have tried to set numberFormat to " 0." but it doesn't work (the leading blank is ignored). What am I missing? Stephane