APS NZ
asked on
IndexFieldNames in my own component
Hi
I am using D1 with Windows 3.11
I am creating a data aware component, and I need to add the property IndexFieldNames. I know that the TTable to which it will be attached has this property, but my component needs to have two different indexes. I have assumed that the TFieldDataLink has a relevant property, but I cannot find any help on it.
How do I add the property to my component so that it behaves the same way as it does in the TTable component?
Any help most appreciated.
I am using D1 with Windows 3.11
I am creating a data aware component, and I need to add the property IndexFieldNames. I know that the TTable to which it will be attached has this property, but my component needs to have two different indexes. I have assumed that the TFieldDataLink has a relevant property, but I cannot find any help on it.
How do I add the property to my component so that it behaves the same way as it does in the TTable component?
Any help most appreciated.
ASKER
Hi ZifNab - thanks for replying
I tried that first, and it works OK at runtime, but I can't get it to work in Design mode - it tells me that the Dataset is not available. I think that has something to do with the order in which things are initialised within the Component, but I don't know how to force different bits to initialise before others.
I tried that first, and it works OK at runtime, but I can't get it to work in Design mode - it tells me that the Dataset is not available. I think that has something to do with the order in which things are initialised within the Component, but I don't know how to force different bits to initialise before others.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hi Zif - we meet again. The code didn't work quite as it was written, but it gave me a good start, and I have managed to do what I need to do. Thanx
Great! c.u. Zif.
(fDataLink.DataSource.Data
Never tried out, but maybe...
Regards,Zif.