FTEST(a$) should return 0 if a$ is the name of an existing file that
can be opened or the name of a directory, but should return a
negative number otherwise. I was surprised to see that the following
program produced 0 instead of -7.
1000 DIM k$(40)
1010 k$=win_j
1020 PRINT FTEST(k$(1 TO
George Gwilt schreef:
FTEST(a$) should return 0 if a$ is the name of an existing file that
can be opened or the name of a directory, but should return a
negative number otherwise. I was surprised to see that the following
program produced 0 instead of -7.
1000 DIM k$(40)
1010
I don't think that this is necessarily a problem with FTEST, but more to
do with the different way in which dimensioned strings are handled (see my
SBASIC/SuperBASIC Reference Manual!!)
You have to be so careful due to the variations in the different
implementations of SuperBASIC/
On most
On 28 Aug 2006 at 14:43, George Gwilt wrote:
FTEST(a$) should return 0 if a$ is the name of an existing file that
can be opened or the name of a directory, but should return a
negative number otherwise. I was surprised to see that the following
program produced 0 instead of -7.
1000
Yes, I've 2 small basic procedures just for that, too - the first one reads
the defauts, stores them and sets them to and the seconed later resets
them to what they were. (And yes, I know that this is fraught with danger if
the first one gets called twice by successive progs before the
The Just Words! web site has been completely rewritten and is available for
your inspection.
When you enter the site you are given a choice of 4 pages:
Downloads speaks for itself.
Dictionaries allows you to download any of the Just Words! range of QTYP
dictionaries.
Help and advice covers
gwicks schreef:
The Just Words! web site has been completely rewritten and is available for
your inspection.
When you enter the site you are given a choice of 4 pages:
Downloads speaks for itself.
Dictionaries allows you to download any of the Just Words! range of QTYP
dictionaries.
On Mon, 28 Aug 2006 21:05:49 +0100, François Van Emelen
[EMAIL PROTECTED] wrote:
gwicks schreef:
The Just Words! web site has been completely rewritten and is available
for
your inspection.
When you enter the site you are given a choice of 4 pages:
Downloads speaks for itself.
George Gwilt wrote:
FTEST(a$) should return 0 if a$ is the name of an existing file that
can be opened or the name of a directory, but should return a
negative number otherwise. I was surprised to see that the following
program produced 0 instead of -7.
1000 DIM k$(40)
1010 k$=win_j