I have taken data from a text file and placed it in a listbox but I can't compare the data in the listbox to a variable.
counter = 0
Open "C:\MyFiles\Visual Basic 6.0\Excel Storage\Username Storage.txt" For Input As #1
Do While Not EOF(1)
Input #1, AlreadyTaken
List1.AddItem...
I want to run a program that will keep track of names entered into a file. I can get it to enter data into the file each time that the program runs but it just writes over the data from the previous entry. This is the code that I am using.
Open "C:\MyFiles\Visual Basic 6.0\Excel...
I am trying to data in an excel file to store it. I am able to save a file but I cannot set the actual files name.
Dim oExcel As Object
Dim oBook As Object
Dim oSheet As Object
Dim path As String
'Start a new workbook in Excel
Set oExcel =...
That is what I assumed would do the job Lazy, but when I run the program the textbox remains blank.
I have a variable, First, publically declared as a string.
And I have a textbox named txtFirst
I tried the txtFirst.text = First but when the program runs the textbox remains blank.
Maybe I have...
I have declared several variables as public and I want the user to make sure that the data they stored in the variables is correct on another form.
But I am not sure how to get the variable into the textbox?
Any help?
Oh yeah, and does the file already have to exist or can you create a new file to place it in within your program. I want to send data to a file so that I can store it for future use. Is it possible to do this without having to have the user save the file. As in it stores the data without the...
Sorry I guess I didn't really explain what I needed. I knew how to convert the textbox information into a variable but I need to know how to check whether it fits a domain.
For example.
Enter your age:
I want to check to make sure that a number is entered into the textbox so that I can...
I am new to VB and I have no idea what you must do to test textbox information for specific characters. I am assuming there is a way to convert the information and place it into a variable but I am not sure if there is a better way to analyze the data. Thanks for any help.
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.