Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works
Photo

visual basic question


  • Please log in to reply

#1
atlantica

atlantica

    Member

  • Member
  • PipPip
  • 39 posts
I have a label that has text. When i load the exe file, i change that text. When i close the exe file and then open it up again, it is back to where it was before i had changed. How can i save the text that is changed? :)
  • 0

Advertisements


#2
Neil Jones

Neil Jones

    Member 5k

  • Member
  • PipPipPipPipPipPipPipPip
  • 8,476 posts
You need to save the contents of the file out, and then load it back in again when you load the program. All data in programs is only temporary until it's saved. You can't save data back to an EXE file.

As to how you do this depends entirely on which version of Visual Basic you're using as the routines are different.
  • 0

#3
atlantica

atlantica

    Member

  • Topic Starter
  • Member
  • PipPip
  • 39 posts
Are you saying i can't save anything in a EXE file?
i have vb 2008
  • 0

#4
Neil Jones

Neil Jones

    Member 5k

  • Member
  • PipPipPipPipPipPipPipPip
  • 8,476 posts
That is what I'm saying, yes.
If you want to preserve the contents of the label in question, either rebuild the executable file with the label the figure it should be or if it's meant to be dynamic and you want to keep it, you'll need to save it out to a file. All an executable file is a set of instructions with what are best described as default figures, labels and text. Details of how to save data variables out are in the online help file.
  • 0

#5
atlantica

atlantica

    Member

  • Topic Starter
  • Member
  • PipPip
  • 39 posts
okay, how should i make a file that would tell it to be w/e i change it to?
  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP