iOS Question Read list from map

Discussion in 'iOS Questions' started by Ramezanpour, Apr 23, 2015.

  1. Ramezanpour

    Ramezanpour Active Member Licensed User

    Hi there,

    I want to read list from map

    my map is :

    m=File.ReadMap(File.DirDocuments,"b")

    m is : (MyMap) {6, 1}

    And how to I read this and set it in list ?
     
    Last edited: Apr 24, 2015
  2. Erel

    Erel Administrator Staff Member Licensed User

    Not sure that I understand. Did the original map had a List inside?
     
    Ramezanpour likes this.
  3. Ramezanpour

    Ramezanpour Active Member Licensed User

    I write to map with :


    Dim m1 As Map
    m1.Initialize
    m1.Put(ID)

    File.WriteMap(file.DirDocuments,"b",m1)
     
  4. Erel

    Erel Administrator Staff Member Licensed User

    What is ID?
     
    Ramezanpour likes this.
  5. Ramezanpour

    Ramezanpour Active Member Licensed User

    bk is code module

    I want to add to bookmark
    bk :


    Sub addb(ID As String)

    Dim m1 As Map
    m1.Initialize

    If File.Exists(File.DirDocuments,"b") = True Then
    m1 = File.ReadMap(File.DirDocuments,"b")
    End If

    m1.Put(ID)

    File.WriteMap(File.DirDocuments,"b",m1)

    End Sub

    Sub CheckExistBk(ID As String) As Boolean

    Dim m1 As Map
    m1.Initialize

    If File.Exists(File.DirDocuments,"b") = False Then Return False

    m1 = File.ReadMap(File.DirDocuments,"b")
    Return m1.ContainsKey(ID)

    End Sub



    ----

    add to bookmark :



    Sub star4_click

    If bk.CheckExistBookmark(ID) = False Then

    bk.Addb(ID)
    Log("Add")

    End If

    End Sub
     
  6. Erel

    Erel Administrator Staff Member Licensed User

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