Results 1 to 4 of 4

Thread: [Resolved]Error On Exe Compile?!

  1. #1

    Thread Starter
    Hyperactive Member squakMix's Avatar
    Join Date
    Oct 2003
    Location
    Washington
    Posts
    342

    [Resolved]Error On Exe Compile?!

    I have a program that runs perfectly in the vb6 Launcher, But when Compiled into an Exe, There Is an error when I Run my Options form. It must be In form load, But I cant Find anything. I get "Runtime error 13". Anybody know What This MIGHT refer to? Thanks!
    Last edited by squakMix; Nov 11th, 2003 at 09:27 PM.
    -squaK

  2. #2
    INXSIVE Bruce Fox's Avatar
    Join Date
    Sep 2001
    Location
    Melbourne, Australia
    Posts
    7,429
    Can you post the code that 'runs' the Option Form, and the Option Form Load code.

  3. #3

    Thread Starter
    Hyperactive Member squakMix's Avatar
    Join Date
    Oct 2003
    Location
    Washington
    Posts
    342
    Code that Runs It:

    VB Code:
    1. Private Sub Command1_Click()
    2. Form3.Show
    3. End Sub


    Things that Happen On load:

    VB Code:
    1. Private Sub Form_Load()
    2. Check2.Value = Form1.Label8.Caption
    3. 'Form1.Label8.caption will
    4. 'have something Like "1" or "0"
    5. Check1.Value = Form1.Label7.Caption
    6. 'Form1.Label7.caption will
    7. 'have something Like "1" or "0"
    8. Form3INI = True 'boolean
    9. Form3.Label1.Caption = Base.Caption
    10.  
    11. Check1.Value = GetSetting(App.EXEName, "OPT1", "OPT12", "")
    12. 'has something like "1" or "0"
    13. Check2.Value = GetSetting(App.EXEName, "OPT2", "OPT22", "")
    14. 'has something like "1" or "0"
    15.  
    16. If Check1 = Checked Then
    17.  
    18. Check1Checked = True 'boolean
    19.  
    20. Else
    21.  
    22. Check1Checked = False 'boolean
    23.  
    24. End If
    25.  
    26. If Check2 = Checked  Then
    27.  
    28. Check2Checked = True 'boolean
    29.  
    30. Else
    31.  
    32. Check2Checked = False 'boolean
    33.  
    34. End If
    35.  
    36. End Sub

    Thanks for the help. Im thinking that Maybe the setting, or the form1.label7 or label8.caption has something like "" and Is causing it to error.
    -squaK

  4. #4

    Thread Starter
    Hyperactive Member squakMix's Avatar
    Join Date
    Oct 2003
    Location
    Washington
    Posts
    342
    Yea, I did this:

    VB Code:
    1. Private Sub Form_Load()
    2. MsgBox ("Form1.Label8.caption:" + Form1.Label8.Caption)
    3. MsgBox ("Form1.Label7.caption:" + Form1.Label7.Caption)
    4. MsgBox ("Setting OPT1, OPT12:" + GetSetting(App.EXEName, "OPT1", "OPT12", ""))
    5. MsgBox ("Setting OPT2, OPT22:" + GetSetting(App.EXEName, "OPT2", "OPT22", ""))
    6.  
    7.  
    8. Check2.Value = Form1.Label8.Caption
    9. Check1.Value = Form1.Label7.Caption
    10. Form3INI = True
    11. Form3.Label1.Caption = Base.Caption
    12.  
    13. Check1.Value = GetSetting(App.EXEName, "OPT1", "OPT12", "")
    14. Check2.Value = GetSetting(App.EXEName, "OPT2", "OPT22", "")
    15.  
    16.  
    17. If Check1 = Checked Then
    18.  
    19. Check1Checked = True
    20.  
    21. Else
    22.  
    23. Check1Checked = False
    24.  
    25. End If
    26.  
    27. If Check2 = Checked Then
    28.  
    29. Check2Checked = True
    30.  
    31. Else
    32.  
    33. Check2Checked = False
    34.  
    35. End If
    36.  
    37.  
    38.  
    39.  
    40. End Sub

    and When i compiled the Exe, There was no value. Thanks for your help though.
    -squaK

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