problem about foxpro

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lilh0ney05
    New Member
    • Aug 2006
    • 7

    #1

    problem about foxpro

    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("asd f")
    ELSE
    skip -1 in stud_mast
    endif
    thisform.refres h()
    and for next:

    if eof() then
    go bottom
    else
    skip 1 in stud_mast
    endif
    thisform.refres h()
    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!!!!!!!! !!!!!!!!!!!!!!
  • PEB
    Recognized Expert Top Contributor
    • Aug 2006
    • 1418

    #2
    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!

    :(

    Comment

    • lilh0ney05
      New Member
      • Aug 2006
      • 7

      #3
      Thanx anyway PEB!!!!!!

      hope aomeone pls help me with this........
      pls pls pls pls pls pls pls pls pls
      :(
      :(
      :(

      Comment

      • fhozouri
        New Member
        • Oct 2006
        • 1

        #4
        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]

        Comment

        Working...