User Profile

Collapse

Profile Sidebar

Collapse
richy176
richy176
Last Activity: Jun 11 '07, 04:55 PM
Joined: May 14 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • richy176
    started a topic loading a notepad file (.txt) to a listbox

    loading a notepad file (.txt) to a listbox

    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"...
    See more | Go to post

  • richy176
    replied to randomizing names
    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...
    See more | Go to post

    Leave a comment:


  • richy176
    started a topic randomizing names

    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!
    See more | Go to post

  • richy176
    started a topic need help with loading data

    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 "
    ...
    See more | Go to post

  • richy176
    replied to Label to ListBox
    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...
    See more | Go to post

    Leave a comment:


  • richy176
    started a topic Label to ListBox

    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?
    ...
    See more | Go to post

  • richy176
    started a topic help!

    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...
    See more | Go to post

  • richy176
    started a topic need help!

    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...
    See more | Go to post
No activity results to display
Show More
Working...