iOS Question How do I dynamically load an action sheet?

Discussion in 'iOS Questions' started by davepamn, Mar 5, 2015.

  1. davepamn

    davepamn Active Member Licensed User

    Code:
    Dim oItems As List
            
    Dim arrGroups() As String
            oItems =p.NextArray

            
    For i = 0 To oItems.Size - 1
                oRowMap=oItems.Get(i)
                sValue =oRowMap.Get(
    "sValue")
                sDescription=oRowMap.Get(
    "sDescription")

                .... Redim Preserve gives me a syntax error

            
    Next

            ashGroups.Initialize(
    "Groups","Pick A Group","Cancel",arrGroups)
    I am getting an error, Redim is undeclared

    Is Redim not available in b4i
     
    Last edited: Mar 5, 2015
  2. davepamn

    davepamn Active Member Licensed User

    Code:
    Dim oGroupsList As List
        oGroupsList.Initialize
       oGroupsList.AddAll(
    Array As String())

       oItems =p.NextArray
       
    For i = 0To oItems.Size - 1
           oRowMap=oItems.Get(i)
           sValue =oRowMap.Get(
    "sValue")
           sDescription=oRowMap.Get(
    "sDescription")
            oGroupsList.add(sValue & 
    "-" & sDescription)
        
    Next

        ashGroups.Initialize(
    "Groups","Pick A Group","Cancel","",oGroupsList)
        ashGroups.show(page3.RootPanel)
    I found a code sample that shows how to type cast a list to a string type
     
    Last edited: Mar 5, 2015
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice