Hi all,I’ve some data gathered via ODBC in an fields array of 25 elements.
With a for loop I write these data in 25 row of fields.
But the speed of this write is so slow that I can ,litterally, see the row being write a field a time!!!
There is a way to speed up this process?
The code that I use is the follow:
Function dataPump(pos As Integer, posOffset As Integer, uidoc As NotesUIDocument) As Boolean
dataPump= True
On Error Goto errore
Dim i As Integer
Dim si As String
For i = 1 To posOffset
result.CurrentRow = pos+ i
si= Cstr(i)
Call uidoc.FieldSetText("fId_"+si, result.GetValue("No_"))
Call uidoc.FieldSetText("fName_"+si, result.GetValue("Name"))
Call uidoc.FieldSetText("fAddress_"+si, result.GetValue("Address"))
Call uidoc.FieldSetText("fCity_"+si, result.GetValue("City"))
Call uidoc.FieldSetText("fCounty_"+si, result.GetValue("County"))
Call uidoc.FieldSetText("fZip_"+si, result.GetValue("Zip"))
’ Call uidoc.FieldSetText(“fCountry_”+si, result.GetValue(“Country”))
Call uidoc.FieldSetText("fLang_"+si, result.GetValue("Language"))
’ Call doc.ReplaceItemValue(“fTel_”+Cstr(i), result.GetValue(“Phone”))
’ Call doc.ReplaceItemValue(“fMobile_”+Cstr(i), result.GetValue(“Mobile”))
Next
Exit Function
errore:
Messagebox "Error" & Str(Err) & ": " & Error$
dataPump= False
Exit Function
End Function