">but if I want the capability to use it except for the last line, then this doesn't work, since the undesirable behaviour occurs when going from the second to last row to the last! Even saying..."
I don't understand what you mean. You're talking over a modified code and I don't understand what the undesirable behavior is. Works for me.
Cetin
>Cetin:
>
>Your solution is not 100% complete. If I wanted to completely disable the down arrow, I could say:
>
>
>If InList(nKeyCode,24,145)
>
>
>but if I want the capability to use it except for the last line, then this doesn't work, since the undesirable behaviour occurs when going from the second to last row to the last! Even saying
>
>
>If InList(nKeyCode,24,145) and Recno()=Reccount() - 1
>
>
>would not work, for that would prevent the user from moving from the second to last row to the last.
>
>Yossi
>
>
>
>>>Einar:
>>>
>>>My record pointer is at the top of the table.
>>>This is a case where I DO NOT want scrolling and I took advantage of the scrollbars = 0 option. Nevertheless, if and only if the grid has the same or less number of rows as there are records in the cursor, it allows me to scroll with the down arrow or with pagedown, leaving an empty row at the bottom. I do not want the user to be able to scroll. I will provide her with enough rows to view the data.
>>>
>>>Yossi
>>>
>>>>>If the grid has the same number of rows as there are records in the cursor, if I press the down arrow, the top rows will disappear one by one. The only way that I have have found to avoid this behavior is to make the grid at least one full row taller than there are records, NOT a very elegant solution! Any suggestions?
>>>>
>>>>I don't think I understand your problem. One reason for using a grid is because you want to display more information than you can fit on your screen i.e. so you can navigate with the scrollbars.
>>>>Maybe your problem is that your record pointer is at EOF
>>
>>In column where you put filename :
>>
>>* Text1.keypress
>>LPARAMETERS nKeyCode, nShiftAltCtrl
>>If InList(nKeyCode,24,145) and Recno()=Reccount()
>> nodefault
>>endif
>>
>>Cetin