Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Pascal Delphi Databases > D5 TField.OnGet...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 5 Topic 964 of 985
Post > Topic >>

D5 TField.OnGetText() after TDataSet.Open() should it work ?

by Guy <guyharel13@[EMAIL PROTECTED] > Jun 20, 2007 at 06:10 AM

I have the following two lines which work, but I don't understand why:
   datasetUserRoles.Open();
   datasetUserRoles.FieldByName(C_FIELD_ROLES).OnGetText :=
GetTextForUserRoles;

If I specify the OnGetText event handler after the Open(), some fetch
records should miss the event and not be formatted. However it seems
to work fine...

I've try adding a TStringField to the dataset with the event handler
before the Open(), but it abort in the event code saying that another
field in my SQL no longer exists, because in my handler I format the
field using some earlier field.

What am I missing ?
 




 5 Posts in Topic:
D5 TField.OnGetText() after TDataSet.Open() should it work ?
Guy <guyharel13@[EMAIL  2007-06-20 06:10:02 
Re: D5 TField.OnGetText() after TDataSet.Open() should it work ?
Guy <guyharel13@[EMAIL  2007-06-20 06:49:25 
Re: D5 TField.OnGetText() after TDataSet.Open() should it work ?
AK <ak@[EMAIL PROTECTE  2007-06-20 18:22:19 
Re: D5 TField.OnGetText() after TDataSet.Open() should it work ?
Guy <guyharel13@[EMAIL  2007-06-20 10:00:11 
Re: D5 TField.OnGetText() after TDataSet.Open() should it work ?
Guy <guyharel13@[EMAIL  2007-06-20 10:17:02 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sun Jul 6 6:07:58 CDT 2008.