Database creation error: invalid database name

This forum is for eXpress++ general support.
Message
Author
User avatar
Eugene Lutsenko
Posts: 1649
Joined: Sat Feb 04, 2012 2:23 am
Location: Russia, Southern federal district, city of Krasnodar
Contact:

Database creation error: invalid database name

#1 Post 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" )
Attachments
Безымянный.jpg
Безымянный.jpg (57.67 KiB) Viewed 7047 times

Victorio
Posts: 621
Joined: Sun Jan 18, 2015 11:43 am
Location: Slovakia

Re: Database creation error: invalid database name

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

User avatar
Eugene Lutsenko
Posts: 1649
Joined: Sat Feb 04, 2012 2:23 am
Location: Russia, Southern federal district, city of Krasnodar
Contact:

Re: Database creation error: invalid database name

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

Piotr D
Posts: 129
Joined: Mon Jul 28, 2014 1:26 am
Location: Poznań, Poland

Re: Database creation error: invalid database name

#4 Post 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

Victorio
Posts: 621
Joined: Sun Jan 18, 2015 11:43 am
Location: Slovakia

Re: Database creation error: invalid database name

#5 Post by Victorio »

Eugene, small test program attached,

control your _dbesys FOXCDX settings
Attachments
Eug.zip
(706.95 KiB) Downloaded 364 times

User avatar
Eugene Lutsenko
Posts: 1649
Joined: Sat Feb 04, 2012 2:23 am
Location: Russia, Southern federal district, city of Krasnodar
Contact:

Re: Database creation error: invalid database name

#6 Post 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

User avatar
Eugene Lutsenko
Posts: 1649
Joined: Sat Feb 04, 2012 2:23 am
Location: Russia, Southern federal district, city of Krasnodar
Contact:

Re: Database creation error: invalid database name

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

User avatar
Eugene Lutsenko
Posts: 1649
Joined: Sat Feb 04, 2012 2:23 am
Location: Russia, Southern federal district, city of Krasnodar
Contact:

Re: Database creation error: invalid database name

#8 Post 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

User avatar
Auge_Ohr
Posts: 1406
Joined: Wed Feb 24, 2010 3:44 pm

Re: Database creation error: invalid database name

#9 Post 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.
greetings by OHR
Jimmy

User avatar
Eugene Lutsenko
Posts: 1649
Joined: Sat Feb 04, 2012 2:23 am
Location: Russia, Southern federal district, city of Krasnodar
Contact:

Re: Database creation error: invalid database name

#10 Post 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?

Post Reply