Here's a thread I saved about this very topic.
----------------------------------------------
You need to add the following to the Var method for your tableFrame:
Var
uiRecord UIObject
endVar
Add the following two methods to the tableframe events Open and Action:
method open(var eventInfo Event)
doDefault
uiRecord.attach(self'firstRow)
self.home()
; or I sometimes use self.end()
; if I want to start at the end of the table
endmethod
method action(var eventInfo ActionEvent)
if eventInfo.actionClass() = DataAction then
uiRecord'color = Transparent
doDefault
uiRecord.attach(fldDate'containerName)
;change fldDate to some field in your tableFrame record
uiRecord'color = Yellow
endIf
endmethod
Then attach the following code to the open event for the record object
in your tableFrame:
method open(var eventInfo Event)
self.color = Transparent
endmethod
The only other thing to watch is to not name the record object in your
table frame, leave it with the Paradox generated name.
--------------------------------------
I haven't tried it, but it should work.
Mac
"Strange women lying in ponds and distributing swords is no basis for a system of government" - Dennis, age 37
mailto:langley_mckelvy@cd4.co.harris.tx.us