Page 1 of 1

[Implemented] Better names for some commands

Posted: Wed Jun 05, 2002 7:00 am
by BackupUser
Restored from previous forum. Originally posted by Danilo.

From the german forum wishlist.

ElmarBünning´s wish for PureBasic:
Name commands more like other BASICs (quasi-standard).

Code: Select all

LTrim() , RTrim() and Trim()
instead

Code: Select all

StripLead() and StripTrail()

German PureBasic Forum, http://www.Pure-Board.de



Edited by - Danilo on 11 June 2002 06:07:24

Posted: Wed Jun 05, 2002 8:09 am
by BackupUser
Restored from previous forum. Originally posted by PB.

> Name commands more like other BASICs (quasi-standard).
> LTrim() , RTrim() and Trim() instead StripLead() and StripTrail()

I agree here. I always thought it was strange, for example, that PureBasic
has FindString instead of InStr, which is in every other major BASIC.


PB - Registered PureBasic Coder

Posted: Wed Jun 05, 2002 12:33 pm
by BackupUser
Restored from previous forum. Originally posted by Rings.
which is in every other major BASIC
YES ! So its easier to convert the existing BLOATWARE-Stuff(VB) to Pure.

Its a long way to the top if you wanna .....CodeGuru

Posted: Wed Jun 05, 2002 9:34 pm
by BackupUser
Restored from previous forum. Originally posted by fred.

And all the users will kill me again with previous source compatibility.. Anyway, StripLead() and StripTrail() are badly named and will be rename to LTrim() RTrim() for v3.20.

Fred - AlphaSND

Posted: Wed Jun 05, 2002 9:52 pm
by BackupUser
Restored from previous forum. Originally posted by PB.

> all the users will kill me again with previous source compatibility.

They can just search/replace if need be. There's a lot of free apps out there
that can search/replace any text in a folder (and sub-folders) of files, so it's
not really a real big issue, IMO.

Better to "fix" the "wrong" names now, before the newer users posting here start
getting attached to them. And like Rings said, it makes it quicker and easier
to convert Visual Basic code to PureBasic...

PB - Registered PureBasic Coder

Posted: Thu Jun 06, 2002 2:26 pm
by BackupUser
Restored from previous forum. Originally posted by fred.

Trim() will be part of v3.20.

Fred - AlphaSND