Article ID: 119562
Article Last Modified on 10/30/2006
'Declare the variables
Dim n As Integer
Dim theText As String
Dim theTotal As Long
'Process the list, writing each item to the package using a unique
'itemID,
("List0". "List1", etc.)
theTotal = 0
For n = 0 To (frmCompose.lstColor.ListCount - 1)
If frmCompose.lstColor.Selected(n) = True Then
theText = frmCompose.List1.List(n)
MEFWriteText gPackage, "List" & Str$(theTotal), theText
theTotal = theTotal + 1
End If
Next
'Write the number of items to the package
MEFWriteLong gPackage, "theTotal", theTotal
'Declare variables
Dim n As Integer
Dim theTotal As Long
'Find the number of items in the list by reading the package.
theTotal = MEFReadLong(gPackage, "theTotal", 0)
'Read in each of the items and add it to the list using AddItem
For n = 0 To theTotal
frmRead.lstColor.AddItem MEFReadText(gPackage, "List" & Str$(n), "")
Next
Additional query words: 1.00 e-forms eforms multiple selection list box multiselect
Keywords: KB119562