Paradox Community

Items in pnews.paradox-programming

Subject:Re: CanArrive
Date:Fri, 15 Jan 2021 18:43:07 +1100
From:Tom Krieg <REMOVEtomkCAPITALS@sdassociates.com.au>
Newsgroups:pnews.paradox-programming
You can do this in the Depart of the record. Just set the value of the 
undefined field to the tableframe field BEFORE you issue a DoDefault. 
e.g. Depart

myUndefinedField.value = TFField.value
DoDefault

You can ensure that the undefined field displays the value of the first 
record, first time through in the Arrive event of the table frame.

if myUndefinedField = '' then
    myUndefinedField = TFField.value of TF record 1
end if

Remember that in some cases the canDepart or CanArrive events can 
trigger an error and will not complete. So it's best to let those events 
finish prior to your code.

On 15/01/2021 12:57 pm, Peter wrote:
> Let's say the first record of the tbf has focus.
> I then click on an undefined field on the form (i.e. outside the tbf) to 
> remove focus from the tbf/rec
> 
> Next I click on the tbf/rec, say the 4th row, I want to capture the 
> value of the field in the tbf/rec when focus had left which is the 1st row.
> 
> 
> 


Copyright © 2004 thedbcommunity.com