Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Forall statements

Status
Not open for further replies.
Dec 12, 2000
13
0
0
US
Dim data As String

data = source.FieldGetText("files")
test = Evaluate("@Explode(data; ,)")
Forall x In test
Messagebox x
End Forall

Trying to take a field and turn it into a list or array so that I can run all the items through a forall statement. With the above code x is blank. I have tried other ways but this is as close as I have gotten.

Thanks
 
I did this for one of my db :

Sub Querysave(Source As Notesuidocument, Continue As Variant)
Dim curdoc As Notesdocument
Dim s_DocAccess As String

Set curdoc = Source.Document

'Initialize the variable
s_DocAccess = ""

Forall x In curdoc.DocAccess
'Check if x is already in the list
If Instr( 1, s_DocAccess , x ) = 0 Then
'If not
s_DocAccess = s_DocAccess & "; " & x
End If
End Forall

curdoc.DocAccess = s_DocAccess

End Sub

Hope that it will help you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top