I have a field where user will enter several file extension (without the "."). I'm drawing a blank as to how to make sure each one is separated by only one space.
I'm thinking basically on closeField I want to replace any consecutive spaces greater than 1 with a single space.
Maintain space between field entries.
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Re: Maintain space between field entries.
Somthing like this I suppose, but suspect it needs a repeat of some sort.keyless wrote:I have a field where user will enter several file extension (without the "."). I'm drawing a blank as to how to make sure each one is separated by only one space.
I'm thinking basically on closeField I want to replace any consecutive spaces greater than 1 with a single space.
on closeField
put me into aString
replace (space & space) with " " in aString
put aString into me
end closeField