S
Stimp
Hi all,
Having a bit of a headache trying to do this.
I want to create a string with a total length of 160 characters.
The first few characters must always be in the string.. say around 45
characters.
After this I want to append another string, description, which can be
any number of characters long.
I want to truncate this string so that when it is appended onto the
other string it doesn't exceed 160 characters BUT I want it truncated
to the nearest '.'.
I've been messing around with substring but not much luck... anyone done
this before?
Cheers,
Peter
Having a bit of a headache trying to do this.
I want to create a string with a total length of 160 characters.
The first few characters must always be in the string.. say around 45
characters.
After this I want to append another string, description, which can be
any number of characters long.
I want to truncate this string so that when it is appended onto the
other string it doesn't exceed 160 characters BUT I want it truncated
to the nearest '.'.
I've been messing around with substring but not much luck... anyone done
this before?
Cheers,
Peter