Jump to content


Photo

NG5 to NG6 Conversion: NG6 equivalent to TColumnType/Kind?


  • Please log in to reply
2 replies to this topic

#1 BelangerC

BelangerC

    Senior Member

  • Members
  • PipPip
  • 221 posts
  • Location:Richmond, CA USA
  • Interests:Alternative medicine, programming for

Posted 23 August 2023 - 08:41 PM

Hi, Boki:

Trying to wrap up the NG5 to NG6 conversion but am still finding a number of differences which may kill the conversion process for me.

 

I will be asking about each as a separate topic as they come up in debugging of my program.

 

 

In NG5 you have the Grid5.Columns[ACol].ColumnType with possible property values of:

 TColumnType = (ctAutoInc, ctBoolean, ctNone, ctDate,
    ctFloat, ctGraphic, ctGuid, ctInteger, ctString, ctLookup, ctMemo, ctVirtual);
  TColumnKind = (ckTextual, ckBlob, ckNumeric, ckImage, ckComboBox,
    ckCheckBox, ckDate, ckProgress, ckRate, ckIncrement, ckHtml);
 
Do you have anything comparable to either ColumnType or ColumnKind in NG6? How do I get that information when processing events that are generic to different types of columns and their cells?
I am particularly interested in ColumnType although I could use the ColumnKind property as well.
 
Thank you,
 
Chuck
 
 


#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,289 posts
  • Gender:Male

Posted 14 September 2023 - 11:35 PM

Hello Chuck,

 

I don't have similar type and property in version 6. For this purpose I will just do a type checking, i.e. if

 

MyColumn is TNxTextColumn6 then

 

This should be enough I think.


boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#3 BelangerC

BelangerC

    Senior Member

  • Members
  • PipPip
  • 221 posts
  • Location:Richmond, CA USA
  • Interests:Alternative medicine, programming for

Posted 16 September 2023 - 10:51 AM

Hi, Boki:

 

Turns out that is what I tried. The problem I found is that TNxTreeColumn6 evaluates true when compared to TNxTextColumn6.

What I ended up using is Column.ClassName instead.

 

Hope that helps others with same issue.

Chuck






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users