Results 1 to 8 of 8

Thread: To Megatron

  1. #1

    Thread Starter
    Hyperactive Member Asaf_99's Avatar
    Join Date
    Jul 2000
    Location
    Israel
    Posts
    335

    Unhappy

    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.
    Asaf Sagi

    ICQ: 61917199
    E-Mail: [email protected]

  2. #2
    Guest
    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

  3. #3
    Guru Yonatan's Avatar
    Join Date
    Apr 1999
    Location
    Israel
    Posts
    892

    Exclamation Registry!

    Why not save everything to the registry instead?
    Files get lost, the registry stays in one place!

  4. #4
    Frenzied Member
    Join Date
    Aug 1999
    Location
    Santa Clara, Ca , 95058
    Posts
    1,105
    Until it gets corrupted...

  5. #5

    Thread Starter
    Hyperactive Member Asaf_99's Avatar
    Join Date
    Jul 2000
    Location
    Israel
    Posts
    335
    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
    Asaf Sagi

    ICQ: 61917199
    E-Mail: [email protected]

  6. #6
    Guest
    I didnt reply to this thread.

  7. #7
    Guest
    He might have been referring to his previous thread.

  8. #8

    Thread Starter
    Hyperactive Member Asaf_99's Avatar
    Join Date
    Jul 2000
    Location
    Israel
    Posts
    335
    Megatron, you are going to be credited in app (ofcourse in your permission)
    Also, Dennis is going to be credited.
    Asaf Sagi

    ICQ: 61917199
    E-Mail: [email protected]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width