Thursday, November 18, 2010

OnlyFetchActive on Form Datasource

this property on the datasource can speed things up especially if you
have one field that has lots of data stored in it and you still want
to show it on the form

if you need to show it on the form (on another tab preferably), you
can use a display method instead.

on the display method

display Memo memoDisplay(TableDS _tableDS)
{
;
if (formTableDS.RecId != _tableDS.RecId)
{
select firstonly log from formTableDS where
formTableDS.RecId == _tableDS.RecId;
}
return formTableDS.memo;
}

formTableDS is declared in the Class declaration of the form

No comments:

Post a Comment