Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Join Date
    Apr 2007
    Location
    Raalte, OV, Netherlands
    Posts
    3,287

    Grid.GetCellState, non documented function.

    Hey all, this is mainly to the IR team, but I was wondering if anyone knew
    where this function came from.

    I have for you, the non-documented function 'Grid.GetCellState',
    to see if it exists, use
    Code:
    Dialog.Message("Does 'Grid.GetCellState' exist?", type(Grid.GetCellState));
    you'll see that it shows a dialog with the content "function".

    But, why isn't it documented and how do you use it?
    Bas Groothedde
    Imagine Programming :: Blog :: Familiar people here

    My AMS Plugins:

  2. #2
    Join Date
    May 2006
    Posts
    5,380
    probably a test function that never got removed

    it returns the following table for the indicated cell
    Code:
    Focused = true
    Modified = false
    ReadOnly = false
    FixedRow = false
    Fixed = false
    Selected = true
    DropHighlighted = false
    FixedCol = false
    Test
    Code:
    Debug.ShowWindow()
    t=Grid.GetCellState("Grid1",e_Row,e_Column)
    if t then
    	for key,value in pairs(t) do 
    		Debug.Print(key.." = "..tostring(value).."\r\n\r\n")
    	end	
    end
    Open your eyes to Narcissism, Don't let her destroy your life!!

  3. #3
    Join Date
    Apr 2007
    Location
    Raalte, OV, Netherlands
    Posts
    3,287
    Wierd, when I tried that very same thing, it returned nil lol. But thanks Dean, I'm implementing this into the Object Action plugin ^^
    Bas Groothedde
    Imagine Programming :: Blog :: Familiar people here

    My AMS Plugins:

  4. #4
    Join Date
    May 2006
    Posts
    5,380
    it seems to return nil if the cell is not selected, select the cell you passed to the function and it returns the table, its a very buggy function, and the reasons its not documented become apparent while testing
    Open your eyes to Narcissism, Don't let her destroy your life!!

  5. #5
    Join Date
    Apr 2007
    Location
    Raalte, OV, Netherlands
    Posts
    3,287
    Quote Originally Posted by RizlaUK View Post
    it seems to return nil if the cell is not selected, select the cell you passed to the function and it returns the table, its a very buggy function, and the reasons its not documented become apparent while testing
    Perhaps that's why it isn't documented
    Bas Groothedde
    Imagine Programming :: Blog :: Familiar people here

    My AMS Plugins:

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts