Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 1 -------- le 05/08/2007 @ 22:04 par aldweb
visiteur |
Hello Roy,
I think that the issue does not come from the LEN() function, but from an improper use of MESSAGEBOX(), which does not complain at compilation time (which is something I don't understand, I will have to investigate...). Indeed, only strings or string variables should be passed as the first argument of this function and you pass it a numerical variable.
Try the following code, and you will get the right answer:
'lentest.ibas {CREATORID "LENT"} BEGIN A$="A TEST OF LEN" L=LEN(A$) 'M=MESSAGEBOX(L,0) PRINT L USING 0 : WAIT END
There is not (yet?) a way to carry a long text line over to the next line in iziBasic, sorry.
Cheers, aldweb
|