Errore with usual
Posted: Mon Jan 13, 2020 10:33 am
Look at this code, if I omit to indicate the type of the value to return of the MyFunc function, the value of cVal is not Empty.
In previous versions it was not like that, I think.
Thank you
Danilo
FUNCTION start AS VOID
LOCAL cVal AS STRING
cVal := MyFunc()
? empty(cVal)
WAIT
RETURN
FUNCTION MyFunc() // AS STRING
LOCAL cVal AS STRING
RETURN cVal
In previous versions it was not like that, I think.
Thank you
Danilo
FUNCTION start AS VOID
LOCAL cVal AS STRING
cVal := MyFunc()
? empty(cVal)
WAIT
RETURN
FUNCTION MyFunc() // AS STRING
LOCAL cVal AS STRING
RETURN cVal