Author Topic: LCASE / UCASE Bug  (Read 4119 times)

Support

  • Administrator
  • *****
  • Posts: 19
    • View Profile
LCASE / UCASE Bug
« on: October 01, 2022, 10:37:32 AM »
AIR,

As mentioned in the e-mail I sent you, Peter said that these functions need a new mortal variable and the passed variable should be only used for reference only.

Code: Script BASIC
  1. a = "Account"
  2. b = LCASE(a)
  3. PRINT a, "\n"
  4. PRINT b, "\n"
  5.  


C:\sbqbo>sbc t_lcase.sb
account
account

C:\sbqbo>


Support

  • Administrator
  • *****
  • Posts: 19
    • View Profile
Re: LCASE / UCASE Bug
« Reply #1 on: October 01, 2022, 12:26:41 PM »
AIR sent me a fix for LCASE which solved the problem. Keep an eye out in the sandbox for the fix to LCASE and UCASE in string.c.

Thanks AIR!