Hi all,
I need to get a part of an array, starting at some value and reading till it finds another value.
The array is like this:
[algemeen]
g-winzip
g-msword
g-msexcel
g-msaccess
g-msoutlook
[additioneel]
g-msword
g-winzip
g-msexcel
g-msoutlook
g-msaccess
[misbruik]
g-msoutlook
g-msword
g-msexcel
g-msaccess
g-winzip
I want let it start reading if it meets instr(arrGroups, "additioneel"
and keep on reading till it meets a Left(<stringname>,1) = "[" and then returning the values between [additioneel] and the next "[".
For Each item In arrGroups
If instr(item,"algemeen"
Then
WScript.Echo item
End If
Next
Is only returning the name "[algemeen]" (as expecteed)
I don't really know how i can accomplish this and even if it can be done.
Any help is welcome
Grtz Hanzel
If smile = vbFalse Then
MsgBox("Smile... Tomorrow will be worse!", ,"Smile..."
End If
I need to get a part of an array, starting at some value and reading till it finds another value.
The array is like this:
[algemeen]
g-winzip
g-msword
g-msexcel
g-msaccess
g-msoutlook
[additioneel]
g-msword
g-winzip
g-msexcel
g-msoutlook
g-msaccess
[misbruik]
g-msoutlook
g-msword
g-msexcel
g-msaccess
g-winzip
I want let it start reading if it meets instr(arrGroups, "additioneel"
For Each item In arrGroups
If instr(item,"algemeen"
WScript.Echo item
End If
Next
Is only returning the name "[algemeen]" (as expecteed)
I don't really know how i can accomplish this and even if it can be done.
Any help is welcome
Grtz Hanzel
If smile = vbFalse Then
MsgBox("Smile... Tomorrow will be worse!", ,"Smile..."
End If