Jump to content
  • Advertisement
Sign in to follow this  
SKATIN_HARD

VB Code Mistake

This topic is 5024 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

This code: Private Sub cmdSave_Click() CommonDialog1.ShowSave Open CommonDialog1.FileName For Ouput As 1 (ERROR HERE) Print #1, Text1.Text Close 1 End Sub I am trying to make a save dialog but the 3rd line down causes problems. The error says: Expected Input or Output or Append or Binary or Random I'm unsure what this means and what I should add to my code, could somebody please help. Thanks!!!

Share this post


Link to post
Share on other sites
Advertisement
It's probably just because of a misspelling I think, look at the spelling of your Output and change it to Output (it seems to Ouput right now).

\Jimmy H

Share this post


Link to post
Share on other sites
Yeah - you made a spelling mistake (Output).

Other than that, check that the Filename is valid - but the error message points me at the misspelling.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!