set index to...

set index to...

Postby yardenmo » Sun Sep 07, 2008 4: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
yardenmo
 
Posts: 33
Joined: Tue Aug 12, 2008 7:08 am

Postby Antonio Linares » Sun Sep 07, 2008 11:32 am

Moshe,

Try it this way:

SET INDEX TO ( CurDir() + "\" + cDbfName )
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby yardenmo » Sun Sep 07, 2008 3: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
yardenmo
 
Posts: 33
Joined: Tue Aug 12, 2008 7:08 am

Postby Antonio Linares » Sun Sep 07, 2008 4: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby yardenmo » Sun Sep 07, 2008 7: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
yardenmo
 
Posts: 33
Joined: Tue Aug 12, 2008 7:08 am

Postby Antonio Linares » Mon Sep 08, 2008 12:23 am

Moshe,

glad to know it is working fine :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Pocket PC

Who is online

Users browsing this forum: No registered users and 23 guests