Click here to Skip to main content
15,923,281 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: problem on label control Pin
lisan_al_ghaib25-Aug-08 5:39
lisan_al_ghaib25-Aug-08 5:39 
GeneralRe: problem on label control Pin
Dave Kreskowiak25-Aug-08 12:37
mveDave Kreskowiak25-Aug-08 12:37 
QuestionGet Web Address Pin
nitin_ion25-Aug-08 2:11
nitin_ion25-Aug-08 2:11 
AnswerRe: Get Web Address Pin
jzonthemtn25-Aug-08 6:46
jzonthemtn25-Aug-08 6:46 
AnswerRe: Get Web Address Pin
Dave Kreskowiak25-Aug-08 12:36
mveDave Kreskowiak25-Aug-08 12:36 
QuestionLinkbutton not adding into table cell programmatically( problem ) Pin
Rameez Raja25-Aug-08 0:59
Rameez Raja25-Aug-08 0:59 
AnswerRe: Linkbutton not adding into table cell programmatically( problem ) Pin
jzonthemtn25-Aug-08 6:47
jzonthemtn25-Aug-08 6:47 
QuestionRead for database SQL 2005 with more than 20 columns in a record Pin
DCAUB25-Aug-08 0:44
DCAUB25-Aug-08 0:44 
Hello,

Maybe a stupid question.

When i read from my database is do for example myreader.getstring(15) when i do this i read out the colom 15 that is in the record.

My coloms are bigger than 20 so now i have the problem when i try to Read for ex. Myreader.getstring (21) that the matri is not big enough.

Can anyone tell me how i can read out bigger than 20. Maybe change the dim but i dont know where.

My read programm for example :


Dim cnstandaardinstellingen As New SqlConnection(connectionstring)
Dim cmdstandaardinstellingen As New SqlCommand


cnstandaardinstellingen.Open()

Dim strQuerystandaardinstellingen As String = "select * from instellingen where hotel ='" + hotel + "'"
Dim myCommandstandaardinstellingen As New SqlCommand(strQuerystandaardinstellingen, cnstandaardinstellingen)
Dim myReaderstandaardinstellingen As SqlDataReader = myCommandstandaardinstellingen.ExecuteReader()
myReaderstandaardinstellingen.Read()


ticketprinterport = myReaderstandaardinstellingen.GetString(12)
Startgroup = myReaderstandaardinstellingen.GetString(21) --> here there is a error that the Matrix is not big enough.



myReaderstandaardinstellingen.Close()
cnstandaardinstellingen.Close()



Thanks.

DCA
AnswerRe: Read for database SQL 2005 with more than 20 columns in a record Pin
Colin Angus Mackay25-Aug-08 3:24
Colin Angus Mackay25-Aug-08 3:24 
GeneralRe: Read for database SQL 2005 with more than 20 columns in a record Pin
DCAUB25-Aug-08 3:35
DCAUB25-Aug-08 3:35 
GeneralRe: Read for database SQL 2005 with more than 20 columns in a record Pin
Colin Angus Mackay25-Aug-08 3:47
Colin Angus Mackay25-Aug-08 3:47 
QuestionHow to refresh a combobox in another form after the values of the combo have been updated? Pin
rprateek24-Aug-08 21:01
rprateek24-Aug-08 21:01 
AnswerRe: How to refresh a combobox in another form after the values of the combo have been updated? Pin
AlexeiXX325-Aug-08 6:10
AlexeiXX325-Aug-08 6:10 
GeneralRe: How to refresh a combobox in another form after the values of the combo have been updated? Pin
rprateek25-Aug-08 13:46
rprateek25-Aug-08 13:46 
AnswerRe: How to refresh a combobox in another form after the values of the combo have been updated? Pin
rprateek27-Aug-08 17:20
rprateek27-Aug-08 17:20 
QuestionMinimize all windows Pin
AlexeiXX324-Aug-08 18:29
AlexeiXX324-Aug-08 18:29 
AnswerRe: Minimize all windows Pin
John Ad24-Aug-08 21:33
John Ad24-Aug-08 21:33 
GeneralRe: Minimize all windows Pin
AlexeiXX325-Aug-08 6:03
AlexeiXX325-Aug-08 6:03 
GeneralRe: Minimize all windows Pin
Jon_Boy25-Aug-08 7:35
Jon_Boy25-Aug-08 7:35 
GeneralRe: Minimize all windows Pin
AlexeiXX325-Aug-08 7:40
AlexeiXX325-Aug-08 7:40 
GeneralRe: Minimize all windows Pin
JR21227-Aug-08 1:56
JR21227-Aug-08 1:56 
QuestionA more elegent way?? Pin
Rafone24-Aug-08 13:08
Rafone24-Aug-08 13:08 
AnswerRe: A more elegent way?? Pin
jzonthemtn24-Aug-08 13:36
jzonthemtn24-Aug-08 13:36 
GeneralRe: A more elegent way?? Pin
Rafone24-Aug-08 16:01
Rafone24-Aug-08 16:01 
AnswerRe: A more elegent way?? Pin
Gideon Engelberth25-Aug-08 2:45
Gideon Engelberth25-Aug-08 2:45 

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.