Posts: 18
Threads: 9
Joined: Jan 2005
LTRIM$ function both in QB and FB trims out just leading spaces, not whitespaces. By C convention, tab characters, spaces, and line ends are members of whitespaces.
May I suggest TRIM$ function which is new to FB trims ALL leading whitespaces as well as trailing ones, not just spaces.
Geo
Posts: 1,439
Threads: 15
Joined: Apr 2003
Trim$ is in more recent versions of VB (2 and up iirc), and it only trims the ASCII SPC char, the same as the FB runtime function.
Posts: 18
Threads: 9
Joined: Jan 2005
Which is more important, C convention or VB convention?
I sure hope it is C convention for our FB which has been adopted with so many C features.
Geo
Posts: 4,307
Threads: 63
Joined: May 2003
uh...conventions suck. IMHO there should be two functions one for each type of 'whitespace removal'.
Posts: 838
Threads: 17
Joined: Jan 2002
Add it to the user lib, since either function is useful, and neither is hard to do.
url=http://www.copy-pasta.com]CopyPasta[/url] -
FilePasta