ScriptBasic

Support => Source => Topic started by: Support on October 01, 2022, 10:37:32 AM

Title: LCASE / UCASE Bug
Post by: Support 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>

Title: Re: LCASE / UCASE Bug
Post by: Support 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!