[ASP] String in stukken hakken....

Pagina: 1
Acties:

  • sopsop
  • Registratie: Januari 2002
  • Laatst online: 12-09 12:04

sopsop

[v] [;,,;] [v]

Topicstarter
Ik heb een string (d) bestaande uit:
d = "1, 2, 3, 4" (kunnen 1 tot 50 getallen zijn)
ik wil de getallen uit die string als variabele in een functie meesturen:
sendMessage(1)
sendMessage(2)
sendMessage(3)
sendMessage(4)

Hoe kan ik dat het gemakkelijkst maken, ikzelf had al bedacht:
code:
1
2
3
4
5
6
7
8
9
10
dim hulp()
dim i
dim j
hulp = split(d,", ")
i = count(d,", ")
j=0
while j =< i
 sendMessage(CInt(hulp(j))
 j=j+1
wend

Waarom doet dit niet wat ik wil?!?
Geeft meldingen op count (incompatible type)

  • Gert
  • Registratie: Juni 1999
  • Laatst online: 05-12-2025
code:
1
2
3
For i = 0 to UBound(hulp,1)
    sendMessage(CInt(hulp(i)))
Next

Count() bestaat niet :o

  • sopsop
  • Registratie: Januari 2002
  • Laatst online: 12-09 12:04

sopsop

[v] [;,,;] [v]

Topicstarter
vandaar die melding |:(
Thanx