Jump to content


Photo

numbercolumn


  • Please log in to reply
2 replies to this topic

#1 mcinternet

mcinternet
  • Members
  • 101 posts
  • Gender:Male

Posted 12 November 2010 - 05:11 PM

Hi,

how can I change the max (Objectinspector) of a numbercolumn by code during runtime?

regards

Mcinternet

#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 12 November 2010 - 08:20 PM

Hello,

You need to use typecasting.

CODE
TNxNumberColumn(NextGrid1.Columns[x]).Max := 4;


I hope that this helps.
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 mcinternet

mcinternet
  • Members
  • 101 posts
  • Gender:Male

Posted 13 November 2010 - 04:09 PM

QUOTE (Boki (Berg) @ Nov 12 2010, 08:20 PM) <{POST_SNAPBACK}>
Hello,

You need to use typecasting.

CODE
TNxNumberColumn(NextGrid1.Columns[x]).Max := 4;


I hope that this helps.


Hi Boki,

that works - many thanks

regards

McInternet




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users