> Hi guys,
Hi Fabrice
Hmmm........My mail is funny today, cant seem to respond to mails, have to
send new ones. The pelies get bounced back, anyone has an idea? Win 98,
Outlook2000
> now want to create 2 lists from this textfield: listname =
> [1,2,3,4,5] and
> listname =[bert,bob,annie,gerard,lucas]
> How i do this?
>
First you check out the VALUE function
Then you read up on stringP and integerP
When you have done that you can do it like this
<Explanatory LINGO>
on listCreator
aString = member("your_field").text --the list form your field
orgList = value(aString)--evaluates the string to a list
num_list = []--your list of numbers
name_list = []--your list of names
list_end = orgList.count
repeat with i = list_end down to 1
entry = orgList[i]
if stringP(entry) then --checks to see if it�s a string
name_list.add(entry) --puts it in the namelist
end if
if integerP(entry) then --checks to see if its a number
num_list.add(entry) --puts it in the number list
end if
end repeat
put "names:"&&name_list --shows your lists in the message win
put "nums:"&&num_list
end
</explanatory LINGO>
good luck
/Micke
____________________________________________
Mikael Wir�n
Knowledge Network
Lillhagsv�gen 36
124 71 BANDHAGEN
Tel: +46 (0)8 556 204 50
Mob: +46-(0)709-15 24 30
Mail: [EMAIL PROTECTED]
Web: HTTP://www.knowledgenetwork.se
____________________________________________
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/lingo-l.cgi To post messages to the list,
email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo. Thanks!]