Subject: RE: Lookup Write in the Domino Designer help.
For practicing, I tried this example codes in design help,Dim fileNum As Integer, empNumber As Integer, I As Integer
Dim fileName As String, empName As String
Dim empLocation As Variant
Dim empSalary As CurrencyfileNum% = FreeFile()
fileName$ = “data.txt”’ Write out some employee data.Open fileName$ For Output As fileNum%
Write #fileNum%, “Joe Smith”, 123, “1 Rogers Street”, _
25000.99
Write #fileNum%, “Jane Doe”, 456, “Two Cambridge Center”, _
98525.66
Write #fileNum%, “Jack Jones”, 789, “Fourth Floor”, 0
Close fileNum%’ Read it all back and print it.
Open fileName$ For Input As fileNum%For I% = 1 To 3
Input #fileNum%, empName$, empNumber%, empLocation, _
empSalary@
Print empName$, empNumber%, empLocation, empSalary@
Next I%Close fileNum%’ Output:
’ LotusScript prints out the contents of the file
’ C:\data.txt in groups of four values each. Each group
’ consists of a String, an Integer, a Variant, and
’ a Currency value, in that order.
#########################
I coded in the action button, the code is running without error, but I can not find it - data.txt. from the help, it says the file should be located in c:, but I can not find it.
Any idea?