How to get the column Name ?

forum.cdk (1998-2005) & forum.td.cdk (2005-2010)
Prakash

How to get the column Name ?

Post by Prakash » 16 Mar 2006, 18:40

 Posted by:  Prakash 

Hi All How to get the column Name/title using cdk?

I am using ctd 1.5.1 ptf 6 . Any code snippet would be helpful.

TIA

Prakash.

Jeff Luther
Site Admin
Site Admin
United States of America
Posts: 2167
Joined: 04 Mar 2017, 18:34
Location: Palm Springs, California

How to get the column Name ?

Post by Jeff Luther » 16 Mar 2006, 19:01

 Posted by:  Jeff Luther 

Well, I put together a little CDK_Tutorial:
http://www.pulpcards.com/gupta/#Code_Samples

Also, I assume you mean table window column names/titles, so given:
Variables
cdkWindow: oAryChildWindows[*]
cdkContainer: oTLWindowContainer
cdkWindow: oAryChildWindows[*]
! several Number vars: nTopLevelWindowsTotal, nIdx, n, nChildWindows

Set nTopLevelWindowsTotal = CDK_App.EnumTopLevelWindows( sAryTopLevelWindows )
While nIdx < nTopLevelWindowsTotal
Call CDK_App.GetTopLevelWindow( sAryTopLevelWindows[nIdx], oTLWindowContainer )

Set nChildWindows = oTLWindowContainer.EnumChildWindowObjects( oAryChildWindows )
While n < nChildWindows
Set sChildName = oAryChildWindows[n].GetName()
Set nChildType = oAryChildWindows[n].GetItemType()
! etc.

Best Regards,
Jeff Luther/PC Design
info: www.pulpcards.com/gupta/

Return to “td.cdk”

Who is online

Users browsing this forum: [Ccbot] and 0 guests