Click here to Skip to main content
15,909,898 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: If anybody know? Pin
Mkanchha27-Apr-05 17:18
Mkanchha27-Apr-05 17:18 
GeneralRe: If anybody know? Pin
Dave Kreskowiak28-Apr-05 7:58
mveDave Kreskowiak28-Apr-05 7:58 
QuestionAdding Items to Menu Control Arrays: How? Pin
Miles Tones27-Apr-05 5:33
Miles Tones27-Apr-05 5:33 
AnswerRe: Adding Items to Menu Control Arrays: How? Pin
Mike the Red27-Apr-05 8:42
Mike the Red27-Apr-05 8:42 
GeneralRe: Adding Items to Menu Control Arrays: How? Pin
Miles Tones27-Apr-05 9:15
Miles Tones27-Apr-05 9:15 
GeneralRe: Adding Items to Menu Control Arrays: How? Pin
Mike the Red27-Apr-05 9:58
Mike the Red27-Apr-05 9:58 
GeneralDeployment with SQL and CR Pin
Joey Picerno27-Apr-05 4:56
Joey Picerno27-Apr-05 4:56 
GeneralBrain Cramp... this should be simple, but I'm going nuts Pin
Mike the Red27-Apr-05 4:40
Mike the Red27-Apr-05 4:40 
Prototypical Code (class/method structure omitted):
dim FG as ComObject
dim someString as String = "Some String"

FG = new ComObject

Try
   FG.someMethod(someString)
Catch ex as Exception
   msgbox("Error: " & ex.message & vbCrLf & "(FG is Nothing): " & (fg Is Nothing).toString) & vbcrlf & "(someString is Nothing): " & (someString Is Nothing).toString)
End Try

-------
The output I get is:

Error: Object reference not set to an instance of an object.
(FG Is Nothing): False
(someString Is Nothing): False



I was under the impression that if the "object reference [is] not set to an instance of an object", then that object "Is Nothing" should return True.

Can someone set me straight, please, I'm going nuts trying to figure this one out.
GeneralRe: Brain Cramp... this should be simple, but I'm going nuts Pin
Len Miller27-Apr-05 5:38
Len Miller27-Apr-05 5:38 
GeneralRe: Brain Cramp... this should be simple, but I'm going nuts Pin
Mike the Red27-Apr-05 8:17
Mike the Red27-Apr-05 8:17 
GeneralRe: Brain Cramp... this should be simple, but I'm going nuts Pin
Len Miller27-Apr-05 10:34
Len Miller27-Apr-05 10:34 
GeneralRe: Brain Cramp... this should be simple, but I'm going nuts Pin
chrismerrill27-Apr-05 5:44
chrismerrill27-Apr-05 5:44 
GeneralI always reply in the wrong spot... Pin
Mike the Red27-Apr-05 8:14
Mike the Red27-Apr-05 8:14 
QuestionHow can I do calculations on the Data Grid (Run Time) Pin
Madni Abbasi27-Apr-05 4:23
Madni Abbasi27-Apr-05 4:23 
AnswerRe: How can I do calculations on the Data Grid (Run Time) Pin
rudy.net28-Apr-05 18:42
rudy.net28-Apr-05 18:42 
QuestionHow do i link a powerpoint show to VB.Net Pin
Court198727-Apr-05 0:44
Court198727-Apr-05 0:44 
Questionhow to design word document dynamically? Pin
Anonymous27-Apr-05 0:29
Anonymous27-Apr-05 0:29 
GeneralDeleting a DataGrid row ?! Pin
toxcct26-Apr-05 20:33
toxcct26-Apr-05 20:33 
GeneralRe: Deleting a DataGrid row ?! Pin
genius12326-Apr-05 23:37
genius12326-Apr-05 23:37 
GeneralRe: Deleting a DataGrid row ?! Pin
toxcct27-Apr-05 1:51
toxcct27-Apr-05 1:51 
GeneralRe: Deleting a DataGrid row ?! Pin
genius12327-Apr-05 18:42
genius12327-Apr-05 18:42 
QuestionHow to Install a Windows Service Pin
Mahesh167926-Apr-05 18:02
Mahesh167926-Apr-05 18:02 
AnswerRe: How to Install a Windows Service Pin
Het210926-Apr-05 20:01
Het210926-Apr-05 20:01 
GeneralRe: How to Install a Windows Service Pin
Anonymous26-Apr-05 20:16
Anonymous26-Apr-05 20:16 
GeneralRe: How to Install a Windows Service Pin
Sebastien Lachance27-Apr-05 6:54
Sebastien Lachance27-Apr-05 6:54 

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.