Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do you skip between columns?
Message
De
03/05/2001 20:23:06
Charlie Schreiner
Myers and Stauffer Consulting
Topeka, Kansas, États-Unis
 
 
À
03/05/2001 17:21:53
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00503237
Message ID:
00503307
Vues:
18
Hi Kenneth, Brenda,
I thought the easy answer would be to BROWSE NAME oGrid, then you WOULD have a regular grid object. You could do
APPEND BLANK or INSERT INTO
oGrid.Columns[1].SetFocus()
however, I was surprise to see that doesn't work--at least as I was testing.
APPEND BLANK
oGrid.Refresh()
oGrid.ActivateCell(oGrid.ActiveRow, 1)
does seem to work. If you want the cell to be highlighted, set oGrid.Column[1].Format = "K"


>Duh. this is the wrong answer. I was thinking grids: you're thinking browse. Disregard.
>
>>Try this in the click method of your Add Button
>>
>>Select MyTable
>>Go Bottom
>>Append Blank
>>thisForm.Grid1.Column1.Text1.SetFocus()
>>
>>I don't know how you add a record, but calling the SetFocus method of the Text box or whatever control is in the colum you want to move the cursor to should do the job for you.
>>
>>>I have a BROWSE window (yes I know how evil they are but it is an older system and it does have them). When the client tabs or clicks to say the third column and then presses the ADD button, the code adds a new row to the table. But the focus is still on the third column of the new row. How do I get the focus to the first column (or any specific column) of the new row?
>>>
>>>Brenda
Charlie
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform