Results 1 to 1 of 1

Thread: cWebCombo Change

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2009
    Posts
    2,165

    Default cWebCombo Change

    The cWebCombo in 17.1 had a method ComboData (which I used in a sub-class) which returns a tWebRow of the code and data

    With the change to tWebRow in 18.0 this method has been removed form the cWebCombo with no mention in the help of this change and no replacement added to the cWebCombo class to return this data anymore

    Is this an oversight?

    looking in the pkg from 17.1 and 18.0 show this change

    Code:
        // ComboData:
        
        // Returns the combo list as an array of tWebRow structs where the first value is the value and 
        // the second is the description.
        Function ComboData Returns tWebRow[]
            Integer i iCount
            tWebRow[] aData
            tWebComboItem[] aComboItems
            
            // Iterate the combo items....
            Get paComboItems to aComboItems
            Move (SizeOfArray(aComboItems)) to iCount
            Move (ResizeArray(aData, iCount)) to aData
            
            For i from 0 to (iCount - 1)
                // Open object braces....
                Move aComboItems[i].sValue to aData[i].aValues[0]
                Move aComboItems[i].sDescription to aData[i].aValues[1]
            Loop
            
            Function_Return aData
        End_Function
    18.0
    Code:
    
    // ComboData:
        
        // Returns the combo list as an array of tWebRow structs where the first value is the value and 
        // the second is the description.
        { Visibility=Private }
        Function ComboData Returns tWebValueTree
            tWebValueTree tData
            tWebComboItem[] aComboItems
            
            // Iterate the combo items....
            Get paComboItems to aComboItems
            
            ValueTreeSerializeParameter aComboItems to tData
            
            Function_Return tData
        End_Function
    PS Why doesn't it just return a tWebComboItem[] ????
    Last edited by Chris Spencer; 17-Jan-2014 at 10:12 PM.

Posting Permissions

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