Improving the functionality of calc:

  • It would be very advantageous to add calc the subtraction:

    set(myvar,' mystringbla');
    set(myvar2,calc(myvar+' bla'));
    set(myvar3,calc(myvar2-'bla'));

    trace(get(myvar)); >>> mystringbla
    trace(get(myvar2)); >>> mystringblabla

    trace(get(myvar3)); >>> NaN >>> With a new functionality it would be: mystringbla

    Perhaps it will be better to subtract number of characters, for example 6 chars:
    set(myvar3,calc(myvar2-6)); >>> It would return mystring

    Best Regards,
    Fernando

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!