Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

Science is to computer science as hydrodynamics is to plumbing.


devel / comp.lang.xharbour / Re: expression error ( in index key )

SubjectAuthor
* expression error ( in index key )Scott Coffey
+* Re: expression error ( in index key )Enrico Maria Giordano
|`* Re: expression error ( in index key )Scott Coffey
| `* Re: expression error ( in index key )Enrico Maria Giordano
|  `- Re: expression error ( in index key )Dlzc
`* Re: expression error ( in index key )Scott Coffey
 `- Re: expression error ( in index key )Dlzc

1
expression error ( in index key )

<ea77tipdqf2gnatsvu9oc1kd7h0ptf902k@4ax.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=18643&group=comp.lang.xharbour#18643

  copy link   Newsgroups: comp.lang.xharbour
Path: i2pn2.org!rocksolid2!news.neodome.net!weretis.net!feeder6.news.weretis.net!panix!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx13.iad.POSTED!not-for-mail
From: none@noemail.com.invalid (Scott Coffey)
Newsgroups: comp.lang.xharbour
Subject: expression error ( in index key )
Organization: .
Message-ID: <ea77tipdqf2gnatsvu9oc1kd7h0ptf902k@4ax.com>
User-Agent: ForteAgent/7.20.32.1218
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 43
X-Complaints-To: abuse@easynews.com
X-Complaints-Info: Please be sure to forward a copy of ALL headers otherwise we will be unable to process your complaint properly.
Date: Mon, 19 Feb 2024 13:28:53 -0500
X-Received-Bytes: 2154
 by: Scott Coffey - Mon, 19 Feb 2024 18:28 UTC

Hoping for a minor miracle here...

I have a Clipper application running on a handheld device (Pocket PC).
I'm using PocketDOS as the OS on the handheld device. I'm trying to
port this application to a handheld running Windows CE 7.0. Although
I had some issues installing PocketDOS on the Windows CE device (was
unable to use the installer and had to install manually), I got it
installed and am able to launch and run the Clipper application on
this device.

The application runs fine until I try to create an index, then the
application fails when I try to use that index.

Example:

Program A uses the following statement:

use c:\SCANFILE.DBF index C:\SCANFILE.NDX alias SCANFILE

That works fine as long as I'm using the original index created on the
old Pocket PC handheld. Then I have a program that does:

if file( "SCANFILE.DBF" ) = .T.
if file( "SCANFILE.NDX" ) = .T.
erase ("SCANFILE.NDX")
endif
use SCANFILE.DBF
index on ITEM to SCANFILE.NDX
endif

That runs OK, but the next time I try to run program A, it fails on
the "use" statement with the error: "expression error ( in index key
)"

The database files and indexes were copied from the working device to
the new device. As stated, accessing the database files via the index
works OK initially, but when I try to recreate the index the program
then fails as described. If I re-copy the files, the program works
again until I try to recreate the index.

Any ideas out there?
--
Scott at Scott dash(-) Coffey dot net

Re: expression error ( in index key )

<ur075a$20rne$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=18644&group=comp.lang.xharbour#18644

  copy link   Newsgroups: comp.lang.xharbour
Path: i2pn2.org!i2pn.org!news.nntp4.net!news.hispagatos.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: e.m.giordano@emagsoftware.it (Enrico Maria Giordano)
Newsgroups: comp.lang.xharbour
Subject: Re: expression error ( in index key )
Date: Mon, 19 Feb 2024 19:37:30 +0100
Organization: A noiseless patient Spider
Lines: 10
Message-ID: <ur075a$20rne$1@dont-email.me>
References: <ea77tipdqf2gnatsvu9oc1kd7h0ptf902k@4ax.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 19 Feb 2024 18:37:30 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="9d2bbec03d1e35d9a8183cbc8f07f9c7";
logging-data="2125550"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18pNSN2nAtgYG0mmIld7W+W"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:N62Fiy4nN619lu12Ka4We4J/8Zc=
In-Reply-To: <ea77tipdqf2gnatsvu9oc1kd7h0ptf902k@4ax.com>
Content-Language: it
 by: Enrico Maria Giordan - Mon, 19 Feb 2024 18:37 UTC

Are you using xHarbour or Clipper?

--
Enrico Maria Giordano

http://www.emagsoftware.it
http://www.emagsoftware.it/emgmusic
http://www.emagsoftware.it/spectrum
http://www.emagsoftware.it/tbosg

Re: expression error ( in index key )

<e5a9til5edvu03ir0lb6aivqu022rbo4ua@4ax.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=18645&group=comp.lang.xharbour#18645

  copy link   Newsgroups: comp.lang.xharbour
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!newsreader4.netcologne.de!news.netcologne.de!peer03.ams1!peer.ams1.xlned.com!news.xlned.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx16.iad.POSTED!not-for-mail
From: none@noemail.com.invalid (Scott Coffey)
Newsgroups: comp.lang.xharbour
Subject: Re: expression error ( in index key )
Organization: .
Message-ID: <e5a9til5edvu03ir0lb6aivqu022rbo4ua@4ax.com>
References: <ea77tipdqf2gnatsvu9oc1kd7h0ptf902k@4ax.com> <ur075a$20rne$1@dont-email.me>
User-Agent: ForteAgent/7.20.32.1218
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 8
X-Complaints-To: abuse@easynews.com
X-Complaints-Info: Please be sure to forward a copy of ALL headers otherwise we will be unable to process your complaint properly.
Date: Tue, 20 Feb 2024 08:27:35 -0500
X-Received-Bytes: 979
 by: Scott Coffey - Tue, 20 Feb 2024 13:27 UTC

On Mon, 19 Feb 2024 19:37:30 +0100, Enrico Maria Giordano
<e.m.giordano@emagsoftware.it> wrote:

>Are you using xHarbour or Clipper?

Clipper S87.
--
Scott at Scott dash(-) Coffey dot net

Re: expression error ( in index key )

<ur2bf1$2hden$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=18646&group=comp.lang.xharbour#18646

  copy link   Newsgroups: comp.lang.xharbour
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: e.m.giordano@emagsoftware.it (Enrico Maria Giordano)
Newsgroups: comp.lang.xharbour
Subject: Re: expression error ( in index key )
Date: Tue, 20 Feb 2024 15:03:14 +0100
Organization: A noiseless patient Spider
Lines: 19
Message-ID: <ur2bf1$2hden$1@dont-email.me>
References: <ea77tipdqf2gnatsvu9oc1kd7h0ptf902k@4ax.com>
<ur075a$20rne$1@dont-email.me> <e5a9til5edvu03ir0lb6aivqu022rbo4ua@4ax.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 20 Feb 2024 14:03:13 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="0d0a2401bd75a6c48e11ffb3e79d40dd";
logging-data="2667991"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/ayLJhTvcuwOgXmgz9IgFm"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:nrtZSJ3T5+dgOQ0MlMj0rXXo+W4=
Content-Language: it
In-Reply-To: <e5a9til5edvu03ir0lb6aivqu022rbo4ua@4ax.com>
 by: Enrico Maria Giordan - Tue, 20 Feb 2024 14:03 UTC

Il 20/02/2024 14:27, Scott Coffey ha scritto:

>> Are you using xHarbour or Clipper?
>
> Clipper S87.

It seems that the new index is not identical to the old one. Check the
index type (NDX/NTX/...) and the index key.

--
Enrico Maria Giordano

http://www.emagsoftware.it
http://www.emagsoftware.it/emgmusic
http://www.emagsoftware.it/spectrum
http://www.emagsoftware.it/tbosg

Re: expression error ( in index key )

<7fb32682-55d8-4838-b0b2-5b579fa4b464n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=18647&group=comp.lang.xharbour#18647

  copy link   Newsgroups: comp.lang.xharbour
X-Forwarded-Encrypted: i=1; AJvYcCUtPd+rOAo4J0pMp4Arf2CEtKLqv2mkDmCAUlfO90scMzYbyWACqgVKjMDx3I9D0LVIoi2Lr2W3+VIi0K71WwnmsPGOynYOgfQCk/Wgde8SpJGG9+k=
X-Received: by 2002:a05:622a:1994:b0:42e:16d3:1b15 with SMTP id u20-20020a05622a199400b0042e16d31b15mr50006qtc.4.1708443755918;
Tue, 20 Feb 2024 07:42:35 -0800 (PST)
X-Forwarded-Encrypted: i=1; AJvYcCUHxVo5gEiFYboKurQdyP6NkLMrbNgHNBY1p7u4UsNzs9iwHBI8TmH7GWFMwzwIWIs55YIYzhXlM26Hg0P72Z4gItGwXn3T204UwBxZGsAujPu+tvU=
X-Received: by 2002:aca:1a0f:0:b0:3c1:4a3f:bc4c with SMTP id
a15-20020aca1a0f000000b003c14a3fbc4cmr24601oia.2.1708443755622; Tue, 20 Feb
2024 07:42:35 -0800 (PST)
Path: i2pn2.org!i2pn.org!news.furie.org.uk!usenet.goja.nl.eu.org!weretis.net!feeder6.news.weretis.net!border-2.nntp.ord.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.xharbour
Date: Tue, 20 Feb 2024 07:42:35 -0800 (PST)
In-Reply-To: <ur2bf1$2hden$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=2600:1700:15df:c8df:2d2e:6664:cf25:aaa;
posting-account=MVjzhQoAAAC9p_5zLm3q76BQ_cMWZzZC
NNTP-Posting-Host: 2600:1700:15df:c8df:2d2e:6664:cf25:aaa
References: <ea77tipdqf2gnatsvu9oc1kd7h0ptf902k@4ax.com> <ur075a$20rne$1@dont-email.me>
<e5a9til5edvu03ir0lb6aivqu022rbo4ua@4ax.com> <ur2bf1$2hden$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <7fb32682-55d8-4838-b0b2-5b579fa4b464n@googlegroups.com>
Subject: Re: expression error ( in index key )
From: turkeyheadedmutha@gmail.com (Dlzc)
Injection-Date: Tue, 20 Feb 2024 15:42:35 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 14
 by: Dlzc - Tue, 20 Feb 2024 15:42 UTC

On Tuesday, February 20, 2024 at 8:03:17 AM UTC-6, Enrico Maria Giordano wrote:
> Il 20/02/2024 14:27, Scott Coffey ha scritto:
>
> >> Are you using xHarbour or Clipper?
> >
> > Clipper S87.
> It seems that the new index is not identical to the old one. Check the
> index type (NDX/NTX/...) and the index key.

S'87 manual Appendix F says the they "key" is damaged. I wonder if the executing program and indexing program are using the same version of compiler and libraries?

David A. Smith

Re: expression error ( in index key )

<r2j9tihm9h18or23fn1gkls5csf4k7av83@4ax.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=18648&group=comp.lang.xharbour#18648

  copy link   Newsgroups: comp.lang.xharbour
Path: i2pn2.org!i2pn.org!newsfeed.endofthelinebbs.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx17.iad.POSTED!not-for-mail
From: none@noemail.com.invalid (Scott Coffey)
Newsgroups: comp.lang.xharbour
Subject: Re: expression error ( in index key )
Organization: .
Message-ID: <r2j9tihm9h18or23fn1gkls5csf4k7av83@4ax.com>
References: <ea77tipdqf2gnatsvu9oc1kd7h0ptf902k@4ax.com>
User-Agent: ForteAgent/7.20.32.1218
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 96
X-Complaints-To: abuse@easynews.com
X-Complaints-Info: Please be sure to forward a copy of ALL headers otherwise we will be unable to process your complaint properly.
Date: Tue, 20 Feb 2024 11:56:51 -0500
X-Received-Bytes: 3436
 by: Scott Coffey - Tue, 20 Feb 2024 16:56 UTC

OK, after doing some additional research, it appears there's a problem
with databases in general.

I have an application that writes records to a database. The writes
appear to be happening (I can open the database in Advantage Data
Architect and the records are there), but I can't read those records
in a subsequent program. The file being written to has no keys and no
associated indexes. So I can write to the file but can't read those
records from the file.

I have the handheld application working on a development PC. I can
take the file that was written on the handheld and copy it to the PC,
and the PC program reads the records with no problem.

The same handheld program that writes the records to the database
first validates that the item number being written is valid, so it
does a lookup via an index on another database. That function is
working. So it can access a database via index to validate a number,
but it can't read do straight reads from a database file.

Here is my compile script:

Clipper C:\Handheld\%1 -oc:\Handheld > errors.txt
IF NOT ERRORLEVEL 1 BLINKER FI C:\Handheld\%1 @c:\CLIPS87\BCL.LNK <
C:\Handheld\C.TXT
IF NOT ERRORLEVEL 1 DEL C:\Handheld\%1.OBJ

Here is my link script:

BLINKER INCREMENTAL OFF
BLINKER EXECUTABLE CLIPPER F45
# BLINKER CACHE XMS 1024, 25%
BLINKER CACHE EMS 1024, 25%
BLINKER OVERLAY FIXED
# BEGINAREA
# #LIB \CLIPS87\EXTEND
#LIB \CLIPS87\NANFOR
# ENDAREA
# FILE \CLIPS87\NDX
@\BLINKER\CLP\LNK\CL87MID.LNK

In summary, the application works on a handheld running Pocket PC OS.
It also works on a development box (A Windows 7 box running in XP
mode). But it's failing on a handheld running Windows CE 7.0. The
only different variable here is the PocketDOS implementation on the
Windows CE device. I've tried reaching out to PocketDOS, but their
stance is that it's a "DOS problem" and they can't help.

Do any of you oldsters out there know of any DOS tweaks that might
help here? Here is my autoexec.bat and config.sys:

autoexec.bat:

cls

rem -----
rem The following line sets the DOS PATH
rem -----
PATH A:\DOS

rem ----
rem Display drive settings (for information only)
rem Type: SETDRIVE /? for more information.
rem Note: SETDRIVE must be run from AUTOEXEC.BAT to enable saved
redirections
rem ----
SETDRIVE NOBANNER
echo.

C:
main.exe (<--- this is the Clipper executable)

*************************

config.sys:

rem ----
rem Load File System Redirector
rem ----
DEVICEHIGH=\DOS\PKTDOSFS.SYS

rem ----
rem Load Expanded Memory (LIM EMS 3.2) Driver
rem ----
DEVICEHIGH=\DOS\EMSMEM.SYS

*************************

Any ideas/suggestions are appreciated.
--
Scott at Scott dash(-) Coffey dot net

Re: expression error ( in index key )

<fbfdfe1f-92d8-4c20-9e8f-b62522b6f7bcn@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=18651&group=comp.lang.xharbour#18651

  copy link   Newsgroups: comp.lang.xharbour
X-Forwarded-Encrypted: i=1; AJvYcCXoeEfxmrjzDrXUj2K0Ww02NLFhgCA3LhLDZDbRptJGhmCcUTUrMK1qD1IdaJKE3OWQDSc2dOg4yvCnYzBDmWBzW0Jgq1e9pcVSlL4nrbHznEnTHNIRuw==
X-Received: by 2002:a05:6214:21ca:b0:68f:7384:485d with SMTP id d10-20020a05621421ca00b0068f7384485dmr477173qvh.7.1708525988173;
Wed, 21 Feb 2024 06:33:08 -0800 (PST)
X-Forwarded-Encrypted: i=1; AJvYcCV1+7YAPYQz0LqpyRRDPiT6iF/G0yB1EE0gZxgWzuyluf3BmiJilxnsmnr2phXefgOYXXnoDEK5cMXyD+M6Ck/m9/YcK1EJ32720ilncTQ5RyD5TJQ=
X-Received: by 2002:a05:6820:298:b0:5a0:14a7:fd8a with SMTP id
q24-20020a056820029800b005a014a7fd8amr21819ood.1.1708525987871; Wed, 21 Feb
2024 06:33:07 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.xharbour
Date: Wed, 21 Feb 2024 06:33:07 -0800 (PST)
In-Reply-To: <r2j9tihm9h18or23fn1gkls5csf4k7av83@4ax.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2600:1700:15df:c8df:6138:aea5:ab0c:8c7;
posting-account=MVjzhQoAAAC9p_5zLm3q76BQ_cMWZzZC
NNTP-Posting-Host: 2600:1700:15df:c8df:6138:aea5:ab0c:8c7
References: <ea77tipdqf2gnatsvu9oc1kd7h0ptf902k@4ax.com> <r2j9tihm9h18or23fn1gkls5csf4k7av83@4ax.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <fbfdfe1f-92d8-4c20-9e8f-b62522b6f7bcn@googlegroups.com>
Subject: Re: expression error ( in index key )
From: turkeyheadedmutha@gmail.com (Dlzc)
Injection-Date: Wed, 21 Feb 2024 14:33:08 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2847
 by: Dlzc - Wed, 21 Feb 2024 14:33 UTC

On Tuesday, February 20, 2024 at 10:56:55 AM UTC-6, Scott Coffey wrote:
> OK, after doing some additional research, it appears there's a problem
> with databases in general.
....
> Do any of you oldsters out there know of any DOS tweaks that might
> help here? Here is my autoexec.bat and config.sys:
>
> autoexec.bat:
>
> cls
>
> rem -----
> rem The following line sets the DOS PATH
> rem -----
> PATH A:\DOS

.... note the path.
> DEVICEHIGH=\DOS\PKTDOSFS.SYS

So you are instructing the OS to look in A:\DOS\DOS\... for that particular program. Why don't you display line by line (as makes sense) any error messages that you might be ignoring from instructions to 'DOS'?

> DEVICEHIGH=\DOS\EMSMEM.SYS

.... ditto

> Any ideas/suggestions are appreciated.

Before first line of executing code, add a diagnostic. Run DIR and wait, or run ADIR() and analyze. See where the code is looking for database and index. Alternatively, issue a SET DEFAULT to the druive and directory you want it to look in. Do this same thing for the code that (re)creates the index, or incorporate in the one program. S'87 had some limited error trapping, could put the code there.

David A. Smith

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor