Results 1 to 4 of 4

Thread: [RESOLVED] 3 problems

  1. #1

    Thread Starter
    Member
    Join Date
    Feb 2008
    Posts
    57

    Resolved [RESOLVED] 3 problems

    Hello guys, I am trying to built a mysql application.
    1. I have a checklistbox, with 25 items. Most of them reads it ok. When it reaches at "Birth Place", MySQL reads only "Birth". The string is ok, because before I send it to Mysql, I print it in textbox. Why is this happenning?
    The items are in Greek, and mysql collumns.
    Code:
    Dim SQL As String
    SQL = "SELECT " & ShowCol & " FROM ΠΡΟΣΩΠΙΚΟ WHERE AGE = '25'"
    .....
    
    
    Sub ChooseCols()
            Dim Num, i, j As Integer
                For i = 0 To frmSearch.CheckedListBox1.Items.Count - 1
                For j = 0 To frmSearch.CheckedListBox1.CheckedItems.Count - 1
                    If j = 0 Then
                        ShowCol = frmSearch.CheckedListBox1.CheckedItems.Item(j)
                    Else
                        ShowCol = ShowCol & ", " & frmSearch.CheckedListBox1.CheckedItems.Item(j)
                    End If
                Next
            Next
            frmSearch.TextBox1.Text = ShowCol
        End Sub
    2. My checklistbox needs 2 clicks to check an item. I want to do it with one click. I checked properties, but there isn't anything similar.

    3. I want when I debug the programm, my default language to be greek. Is this possible?
    Last edited by manin; Jan 27th, 2009 at 07:11 AM.

  2. #2
    Learning .Net danasegarane's Avatar
    Join Date
    Aug 2004
    Location
    VBForums
    Posts
    5,853

    Re: 3 problems

    2. My checklistbox needs 2 clicks to check an item. I want to do it with one click. I checked properties, but there isn't anything similar.
    Code:
    Set the CheckOnClick Property of the CheckedListBox to True
    I am not sure what you are asking about the rest
    Please mark you thread resolved using the Thread Tools as shown

  3. #3

    Thread Starter
    Member
    Join Date
    Feb 2008
    Posts
    57

    Re: 3 problems

    Quote Originally Posted by danasegarane
    I am not sure what you are asking about the rest
    For the first:
    I use SQL string to retrieve from the database with SELECT.
    ShowCol is a string that holds all cecked items from checklistbox.
    ShowCol = frmSearch.CheckedListBox1.CheckedItems.Item(j).
    All items are in greek, and I have no problem. I have problem with these that have a space (hire date). Mysql reads only one word, the first or the last...

    for the third
    when I run the application, I have to change language to write in greek. I want greek as default language in my application

  4. #4
    Learning .Net danasegarane's Avatar
    Join Date
    Aug 2004
    Location
    VBForums
    Posts
    5,853

    Re: 3 problems

    You could have a look at the topic of ResourceFiles
    Please mark you thread resolved using the Thread Tools as shown

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width