Work Area Not indexed

Work Area Not indexed

Postby johnlinares » Tue Sep 30, 2008 12:53 am

Antonio
I have this error and I can't figure it out
Workarea not indexed
stack calls:
DBSEEK(0)
ART_DESCR(51)
(b)MAIN(30)
TGET:LVALID(0)
TGET:FWLOSTFOCUS(0)
TGET:HANDLEEVENT(0)
_FWPPC(0)
WINRUN(0)
TWINDOW:ACTIVATE(0)
MAIN(45)
__________________
this is the source code
// FiveWin for Pocket PC - Testing browses

#include "FWCE.ch"

//REQUEST DBFCDX

//----------------------------------------------------------------------------//

function Main()

local oWnd
LOCAL cArt,nExi:=0,cAlm
LOCAL cDir := CurDir()

USE ( cDir + "\ARTICUL" ) NEW
IF ! File( cDir + "\ARTICUL.NTX" )
INDEX ON ARTICUL->CARTCOD TO ( cDir + "\ARTICUL" )
endif

articul->( OrdSetFocus( cDir+"\ARTICUL" ) )
articul->( DbGoTop() )


cArt := Space(Len(ARTICUL->CARTCOD))

DEFINE WINDOW oWnd TITLE "Inventario Fisico"

@ 2, 1 SAY "Articulo:" SIZE 70, 20

@ 2, 12 GET cArt SIZE 70, 20 VALID Art_Descr(cArt)

@ 8, 1 SAY "Existencia:" SIZE 70, 20

@ 8, 12 GET nExi SIZE 70, 20



@ 12, 1 BUTTON "Ajustar" SIZE 80, 30 ;
ACTION ExiAjusta(cArt,nExi)


@ 12, 37 BUTTON "Done" SIZE 80, 30 ;
ACTION oWnd:End()

ACTIVATE WINDOW oWnd

return nil

FUNCTION Art_Descr(cArt)

IF !ARTICUL->(DbSeek(cArt))
RETURN .T.
END

@ 3,1 SAY ARTICUL->CARTDES SIZE 140, 20
@ 5,1 SAY Transform(0,"999,999")SIZE 100, 20
RETURN .T.

PROCEDURE ExiAjusta(cArt,nExi)
IF !ARTICUL->(DbSeek(cArt)) .OR. Empty(cArt)
MsgInfo("Articulo no existe")
END

Art_Descr()
JpSvrSend("IF",cArt,nExi)

RETURN

PROCEDURE JpSvrSend(cMod,cArt,nExi)
msgInfo("INFO SENT TO SERVER")
RETURN
*************************
What's wrong? I can't go on.
help please
Hasta pronto
johnlinares
 
Posts: 12
Joined: Sat Jan 05, 2008 3:38 am
Location: Tabasco;Mexico

Re: Work Area Not indexed

Postby Richard Chidiak » Tue Sep 30, 2008 10:50 am

John

try set index to ( cDir + "\ARTICUL" )

HTH

Richard
http://www.cbati.com

Uestudio
Fwh 13.05 Harbour 3.2 MSVC 2013
User avatar
Richard Chidiak
 
Posts: 946
Joined: Thu Oct 06, 2005 7:05 pm
Location: France

Re: Work Area Not indexed

Postby johnlinares » Tue Sep 30, 2008 2:49 pm

Richard Chidiak wrote:John

try set index to ( cDir + "\ARTICUL" )

HTH

Richard

Yes, I am on.
Thanks Richard
Hasta pronto
johnlinares
 
Posts: 12
Joined: Sat Jan 05, 2008 3:38 am
Location: Tabasco;Mexico


Return to FiveWin for Pocket PC

Who is online

Users browsing this forum: No registered users and 18 guests