Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid last row/cell
Message
De
13/12/2003 09:47:23
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
12/12/2003 22:30:45
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00858848
Message ID:
00858896
Vues:
13
>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform