Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 3 of 3 total
Thread How to capture and display the structure of a table ?
Wed, Aug 7 2013 5:07 PMPermanent Link

kamran

Hi

I need to display the structure of a table by reading its structure

How can this be achieved and displayed say in a say a stringlist or listbox
I have tried the documentation but it is not so easy / obvious what i need to do to achieve the result.


Kind regards


Kamran
Wed, Aug 7 2013 9:33 PMPermanent Link

Raul

Team Elevate Team Elevate

See my answer to your other post.

For structure you can either use fielddefs (better way) or as long as
you have a single record just use the same logic as i did in other post.
Simply loop once thru fields and look for myDS.Fields[I].DisplayName,
myDs.Fields[I].DataType, etc). Looping thru fielddefs is very similar as
well.

Raul

On 8/7/2013 5:07 PM, kamran wrote:
> Hi
>
> I need to display the structure of a table by reading its structure
>
> How can this be achieved and displayed say in a say a stringlist or listbox
> I have tried the documentation but it is not so easy / obvious what i need to do to achieve the result.
>
>
> Kind regards
>
>
> Kamran
>
Thu, Aug 8 2013 9:14 AMPermanent Link

kamran

Thanks Raul - that's a great help

Kamran


Raul wrote:

See my answer to your other post.

For structure you can either use fielddefs (better way) or as long as
you have a single record just use the same logic as i did in other post.
Simply loop once thru fields and look for myDS.Fields[I].DisplayName,
myDs.Fields[I].DataType, etc). Looping thru fielddefs is very similar as
well.

Raul

On 8/7/2013 5:07 PM, kamran wrote:
> Hi
>
> I need to display the structure of a table by reading its structure
>
> How can this be achieved and displayed say in a say a stringlist or listbox
> I have tried the documentation but it is not so easy / obvious what i need to do to achieve the result.
>
>
> Kind regards
>
>
> Kamran
>
Image