-->
Page 1 of 1

Let...

PostPosted: Mon Sep 19, 2016 4:21 am
by Oldbod
Not sure what's happning but a bit deja-vu in v3.49 - if I let a variable equal something numeric, I get an error

Error at line 28: Comparaison between string and number!

If I remove the "let" it works fine....

This may be the point where someone says - have you read the documentation lately....

Re: Let...

PostPosted: Thu Sep 22, 2016 3:10 pm
by Luc Volders
Well it is not the DejaVu

I struggled with it myself.

I was using let for assigning a string variable and it was just not working untill I omitted the let

so:
Code: Select alllet test = "bla"

gives an empty string

Code: Select alltest = bla

works.

Luc

Re: Let...

PostPosted: Fri Sep 30, 2016 5:19 pm
by PhilTilson
This may be the point where someone says - have you read the documentation lately....


Yup! Well, not so much the documentation as the thread in this section entitled "Re: Bug in array assignment/recall".

It seems there are definitely problems with LET and, since it is always optional, I have stopped using it altogether. No problems since!

Phil

Re: Let...

PostPosted: Sat Oct 01, 2016 4:21 am
by Luc Volders
You are absolutely right Phil.
It is not a problem in the documentation but a problem in the interpreter itself.

But maybe it is a good idea to mention it in the documentation as new users will likely run into problems with this.

Luc