By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
460,036 Members | 1,142 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 460,036 IT Pros & Developers. It's quick & easy.

problem about foxpro

lilh0ney05
P: 7
i really don't know where to post about visual foxpro problems.....
hope i posted on the right forum..............
i have a problem on how to navigate my records on the previous and next records.
here are my codes.........

for previous:

if bof() then
messagebox("asdf")
ELSE
skip -1 in stud_mast
endif
thisform.refresh()
and for next:

if eof() then
go bottom
else
skip 1 in stud_mast
endif
thisform.refresh()
is there any problem with my codes????????
the errors are:
beginning of file is encountered
and
end of file is encountered
:?
hope somone will help me with this......
:( :(
thanks in advance!!!!!!!!!!!!!!!!!!!!!!
Sep 26 '06 #1
Share this Question
Share on Google+
3 Replies


PEB
Expert 100+
P: 1,418
PEB
Opa, I'm afraid, but there is a lot of time that i've studied Fox Pro... And just a little programming on dbase...

Can't help U!

:(
Sep 26 '06 #2

lilh0ney05
P: 7
Thanx anyway PEB!!!!!!

hope aomeone pls help me with this........
pls pls pls pls pls pls pls pls pls
:(
:(
:(
Sep 28 '06 #3

P: 1
ACTIVATE WINDOW panel2
set order to number
@ 1,1 SAY " ¢¤ّî¤"
@ 1,2 get act PICTURE;
[@*VN\" Firstِ‏;َ“ىnext;üPrevious"Last“;\ّ¤،' [
SIZE 1,10,1 DEFAULT 0 VALID actvalid()
READ CYCLE SHOW readshow() COLOR ,r/bg

RELEASE WINDOW panel2


FUNCTION actvalid


DO CASE


CASE act = 1


GO TOP


CASE ACT = 2


DO go_prev


CASE ACT = 3

DO go_next

CASE ACT = 4

GO BOTTOM

CASE ACT = 5

CLEAR READ


ENDCASE


show gets


return 0


FUNCTION readshow


STORE WOUTPUT() TO currwind

IF NOT EMPTY(currwind)
ACTIVATE WINDOW (currwind) SAME
ENDIF

RETURN .T.


PROCEDURE go_prev

SKIP -1

IF BOF()

GO TOP

ENDIF

RETURN



PROCEDURE go_next

SKIP 1

IF EOF()
GO BOTTOM
ENDIF

RETURN



is there any problem with my codes????????
the errors are:
beginning of file is encountered
and
end of
file is encountered
:?
hope somone will help me with this......
:( :(
thanks in advance!!!!!!!!!!!!!!!!!!!!!![/quote]
Oct 31 '06 #4

Post your reply

Sign in to post your reply or Sign up for a free account.