I am using the following LotusScript code to hardcode a list.
Dim tablelabels(9) As String
Set tablelabels = ("NAW":"Burgerlijke
Staat":"Partner":"Overeenkomst":Salaris":Leningen":"Lease
Auto":"Onkosten":"Verzekeringen")
But this gives me an error. How can I assign hardcode a list to a variable?
Now it is an array!
Karin Leenders
Lando Chez schreef:
So, a string like "NAW:Burgerlijke
Staat:Partner:Overeenkomst:Salaris:Leningen:Lease
Auto:Onkosten:Verzekeringen" would do the job.
Tom
Wilbert Leenders <w.lee...@chello.nl> schreef in berichtnieuws
3BFFF03B...@chello.nl...
A list amounts to a dynamic array whose elements are referenced with a
tag name rather than an index. For example (this is copied from
Designer help):
"The following example illustrates how to declare a list, add elements to
it, and refer to those elements. The elements in the list are of one of
the scalar data types (String).
' Make string comparison case insensitive
' in this module.
Option Compare NoCase
' Declare a list洋yList葉o hold first names.
' The list tags will be unique IDs.
Dim myList List As String
Dim newTag As String
Dim newValue As String
' Put some elements in the list.
myList("A1234") = "Andrea"
myList("A2345") = "Vera"
myList("A3456") = "Isabel"
' Ask the user to enter an ID and a name.
newTag$ = InputBox$("Please enter your ID:")
newValue$ = InputBox$("Please enter your first name:")
' Add a new element to the list with
' the user's ID as the list tag and the user's name as
' the value of the new element.
myList(newTag$) = newValue$
Print myList(newTag$)
' Output: the name that the user entered"
All the above is from Deisgner help.
--
Dennis Yugo
Angle-of-Attack Systems
http://www.aoasystems.com