PDA

View Full Version : Function alias problem



xLeaves
11-07-2019, 07:12
Alias UCase$ As UCase
Alias Left$ As Left

The above two functions cannot be used as aliases

I tried to remove the $ of the string handler because it didn't work well when I typed,

which slowed down the input of the code.

But the above two functions can't do this.

The error message tells me that the identifier is occupied.

But in fact, I checked the help file and found no identifiers that were occupied.

If you can, I want ThinBasic to add the identifier revocation feature.

In addition to grammar reserved words,

Other identifiers can be reassigned or removed.

So I can make the ThinBasic transformation more convenient to use.



From google translation, Chinese to English.

DirectuX
11-07-2019, 10:13
Hi,

ucase and ucase$ are reserved keywords : https://www.thinbasic.com/public/products/thinBasic/help/html/thinbasic_1_10_0_0_kwindex_dyn.html#U

so are left and left$ : https://www.thinbasic.com/public/products/thinBasic/help/html/thinbasic_1_10_0_0_kwindex_dyn.html#L

ErosOlmi
11-07-2019, 19:33
As DirectuX correctly stated ...
Left$ and Left
Ucase$ and Ucase
are all thinBasic keywords.

Ucase is used in ARRAY SCAN ... collation ... https://www.thinbasic.com/public/products/thinBasic/help/html/index.html?array_scan.htm
Left is used in bits shifting ... https://www.thinbasic.com/public/products/thinBasic/help/html/index.html?shift.htm

So they cannot be used as new keywords in ALIAS