i have a notepad file which is C:/Students.txt and i want the file to open up into a listbox on VB. is there any way i can do that?
This is what i have so far, but i recieve an error saying "Type Mismatch" does anyone know what im doing wrong? if so please help me correct it!
---------------------------
Dim List As String <<Declaration
-----------------------------
Open "C:\students.tx t"...
User Profile
Collapse
-
loading a notepad file (.txt) to a listbox
-
hey, thanks for replying. i belive i forgotten to give a better detail.
im using visual basic 6.0, and when i input names which i know how to do it, i want to click on a command button to shuffle the names.
i hope thats given u a better idea as to what to do... -
randomizing names
hey. i was wondering if there is a way to randomize a list of names?
i have a listbox name list1 and i want the list to shuffle a list of names, 18 names in total.
if there is any way i can do this please help me on this. much appreaciated! -
need help with loading data
below is a load command button which loads data...what shows below is im trying to load some details from a label in one form onto a listbox in a different form. i dont know if the code below is correct but if anyone knows the problem, can someone help me correct it?
thanks!
Dim GName, YName As Variant (General Declarations)
Private Sub cmdLoad_Click()
Open "C:\student.txt "... -
thanks....i dont get an error anymore but nothing appears, i wanna make sure my load button works cus thats the button i press to open the name onto the listbox. here is the code
Dim GName, YName As Variant (General Declarations)
Private Sub cmdLoad_Click()
Open "C:\student.txt " For Input As #1
Input #1, GName, YName
GList.List = GName
YList = YName...Leave a comment:
-
Label to ListBox
hey....does anyone know how to load a group of data that was stored in a label to open into a listbox?
i have 2 forms, the one form is an input form where a user would input names in a textbox, when the user presses enter, the name goes into the label, i save the data, then go to the 2nd form...when i click on load i want the data from the 1st form (label) to open in a Listbox
does anyone know how to do this?
... -
help!
hey...im doing an IF statement, and i was wondering if there is a way this code below can be done 17 times without copying and pasting 17 times?
If cboGSnap(0) = "2" Then
lblSnapWin(0) = "G"
ElseIf cboYSnap(0) = "2" Then
lblSnapWin(0) = "Y"
End If
If Val(cboGSnap(0) ) + Val(cboYSnap(0) ) = 4 Then
MsgBox "Error! please recheck score... -
need help!
hey...i am creating a program for college which i have to create a system for a school. there are 2 houses (green and yellow) and they have students in each house, all members from the green and yellow house compete against each other in 4 types of games, im stuck on a code where it requires me to shuffle the students names but i CANNOT have the same students competing against each other in more than 1 game. e.g. Bob from Green House faces Patrick...
No activity results to display
Show More
Leave a comment: