Greetings all..
I have what I THINK are 2 fairly simple questions which I can't
grasp the answer, appears just out of reach.
Question #1: How do I display a listboxes listcount if the listcount
is over 32,000 without getting the - character and it counting
backwards ? I have tried such things as dim listcount as long but
that didnt work.
Question #2: These items that appear in a listbox I am saving to a
file, however if the listcount is over say 7,000 items, it makes a
rather huge text file. I am trying to do some sort of save listbox
function that if the size of the file is say, over 500k, it closes
and reopens another file and continues the save.
Here is the save code i am currently using:
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Public Sub mnusavepath3_Click()
Dim f As Integer, i As Integer
Dim name As String
name = txtip.Text
f = FreeFile
Open App.Path & "\" & name & " savedpath3.txt" For Append As f
For i = 0 To List1.listcount - 1
If i > 0 Then
Print #f, txtdir.Text & List1.List(i)
Else
If i < 1 Then
End If
End If
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
What i am thinking is to close it at say 10,000 items, then open
another file, [in some sort of continued naming scheme like
savedpath3a.txt] countinuing on with the save function untill
all items are written to the files
Should i use a "len" function, or maybe an array of some sort ?
To unsubscribe, send an email to:
[EMAIL PROTECTED]
| Yahoo! Groups Sponsor | |
|
|
Yahoo! Groups Links
- To visit your group on the web, go to:
http://groups.yahoo.com/group/PlanetSourceCode/
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
