Stan Helton
2007-04-23 18:28:05 UTC
Using PB/DOS 3.5 in MS-DOS 6.22 environment.
The MID$() statement does not appear to work as described in the manual.
Syntax as follows:
MID$(DataRecord$, Offset%, Length%) = StringVariable$
is supposed to insert Length% characters of StringVariable$ into DataRecord$
at Offset%, but it doesn't work. It seems to return a NULL string. Offset%
and Length% are NonZero Positive integers.
Is there a problem with this syntax? So far, I've been using a FOR/NEXT loop
as a workaround, but I would really like to be able to use this syntax as
described in the manual.
Thanks,
Stan
The MID$() statement does not appear to work as described in the manual.
Syntax as follows:
MID$(DataRecord$, Offset%, Length%) = StringVariable$
is supposed to insert Length% characters of StringVariable$ into DataRecord$
at Offset%, but it doesn't work. It seems to return a NULL string. Offset%
and Length% are NonZero Positive integers.
Is there a problem with this syntax? So far, I've been using a FOR/NEXT loop
as a workaround, but I would really like to be able to use this syntax as
described in the manual.
Thanks,
Stan