Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid last row/cell
Message
From
13/12/2003 09:47:23
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
12/12/2003 22:30:45
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00858848
Message ID:
00858896
Views:
14
>>Hi all,
>>
>>What's the way i know, that i'm in the last row or cell in grid.
>>
>>Thank's
>>
>>João Batista
>
>from the grid's source cursor, e.g.
>
Function IsOnLastRow()
>  select myGridSourceCursor
>  Skip
>  llOnLastRow=EOF()
>  Skip -1
>  Return llOnLastRow
>EndFunc
>
Hi Trey,
This solution would work in many cases. It might fail, ie: grid recordsource is a child and skipping simply might skip to another record where it's not eof() (foreign key value changes and you might utilize it) though you were on last row. With a parent-child situation "set key to foreignkey" and skip, then it would have eof() if you were on last row.
There is no practical way I know of. Depending on need solutions might exist (what's intended, buffered or not, pointer movement is a problem or not etc).
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform