Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
TRIM$ function
#1
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
Reply
#2
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.
Reply
#3
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
Reply
#4
uh...conventions suck. IMHO there should be two functions one for each type of 'whitespace removal'.
Reply
#5
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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)