I'm trying to write the text property from various controls to a text
file using a for - next loop.
Here is the code I have come up with so far:
Dim File As FolderItem
Dim FileStream As TextOutputStream
Dim i As Integer
Dim Counter As Integer
Dim L As String
File = GetFolderItem("Source File")
FileStream = File.AppendToTextFile
Counter = Census1790.ControlCount
For i = 0 to Counter
FileStream.WriteLine
Next
My problem is I cannot figure out what comes after FileStream.WriteLine.
I've written to files before but always used this construction -
FileStream.WriteLine EditField1.text. Since I have an unknown number of
controls I wanted do a loop instead. I know it should be very simple but
whatever I try gives me a compiler error, usually Type Mismatch.
Can someone help me out?
Thanks.
Wayne
- - -
Unsubscribe or switch delivery mode:
<http://support.realsoftware.com/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
|