FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Pocket PC set index to...
Posts: 33
Joined: Tue Aug 12, 2008 07:08 AM
set index to...
Posted: Sun Sep 07, 2008 04:20 AM

Hello,

Using: SET INDEX TO &cDbfName,

returns run time error: Open error stack calls: OrdListAdd(0)

I'm using dbf / cdx.

What should I change? (I'm using the same function for opening ordered dbf in my clipper / xBase++ applications)

Thanks,
Moshe Yarden

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
set index to...
Posted: Sun Sep 07, 2008 11:32 AM

Moshe,

Try it this way:

SET INDEX TO ( CurDir() + "\" + cDbfName )

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 33
Joined: Tue Aug 12, 2008 07:08 AM
set index to...
Posted: Sun Sep 07, 2008 03:12 PM

Antonio,

Thanks.

I have tried you suggestion, and many other different ways, with no success.

The USE do finds the file. The problem is just with SET INDEX.

Do you have any sample uses SET INDEX?

Regards,
Moshe Yarden

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
set index to...
Posted: Sun Sep 07, 2008 04:14 PM

Moshe,

Are you testing it on the emulator or on the real device ?

Please review fwppc\samples\TestBrwS.prg

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 33
Joined: Tue Aug 12, 2008 07:08 AM
set index to...
Posted: Sun Sep 07, 2008 07:48 PM

Antonio,

Thanks. It is working now.

I'm using it on the emulator. However, I think that the reason has to do with the the ... VIA "DBFCDX" .

I did try it with: DbUseArea( .T., "DBFCDX", cDbfName, @cAlias, .F., )

However I didn't call: REQUEST DBFCDX

Now it is ok.

Thanks again,
Moshe Yarden

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
set index to...
Posted: Mon Sep 08, 2008 12:23 AM

Moshe,

glad to know it is working fine :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion