Xbase++ 2.0 BUG ?

Xbase++ 2.0 Build 554 or later
Post Reply
Message
Author
User avatar
slobodan1949
Posts: 82
Joined: Mon Apr 25, 2011 8:57 am
Location: SERBIA
Contact:

Xbase++ 2.0 BUG ?

#1 Post 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)

User avatar
SlavkoDam
Posts: 111
Joined: Wed Apr 27, 2022 10:12 am
Location: Negotin, Serbia
Contact:

Re: Xbase++ 2.0 BUG ?

#2 Post 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.
Best regards,

Slavoljub Damnjanovic
SD-SoftDesign, Alaska Software Technology Partner
https://www.sd-softdesign.com
https://www.sd-softdesign.rs

User avatar
slobodan1949
Posts: 82
Joined: Mon Apr 25, 2011 8:57 am
Location: SERBIA
Contact:

Re: Xbase++ 2.0 BUG ?

#3 Post by slobodan1949 »

Hvala Slavko. I mislio sam da je greška.
Thank you, Slavko. And I thought it was a mistake.

Post Reply