QB64 Bug: LEN(integer variable) does not work

by qbguy (no login)

Program that produces the bug:
i% = 32767
PRINT LEN(i%)

QBASIC produces 2. QB64 produces C++ error.

LEN(non string variable) should return the size in bytes of the variable.

LEN(stringexpression$)
  or
LEN(variable)

    ■ stringexpression$ A string constant or string expression.
■ variable Identifies the object for which you want the
number of required bytes.

Returns
The number of characters in stringexpression$ or the number of bytes
required by variable.

Posted on Apr 16, 2008, 10:22 AM
from IP address 72.48.236.6

Respond to this message   

Return to Index


Response TitleAuthor and Date
* This could be implemented in C++ using sizeofqbguy on Apr 16
 You may be right.rpgfan3233 on Apr 16
  There can be an array and a scalar with the same nameqbguy on Apr 16
   * Really? That annoys me a lot!rpgfan3233 on Apr 16