Results 1 to 3 of 3

Thread: Function alias problem

  1. #1
    Member
    Join Date
    Jan 2017
    Location
    changsha China
    Age
    32
    Posts
    80
    Rep Power
    16

    Lightbulb Function alias problem

    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.

  2. #2
    Hi,

    ucase and ucase$ are reserved keywords : https://www.thinbasic.com/public/pro...dex_dyn.html#U

    so are left and left$ : https://www.thinbasic.com/public/pro...dex_dyn.html#L
    ThinBasic 1.11.6.0 ALPHA - Windows 8.1 x64

  3. #3
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,782
    Rep Power
    10
    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/pro...array_scan.htm
    Left is used in bits shifting ... https://www.thinbasic.com/public/pro...html?shift.htm

    So they cannot be used as new keywords in ALIAS
    www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
    Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000

Similar Threads

  1. Can An Alias Contain Spaces
    By peralta_mike in forum Core module
    Replies: 4
    Last Post: 11-05-2011, 21:24
  2. Problem Leaving Callback Function
    By gungadout in forum thinBasic General
    Replies: 12
    Last Post: 07-03-2010, 22:57
  3. Problem with returning a string from a function
    By DavidMead in forum Module SDK (Power Basic version)
    Replies: 4
    Last Post: 26-11-2008, 12:51

Members who have read this thread: 0

There are no members to list at the moment.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •