Problem with database [message #33348] |
Wed, 18 December 2002 07:29 |
Evgeny Turchin
Messages: 12 Registered: August 2002
|
Junior Member |
|
|
Hello, All !
Here is the text of my IDL program Test1.pro.
(1) Pro Test1
(2) SQL = "Insert Into Images (Territory, FileName, DateView) $
Values ('Rom', 'new.tiff', '20.12.02')"
(3) oDB = OBJ_NEW('IDLdbDatabase')
(4) oDB->Connect, DATASOURCE = 'Images'
(5) oRS = OBJ_NEW('IDLdbRecordset', oDB, SQL=SQL)
(6) Obj_Destroy, oRS
(7) Obj_Destroy, oDB
(8) End
When trying to run the program the execution is stopped at line (5) with
error
% Array dimensions must be greater than 0.
The data are correctly put in the table by the program. The data from the
table can be read without problems using
appropriate SQL query and functions used in program Test1.pro. The database
Images is in Paradox format and the
indexing has been done on field Territory.
How can the problem be solved ?
Best regards, Evgeny Turchin.
|
|
|