Can u help me to handle error 424 object required?

Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved

Join Date: Jul 2009
Posts: 4
Reputation: magenta_lover is an unknown quantity at this point 
Solved Threads: 0
magenta_lover magenta_lover is offline Offline
Newbie Poster

Can u help me to handle error 424 object required?

 
0
  #1
Jul 15th, 2009
Hi all,
i'm newbie in vb,
and i wanna learn a lot from u guys,

i try to run this code,

Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
  1. Dim linetext As String
  2. Private Sub open_Click()
  3. CommonDialog1.Filter = "Text files{*.txt)|*.txt"
  4. CommonDialog1.ShowOpen
  5.  
  6. If CommonDialog1.FileName <> "" Then
  7. Open CommonDialog1.FileName For Input As #1
  8. Do
  9. Input #1, linetext
  10. Text1.Text = Text1.Text & linetext
  11. Loop Until EOF(1)
  12. End If
  13. Close #1
  14. End Sub
  15. Private Sub save_Click()
  16. CommonDialog1.Filter = "Text files{*.txt)|*.txt"
  17. CommonDialog1.ShowSave
  18. If CommonDialog1.FileName <> "" Then
  19. Open CommonDialog1.FileName For Output As #1
  20. Print #1, Text1.Text
  21. Close #1
  22. End If
  23. End Sub

and appeared--> run-time error '424' : Object required
what does it mean?
and how to solve that problem?

thanks a lot before, i appreciate any help ^^
Reply With Quote Quick reply to this message  
Join Date: Jul 2009
Posts: 4
Reputation: magenta_lover is an unknown quantity at this point 
Solved Threads: 0
magenta_lover magenta_lover is offline Offline
Newbie Poster

Re: Can u help me to handle error 424 object required?

 
0
  #2
Jul 15th, 2009
finally, i found the answer by myself,

just setting the components for Microsoft Common Dialog in Control tab, and then it's run ^^

wow, glad to solved it
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC