Click here to Skip to main content
16,006,355 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: between two forms Pin
Christian Graus17-Jan-06 14:33
protectorChristian Graus17-Jan-06 14:33 
QuestionInstaller selected directory. Pin
bskirkman17-Jan-06 13:04
bskirkman17-Jan-06 13:04 
AnswerRe: Installer selected directory. Pin
bskirkman17-Jan-06 14:46
bskirkman17-Jan-06 14:46 
QuestionVBA - Declare - Finding the Lib File - Windows Registry? Pin
JSadleir17-Jan-06 12:09
JSadleir17-Jan-06 12:09 
AnswerRe: VBA - Declare - Finding the Lib File - Windows Registry? Pin
Dave Kreskowiak17-Jan-06 13:58
mveDave Kreskowiak17-Jan-06 13:58 
GeneralRe: VBA - Declare - Finding the Lib File - Windows Registry? Pin
JSadleir17-Jan-06 17:00
JSadleir17-Jan-06 17:00 
GeneralRe: VBA - Declare - Finding the Lib File - Windows Registry? Pin
Dave Kreskowiak19-Jan-06 9:30
mveDave Kreskowiak19-Jan-06 9:30 
Questionhelp with arrays Pin
jszpila17-Jan-06 11:45
jszpila17-Jan-06 11:45 
Hello everyone,
I'm having a hard time getting the hang of arrays in VB.Net. I'm trying to use one array to hold other arrays. Trick is, it will not always hold the parent array will not have a static number of child arrays. I'm trying to populate it something like this:

Dim ParentArray as Array<br />
Dim i, x as Integer<br />
<br />
'SQL query gets number of child arrays i want to make and assigns it to x<br />
<br />
for i = 0 to x<br />
  ParentArray(i) = MakeChild(i)<br />
next


MakeChild returns and array, and goes a little something like this
Function MakeChild(ByVal QuestionID As Integer)<br />
        Dim ansArray As Array<br />
        Dim i As Integer<br />
<br />
        strSQL = "sql query stuff"<br />
        sqlCom = New SqlCommand(strSQL, sqlCon)<br />
        drRes = sqlCom.ExecuteReader<br />
        While drRes.Read() = True<br />
            For i = 0 To drRes.Depth<br />
                ansArray(i) = drRes(i)<br />
            Next<br />
        End While<br />
        drRes.Close()<br />
        Return ansArray


I keep getting the following error:
Object variable or With block variable not set


Sorry about the longish post. Any help would be greatly appreciated!

-------------------
abort, retry, fail?
AnswerRe: help with arrays Pin
Joshua Quick17-Jan-06 13:01
Joshua Quick17-Jan-06 13:01 
GeneralRe: help with arrays Pin
jszpila18-Jan-06 3:34
jszpila18-Jan-06 3:34 
QuestionAlignment problem displaying .txt file in window's textbox? Pin
Brightday17-Jan-06 5:40
Brightday17-Jan-06 5:40 
AnswerRe: Alignment problem displaying .txt file in window's textbox? Pin
Dave Kreskowiak17-Jan-06 6:37
mveDave Kreskowiak17-Jan-06 6:37 
GeneralRe: Alignment problem displaying .txt file in window's textbox? Pin
Brightday17-Jan-06 7:53
Brightday17-Jan-06 7:53 
GeneralDave - please send me an email !!! Pin
Christian Graus17-Jan-06 9:59
protectorChristian Graus17-Jan-06 9:59 
GeneralRe: Dave - please send me an email !!! Pin
Dave Kreskowiak17-Jan-06 10:33
mveDave Kreskowiak17-Jan-06 10:33 
Questionopen a form closing the opener Pin
ecentinela17-Jan-06 5:04
ecentinela17-Jan-06 5:04 
QuestionRe: open a form closing the opener Pin
Roy Heil17-Jan-06 7:07
professionalRoy Heil17-Jan-06 7:07 
AnswerRe: open a form closing the opener Pin
vinji17-Jan-06 7:08
vinji17-Jan-06 7:08 
GeneralRe: open a form closing the opener Pin
ecentinela17-Jan-06 8:02
ecentinela17-Jan-06 8:02 
GeneralRe: open a form closing the opener Pin
vinji17-Jan-06 8:09
vinji17-Jan-06 8:09 
GeneralRe: open a form closing the opener Pin
ecentinela17-Jan-06 8:13
ecentinela17-Jan-06 8:13 
QuestionList of NT Users ina Domain Pin
Bob Zagars17-Jan-06 4:26
Bob Zagars17-Jan-06 4:26 
QuestionUnable to destroy COM object Pin
rudy.net17-Jan-06 4:03
rudy.net17-Jan-06 4:03 
QuestionAuto Video format detection Pin
amitmores17-Jan-06 3:58
amitmores17-Jan-06 3:58 
AnswerRe: Auto Video format detection Pin
jszpila17-Jan-06 10:57
jszpila17-Jan-06 10:57 

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.