How do I define variable C1 the 'Connection Name' Globally... This way I can test for existence in one Sub, open it in another Sub, use it in another Sub and close it in a Fourth...
I know something needs to go in Sub Globals but I sure don't know what...
If FileExist ("Data.txt") = true Then
FileOpen (c1,"Data.txt",cRead ,, cASCII)
r = FileRead (c1)
Do Until r = EOF
sum = sum + r
r = FileRead (c1)
Loop
Msgbox (sum)
FileClose (c1)
End if
Thanks Andy
I know something needs to go in Sub Globals but I sure don't know what...
If FileExist ("Data.txt") = true Then
FileOpen (c1,"Data.txt",cRead ,, cASCII)
r = FileRead (c1)
Do Until r = EOF
sum = sum + r
r = FileRead (c1)
Loop
Msgbox (sum)
FileClose (c1)
End if
Thanks Andy