I have a DBTable in a form that shows 12 rows at a time. When I tab into an empty data table, row 12 is highlighted instead of row1. How can I correct this?
Richard Richter
x=set_property( CtrlEntId , "SELPOS" , 1:@FM:1)
Put this either on GOTFOCUS or LOSFOCUS in order to re-position the cursor to the upper-left hand corner of the table.
In my application I have a system-wide LOSTFOCUS event that does this for all edit tables other than ones whose name end in a certain way.
That's fine if there's no data in the table. What if there's 6 of the rows filled, and the other six are empty. You still get Eleven value marks per column, six values with data and six without data.
Richard Richter
Richard,
Are you asking how to "trim" the edit table?
Cameron Purdy
Revelation Software
You do have a way with words. That's exactly what I want to do. If the first column of the row is empty then the entire row should be empty.
Thanks,
Richard Richter
As Cam has set this up so beautifully I can't resist…
Would the TRIM parameter of the ETMETHOD function help? (See online help)
World Leaders in all things RevSoft
Even though you might have the answer already, are you stating that when you go into the edittable, the cursor jumps to the last row?