Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid BeforeRowColChange
Message
De
26/11/1999 11:14:12
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
26/11/1999 09:48:31
Rex Mahel
Realm Software, Llc
Ohio, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00295681
Message ID:
00295745
Vues:
18
>Mike,
>
>Sorry, I want to validate the info in the current record before allowing the record pointer to move. I understand that if the nColIndex does not change, you are changing rows.
>
>Thanks
>
>Rex
>
>>Hi Rex,
>>
>>>How can I tell in the Grid.BeforeRowColChange method if I am trying to change the Row or the Column in the grid?
>>
>>If you can wait untill AfterColRowChange its easier (save the column number, save it in a property and compare it too tnColIndex), but the only way I know how to do it in Before.. is like this:
>>
>>
LPARAMETERS nColIndex
>>
>>if inlist(lastkey(), 5, 24)
>>	debugout 'Row Changed'
>>else
>>	debugout 'Col Changed'
>>endif
Now, this will not tell you accuratly when you choose a cell with the mouse, or programmatically. You should be able to trap that though, Good Luck!


Rex,
I use a BRCC routine for same purpose and I posted BRCC code a few times. Search for "llChangingRow". If you cannot find inform me.
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