Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Number of Maximum Rows in a Grid
Message
De
30/10/2001 13:31:56
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
30/10/2001 13:22:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00574272
Message ID:
00575224
Vues:
27
This message has been marked as the solution to the initial question of the thread.
>>>>other words: I'd like to know if the current row position
>>>>is a bottom of the grid.
>
>>EOF() wouldn't work for you. If applicable do something like:
>>
>>select (Grid.recordsource)
>>skip
>>llLastRecord = (Child.FKvalue # Parent.PKValue)
>>skip -1
>
>Cetin, your suggestion works, although this solution makes a lot of skipping during moving rows of a grid. I only know how to do it from "keypress" method, checking if user pressed cursor down (nKeyCode = 24) and then find out if this is the last record in my child table, skipping one record, as you suggest. This means that if I move down the grid with a lot of rows, it is checked for every move with skip forward and backward.
>But my wish is an action only when user wants down on the last row.
>
>Well, I was wondering that there was some trick inside the grid, because the grid knows very well when ActiveRow can't be increased by 1.
>It seems there's not such a way.
>
>Thank's, Zlatko.

Oh then it's simple.
In BRCC store recno() to grid.tag then in ARCC check if that changed :
*Grid.BRCC
LPARAMETERS nColIndex
this.tag = trans(recno())

*Grdi.ARCC
LPARAMETERS nColIndex
if lastkey()=24 and !mdown() and val(this.tag) = recno()
 wait window "You're on last row" timeout 2
endif
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