|
-
Aug 18th, 2000, 10:50 AM
#1
Thread Starter
Hyperactive Member
Megatron, do you remember you gave me a code about saving the status o checkboxes?
well, i created some more checkboxes and I need to save them in another file.
The code you gave me saves all of the checkboxes in the form and when i load it, all of them are checked.
Can you give me a code that saves only the array named chk?
Please... I'm in a hurry.
-
Aug 18th, 2000, 10:59 AM
#2
So you want to save an array of CheckBoxes?
To Save
Code:
Open "MyCheckFile.txt" For Output As #1
For I = Check1.LBound To Check1.UBound
If Check1(I) = Checked Then Write #1, I
Next I
Close #1
To Load
Code:
For I = Check1.LBound To Check1.UBound
Check1(I) = Unchecked
Next I
Open "MyCheckFile.txt" For Input As #1
Do While Not EOF(1)
Input #1, tmp
Check1(tmp) = Checked
Loop
Close #1
-
Aug 18th, 2000, 11:11 AM
#3
-
Aug 18th, 2000, 05:22 PM
#4
Frenzied Member
Until it gets corrupted...
-
Aug 18th, 2000, 07:55 PM
#5
Thread Starter
Hyperactive Member
It is much more easier for me to do it in files instead of registry.
besides, files can be transfered and backuped while registry is hard and untransferrable.
ThanX Megatron, it works
ThanX Dennis, but it doesn't
-
Aug 18th, 2000, 08:22 PM
#6
I didnt reply to this thread.
-
Aug 19th, 2000, 09:53 AM
#7
He might have been referring to his previous thread.
-
Aug 19th, 2000, 12:03 PM
#8
Thread Starter
Hyperactive Member
Megatron, you are going to be credited in app (ofcourse in your permission)
Also, Dennis is going to be credited.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|