Subject: RE: is there a limitation on amount of files i can write?
Here’s what the code looks like…
Sub Initialize
'Dim aLog As NotesLog
Dim db As NotesDatabase
Dim filenum As Integer, I As Integer
Dim filename As String
Dim Path As String, form As String
Dim workspace As NotesUIWorkspace
Dim collA As NotesDocumentCollection
Dim collB As NotesDocumentCollection
Dim doc, response As NotesDocument
Dim s As New NotesSession
Dim IDNum As Variant, edu As Variant, IDnum2 As Variant
Dim Certifications As Variant, security As Variant, history As Variant
Dim publications As Variant, memberships As Variant, devtools As Variant
Dim appProtocols As Variant, CabPlant As Variant, dbsystems As Variant
Dim emgrpware As Variant, hdware As Variant, lanwan As Variant
Dim netmgmt As Variant, nos As Variant, nprot As Variant
Dim gdexp As Variant
Dim opsys As Variant, plang As Variant
Dim eng1 As Variant, eng2 As Variant
Dim eng3 As Variant, eng4 As Variant
Dim view As NotesView
Dim item As NotesItem
Dim dt As notesdatetime
Set aLog = New NotesLog("Database log")
Set db = s.CurrentDatabase
Set view = db.GetView("Employee Resumes")
Set doc = view.GetFirstDocument
Set response = view.GetChild(doc)
Chdrive "C"
While Not (doc Is Nothing)
Chdir "c:\EresData2"
IDNum = doc.GetItemValue( "EmpNumber" )
If IDNum(0) = "000000" Or "00000" Then
Set doc = view.GetNextDocument(doc)
End If
'If doc.HasEmbedded Then
'****************************************************************
'Info from Resume Form
edu = doc.GetItemValue("Education")
history = doc.GetItemValue("emphistory")
security = doc.GetItemValue("security")
publications = doc.GetItemValue("publications")
memberships = doc.GetItemValue("memberships")
'end data from resume form
'*********************************************************************
filename$ = IDnum(0) & ".txt"
filenum% = Freefile()
Open filename$ For Output As filenum%
If edu(0) <> "" Then
Write #filenum%, "Education: " & edu(0) & "#\"
End If
If security(0) <> "" Then
Write #filenum%, "Security Clearance: " & security(0) & "#\"
End If
If publications(0) <>"" Then
Write #filenum%, "Publications, Awards, Honors: " & publications(0) & "#\"
End If
If memberships(0) <> "" Then
Write #filenum%, "Associations: " & memberships(0) & "#\"
End If
If history(0) <> "" Then
Write #filenum%, "Other Work Experience: " & history(0) & "#\"
End If
IDnum2 = doc.GetItemValue( "EmpNumber" )
formname = doc.GetitemValue("form")
If IDNum2(0) <> IDNum(0) & formname(0) = "Technical Skills" Then
Close #fileNum%
Set doc = view.GetNextDocument( doc )
Else
'***********************************************************************
'Engineering section starts here - goes to Certifications and Licenses
eng1 = response.GetItemValue("Engineering1")
eng2 = response.GetItemValue("OtherEDisc")
eng3 = response.GetItemValue("Engineering2")
eng4 = response.GetItemValue("OtherESkills")
'End of engineering section
'**************************************************************************
Certifications = response.GetItemValue("Certifications")
appProtocol = response.GetItemValue("apchoicesall")
dbsystems = response.GetItemValue("dbchoicesall")
devtools = response.GetItemValue("devchoicesall")
emgrpware = response.GetItemValue("gwchoicesall")
hdware = response.GetItemValue("hdchoicesall")
lanwan = response.GetItemValue("lanchoicesall")
netmgmt = response.GetItemValue("nmchoicesall")
nos = response.GetItemValue("noschoicesall")
nprot = response.GetItemValue("npchoicesall")
opsys = response.GetItemValue("oschoicesall")
plang = response.GetItemValue("lgchoicesall")
Write #filenum%, "Certifications& Licenses: " & Certifications(0) & " ", eng1(0) <> " " & " " , eng2(0) & " ", eng3(0) & " ", eng4(0) & " " & "#\"
Write #filenum%, "Expertise/Skill Summary: " & appProtocol(0) & " ", dbsystems(0) & " ", devtools(0) & " ", emgrpware(0) & " ",_
hdware(0) & " ", lanwan(0) & " " ,netmgmt(0) & " ", nos(0) & " " , nprot(0) & " ", opsys(0) & " ", plang(0) & " ", "#\"
End If
Close #fileNum%
Set doc = view.GetNextDocument(doc)
If doc.IsResponse Then
Set doc = view.GetNextDocument(doc)
End If
Wend
End Sub