Just curious: Is there a problem with using A and A% in the first and B%()
and B% in the second part of my example, respectively? I know, DIM ALL will
be the best choice, but I'm just porting an old DOS program to 8.04 and it
would be very easy for me to proceed as I did in my example program below.
ADDED: my example program works as intended, all results are ok
Thanks and Regards!
Hanns
and B% in the second part of my example, respectively? I know, DIM ALL will
be the best choice, but I'm just porting an old DOS program to 8.04 and it
would be very easy for me to proceed as I did in my example program below.
ADDED: my example program works as intended, all results are ok

Thanks and Regards!
Hanns
Code:
#COMPILE EXE DEFSNG A-B ' <-- cave!! FUNCTION PBMAIN () AS LONG A=1 A%=2 MSGBOX STR$(A)+STR$(A%) DIM B%(1:1) B%(1)=3 B%=4 MSGBOX STR$(B%(1))+STR$(B%) END FUNCTION
Comment