Click here to Skip to main content
15,905,874 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionDynamically creating controls with TableLayoutPanel Contrrols Pin
pavya_Cool28-May-08 1:34
pavya_Cool28-May-08 1:34 
AnswerRe: Dynamically creating controls with TableLayoutPanel Contrrols Pin
Mycroft Holmes28-May-08 15:55
professionalMycroft Holmes28-May-08 15:55 
QuestionVS 2005 references Pin
Mohammad Al Hoss28-May-08 0:38
Mohammad Al Hoss28-May-08 0:38 
AnswerRe: VS 2005 references Pin
Thomas Stockwell30-May-08 10:56
professionalThomas Stockwell30-May-08 10:56 
QuestionHow to get file size from website Pin
Kumaran21cen28-May-08 0:18
Kumaran21cen28-May-08 0:18 
AnswerRe: How to get file size from website Pin
dan!sh 28-May-08 0:54
professional dan!sh 28-May-08 0:54 
QuestionSetup Wizard Pin
cm pandian27-May-08 22:48
cm pandian27-May-08 22:48 
QuestionRead MySQL TinyText column from VB.NET [modified] Pin
drexler_kk27-May-08 20:15
drexler_kk27-May-08 20:15 
Hello all,I am wondering anyone can guide me how to read tiny text column for MySQL using VB.NET Datareader.

The following are the code I used to read the column:

Public Function StartupData(ByVal strKeySet as String)
Dim test as string
Dim MyTinyText as string

Try
 ObjComm = New OdbcCommand("SELECT SettingValue FROM pos_setting WHERE LocationCode='KK' AND SettingKey='ADD_BINLOG'", ObjConn)
 ObjConn.Open()
 ObjRead = ObjComm.ExecuteReader()
            If ObjRead.Read Then
                test = ObjRead.Item(0)
                MessageBox.Show("This is " & test & "")
            Else
                MessageBox.Show("No value")
            End If
            ObjConn.Close()
Catch ex As Exception

Finally
Objconn.Close
End Try


And my database table as follow:
/*Column Information For - test.pos_setting*/
---------------------------------------------

Field         Type         Collation          Null    Key     Default  Extra   Privileges                       Comment
------------  -----------  -----------------  ------  ------  -------  ------  -------------------------------  -------
LocationCode  varchar(10)  latin1_swedish_ci  NO      PRI                      select,insert,update,references         
SettingKey    varchar(10)  latin1_swedish_ci  NO      PRI                      select,insert,update,references         
SettingValue  tinytext     latin1_swedish_ci  YES             (NULL)           select,insert,update,references  


I'm wondering why its keep showing there is no data read inside the datareader? Actually there is a '0' inside the SettingValue for that row of data but I'm wondering why it doesn't read it? Anyone can give me a solution for this?

Thanks for reading~!

modified on Wednesday, May 28, 2008 6:59 PM

AnswerRe: Read MySQL TinyText column from VB.NET Pin
jzonthemtn28-May-08 2:00
jzonthemtn28-May-08 2:00 
GeneralRe: Read MySQL TinyText column from VB.NET Pin
drexler_kk28-May-08 13:02
drexler_kk28-May-08 13:02 
GeneralRe: Read MySQL TinyText column from VB.NET Pin
jzonthemtn29-May-08 2:36
jzonthemtn29-May-08 2:36 
QuestionHow to save outgoing mails in Outlook Express Sent Items Folder. Pin
SekharOne27-May-08 19:15
SekharOne27-May-08 19:15 
AnswerRe: How to save outgoing mails in Outlook Express Sent Items Folder. Pin
Sam Xavier28-May-08 23:34
Sam Xavier28-May-08 23:34 
QuestionKeep forms looking the same across different computers Pin
cstrader23227-May-08 9:36
cstrader23227-May-08 9:36 
AnswerRe: Keep forms looking the same across different computers Pin
Scott Dorman27-May-08 16:35
professionalScott Dorman27-May-08 16:35 
GeneralRe: Keep forms looking the same across different computers Pin
cstrader23227-May-08 17:03
cstrader23227-May-08 17:03 
GeneralRe: Keep forms looking the same across different computers Pin
Scott Dorman27-May-08 17:15
professionalScott Dorman27-May-08 17:15 
GeneralRe: Keep forms looking the same across different computers Pin
supercat927-May-08 18:18
supercat927-May-08 18:18 
GeneralRe: Keep forms looking the same across different computers Pin
Scott Dorman27-May-08 18:29
professionalScott Dorman27-May-08 18:29 
GeneralRe: Keep forms looking the same across different computers Pin
Christian Graus27-May-08 17:17
protectorChristian Graus27-May-08 17:17 
QuestionRename file in %systemroot%\inf by using visual basic 6 Pin
cocoonwls27-May-08 8:18
cocoonwls27-May-08 8:18 
AnswerRe: Rename file in %systemroot%\inf by using visual basic 6 Pin
jzonthemtn27-May-08 9:02
jzonthemtn27-May-08 9:02 
GeneralRe: Rename file in %systemroot%\inf by using visual basic 6 Pin
cocoonwls27-May-08 16:17
cocoonwls27-May-08 16:17 
QuestionProblem with Vista Pin
quioske27-May-08 7:47
quioske27-May-08 7:47 
AnswerRe: Problem with Vista Pin
Mitch F.27-May-08 10:59
Mitch F.27-May-08 10:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.