robertvg
20th June 2007, 11:52
This might be an easy one, but I'm probably overlooking something.
I'm trying to convert a string to a string limited to a max of 9 positions.
If the input string is smaller the full string should be returned, if the input string is larger, lets say 10 positions, then the first position should be cut of instead of the last positions.
I expected that sprint$("%-.9s", input.string) would do it, but it cuts of the last character.
Somebody any idea ?
Thanks in advance,
Robert
I'm trying to convert a string to a string limited to a max of 9 positions.
If the input string is smaller the full string should be returned, if the input string is larger, lets say 10 positions, then the first position should be cut of instead of the last positions.
I expected that sprint$("%-.9s", input.string) would do it, but it cuts of the last character.
Somebody any idea ?
Thanks in advance,
Robert