Page 1 of 2

Database creation error: invalid database name

Posted: Wed Jun 30, 2021 10:31 pm
by Eugene Lutsenko
It is not clear why the database creation error occurs: the database name is incorrect:

Code: Select all

   aStructure := { { "Image_name", "C", 250, 0 },;    // Полное   имя файла (с   путем доступа)
                   { "Short_name", "C", 250, 0 },;    // Короткое имя файла (без пути  доступа)
                   { "Xcentr"    , "N",  19, 7 },;    // Координата X центра тяжести
                   { "Ycentr"    , "N",  19, 7 },;    // Координата Y центра тяжести
                   { "Array"     , "M",  10, 0 } }    // Memo-поле с 2d-массивом цветов изображения по пикселям

   DbCreate( "Image.dbf", aStructure, "FOXCDX" )

Re: Database creation error: invalid database name

Posted: Thu Jul 01, 2021 12:10 am
by Victorio
Hi Eugene,

When I test it, for me database creation is ok.
Only I delete comments // ... which is in azbuka
I do not see jpg in attachment.

Re: Database creation error: invalid database name

Posted: Thu Jul 01, 2021 12:34 am
by Eugene Lutsenko
This also works fine in my Eidos system, but it doesn't work in a small program:


------------------------------------------------------------------------------
ERROR LOG of "C:\Aidos-X\_Crypton.exe" Date: 01.07.2021 11:44:01

Xbase++ version : Xbase++ (R) Version 2.00.1314
Operating system : Windows 7 06.01 Build 07601 Service Pack 1
------------------------------------------------------------------------------
oError:args :
-> VALTYPE: C VALUE: Imageeeee
-> VALTYPE: A VALUE: {{"Image_name", "C", 250, 0}, {"Short_name", "C", 250, 0}, {"Xcentr", "N", 15, 7}, {"Ycentr", "N", 15, 7}, {"Array", "M", 10, 0}}
-> VALTYPE: C VALUE: FOXCDX
oError:canDefault : Y
oError:canRetry : N
oError:canSubstitute: N
oError:cargo : NIL
oError:description : Invalid DBE name
oError:filename :
oError:genCode : 61
oError:operation : DbCreate
oError:osCode : 0
oError:severity : 2
oError:subCode : 8050
oError:subSystem : BASE
oError:thread : 1
oError:tries : 0
------------------------------------------------------------------------------
CALLSTACK:
------------------------------------------------------------------------------
Called from GENDBFIMAGE(910)
Called from BMPTOTXT(858)
Called from (B)MAIN(184)
Called from DC_XBPPUSHBUTTON:ACTION(2482)
Called from (B)DC_XBPPUSHBUTTON:INIT(2018)
Called from XBPPUSHBUTTON:HANDLEEVENT(1586)
Called from DC_GETLIST:EVENTLOOP(4661)
Called from DC_GETLIST:READGUI(3841)
Called from DC_READGUI(111)
Called from MAIN(193)

Re: Database creation error: invalid database name

Posted: Thu Jul 01, 2021 12:53 am
by Piotr D
Eugen,
your error is Database Enginee invalid, not database name. Probably you don't have FOXCDX DLL or your DBESYS.PRG don't run these engine.

Piotr

Re: Database creation error: invalid database name

Posted: Thu Jul 01, 2021 1:08 am
by Victorio
Eugene, small test program attached,

control your _dbesys FOXCDX settings

Re: Database creation error: invalid database name

Posted: Thu Jul 01, 2021 6:06 am
by Eugene Lutsenko
Victorio wrote: Thu Jul 01, 2021 1:08 am Eugene, small test program attached,

control your _dbesys FOXCDX settings
For some reason, the attached file does not load. Writes that there is no html

Re: Database creation error: invalid database name

Posted: Thu Jul 01, 2021 6:51 am
by Eugene Lutsenko
Piotr D wrote: Thu Jul 01, 2021 12:53 am Eugen,
your error is Database Enginee invalid, not database name. Probably you don't have FOXCDX DLL or your DBESYS.PRG don't run these engine.

Piotr
This is strange, because everything works on the main program that I am doing

Re: Database creation error: invalid database name

Posted: Thu Jul 01, 2021 1:17 pm
by Eugene Lutsenko
Victorio wrote: Thu Jul 01, 2021 1:08 am Eugene, small test program attached,

control your _dbesys FOXCDX settings
The program is not downloaded from the forum. Could you send me this program to my email: prof.lutsenko@gmail.com

Re: Database creation error: invalid database name

Posted: Thu Jul 01, 2021 2:31 pm
by Auge_Ohr
Eugene Lutsenko wrote: Thu Jul 01, 2021 6:51 am This is strange, because everything works on the main program that I am doing
the Oroginal DBESYS.PRG does NOT include CDX :!:

if it work in your Main App you have include DBESYS somewhere.

Re: Database creation error: invalid database name

Posted: Thu Jul 01, 2021 8:17 pm
by Eugene Lutsenko
Auge_Ohr wrote: Thu Jul 01, 2021 2:31 pm
Eugene Lutsenko wrote: Thu Jul 01, 2021 6:51 am This is strange, because everything works on the main program that I am doing
the Oroginal DBESYS.PRG does NOT include CDX :!:

if it work in your Main App you have include DBESYS somewhere.
Hi, Jimmy! What command can I use to do this?