A forum member from Xtreme Visual Basic Talk (Passel) came up with this, works OK:
Assign the textboxes to variants and put the variants in a binary file.
Private Sub Save_Click()
Dim a As Variant
If Len(Dir$("c:\test.bin")) > 0 Then Kill "c:\test.bin"
Open "c:\test.bin" For Binary As #1...
Hi,
is it possible to save the contents of more textboxes, normal and RTF, in one file?
E.g. save the contents of 2 normal textboxes and 3 RTF textboxes in one file, so this one file contains the contents of all 5 textboxes.
If this can be done, how can I retrieve the contents of the 5...
Hi,
how do I edit a hyperlink field in an MS Access database from within a Visual Basic 6 application?
The Data Type of the column in the database table is already Hyperlink. (I can edit, save, load an Access database with my VB6 application, but now I want to add hyperlinks. Can't figure this...
Hi,
how can I make my Visual Basic 6 program to start up and load a data file by double-clicking that data file in WIndows Explorer?
Just like you double-click a text file and Notepad is started and loads that text file.
thanks in advance.
Hi all,
I am loading a simple Excel workbook and immediately saving it without any changes in Visual Basic 6 Pro.
See code:
'Reference to Microsoft Excel Object Library 8.0 (PC with Windows 2000, Office 97)
Dim Booklet As Workbook
Set Booklet = GetObject("C:\test.xls") 'load
Booklet.Save...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.