CHAIN

Hi everybody,

One of the reasons why version 6.002 has been delayed is the discovery that CHAIN has a bug and since this involves run, compile, bind, TBILT and FORMS, it took some time to resolve. It also accounts for some users (and me) being able to do things in version 6.001 that others found impossible.

CHAIN does NOT work as described in the manual. This bug must have been around for at least 20 years because I have a manual dated 1990 that describes CHAIN in the same way as current manuals.

CHAIN filename$ WITH (arg$) doesn't work
CHAIN filename$ arg$ does work

Be warned that arg$ must not have any spaces otherwise the interpreter will consider arg$ to be multiple arg$. For example:
LET arg$="John Doe"
CHAIN filename$ arg$
This will be interpreted as
CHAIN filename$ arg1$ arg2$
where arg1$="John" and arg2$="Doe"

This is particularly relevant if arg$ is a filename or a pathname. In the days of DOS this didn't matter because DOS didn't allow spaces in filenames or folder names, Windows does. For example:
LET arg$="c:\Program Files\My folder\myfile.txt"
This will be considered as three arg$. This is the feature that caused all the problems with version 6.001.

It is likely that ADMIN will issue a corrected version of the CHAIN descrption for the manual shortly. It is unlikely that CHAIN will be changed in the language system. It will remain as it has always been.

Regards
Big John