Scott Coffey
2024-02-19 18:28:53 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?
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
Scott at Scott dash(-) Coffey dot net