Page 1 of 1

Xbase++ 2.0 BUG ?

Posted: Tue Sep 27, 2022 1:28 pm
by slobodan1949
Does anyone know the answer?
Is this a bug in Xbase++ 2.0
or so it should be.
It is not documented anywhere.


USE [ <cFileName> ;
[ INDEX <cIndexFiles,...> ] ;
[ ALIAS <cAlias> ] ;
[ VIA <cDbeName> | (<oSession>) ] ;
[ NEW ] ;
[ READONLY ] ;
[ EXCLUSIVE | SHARED ] ;
]


<cFileName>
<cFileName> is a literal file name or a character expression
in parentheses containing the name of the file to open.
<cFileName> can contain drive and/or path information.
The default file extension is ".DBF"

Example:

USE 1TEST.DBF NEW EXCLUSIVE // OK
USE 1TEST NEW EXCLUSIVE // Synatx error

rez := "1TEST"
USE (rez) NEW EXCLUSIVE // OK

Also tested under Advantage Database Server (REMOTE SERVER)

Re: Xbase++ 2.0 BUG ?

Posted: Wed Sep 28, 2022 1:43 am
by SlavkoDam
Zdravo Cobo,

This is a bug. The problem is that the first character is a numeric 1. Use the command with character string, instead of literal, for file name: USE "1TEST" NEW.

Re: Xbase++ 2.0 BUG ?

Posted: Thu Sep 29, 2022 3:01 am
by slobodan1949
Hvala Slavko. I mislio sam da je greška.
Thank you, Slavko. And I thought it was a mistake.