Click to See Complete Forum and Search --> : VB 5


XtremeVB
November 1st, 1999, 05:11 PM
I need to know how to save!!! To set up a save button with code in my application, I don't know how to do this can you help???

Thanks

November 3rd, 1999, 07:20 AM
What and where you want to save? You can save some data in a file, in a database, registry and so on. With file you can do something like this:

Dim intFileNumber as Integer

Open "C:\...\Test.txt for input lock Read Write as #FileNumber
input #FileNumber, "My Testing Data"
Close #FileNumber



With database there is a lot of methods: Data Control, DAO, ADO ...
With registry use SaveSetting statement or use API.
Vlad