Undocumented features (or at least I think so)

Hi

Alright, two last ones in the category of undocumented features (I think I’ve gone through everything this time!)

s = REPLACE(source, pos, str [, len])
The str argument in REPLACE can now be a number.

Example:

a = "1234"  
num = 9  
b = replace(a, 2, num, 2)

Found in: core/samples/distro-examples/tests/replace-test.bas, line 15

OPTION keyword

OPTION PREDEF AUTOLOCAL
All variables are local by default.

Found in: core/samples/distro-examples/tests/scope.bas, line 1

That’s all folks.
JF

1 Like