473,326 Members | 2,010 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Undefined Value


Hi All,

What is a best way to handle an undefined value object class that returned
from a function. I have a function that call the ADO.NET ExecuteScalar()
function and returns the object to the calling function as follow:
public object FunctionA()
{
object RetVal;
... some preparation code here
RetVal = ExecuteScalar(); // This one execute a stored procedure
which can return an empty column

Return RetVal;
}
public int FunctionB()
{
object SingleValue;
... some code here
SingleValue = FunctionA();
}

The call to the FunctionA works only if the ExecuteScalar() returns a value.
If the stored procedure returns an empty column value, and then the call to
the FunctionA() breaks out with an exception...

Any thoughts????
Nov 15 '05 #1
6 2145
Hi David,

IDbCommand.ExecuteScalar Method returns the first column of the first row
in the resultset. If there are no rows returned from your command, a null
reference is returned. If the first column of the first row is a (Null)
value, a System.DBNull object is returned. So, if you want to determine if
any object is returned from the ExecuteScalar() method, you can try the
following codes:

command.Connection.Open();
Object o = com.ExecuteScalar();
com.Connection.Close();
if(o != null && o != System.DBNull.Value)
return (Int32)o;
else
return null;

Does this answer your question? If anything is unclear, please feel free to
reply to the post.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

--------------------
| From: " David N" <dq*****@netiq.com>
| Subject: Undefined Value
| Date: Sun, 5 Oct 2003 15:40:25 -0700
| Lines: 37
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <OW**************@tk2msftngp13.phx.gbl>
| Newsgroups: microsoft.public.dotnet.languages.csharp
| NNTP-Posting-Host: pat-50.bel.netiq.com 65.219.170.50
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!tk2msftn gp13.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.csharp:189108
| X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
|
|
| Hi All,
|
| What is a best way to handle an undefined value object class that returned
| from a function. I have a function that call the ADO.NET ExecuteScalar()
| function and returns the object to the calling function as follow:
|
|
| public object FunctionA()
| {
| object RetVal;
| ... some preparation code here
|
|
| RetVal = ExecuteScalar(); // This one execute a stored procedure
| which can return an empty column
|
| Return RetVal;
| }
|
|
| public int FunctionB()
| {
| object SingleValue;
| ... some code here
|
|
| SingleValue = FunctionA();
| }
|
| The call to the FunctionA works only if the ExecuteScalar() returns a
value.
| If the stored procedure returns an empty column value, and then the call
to
| the FunctionA() breaks out with an exception...
|
| Any thoughts????
|
|
|

Nov 15 '05 #2
Hi David,

IDbCommand.ExecuteScalar Method returns the first column of the first row
in the resultset. If there are no rows returned from your command, a null
reference is returned. If the first column of the first row is a (Null)
value, a System.DBNull object is returned. So, if you want to determine if
any object is returned from the ExecuteScalar() method, you can try the
following codes:

command.Connection.Open();
Object o = com.ExecuteScalar();
com.Connection.Close();
if(o != null && o != System.DBNull.Value)
return (Int32)o;
else
return null;

Does this answer your question? If anything is unclear, please feel free to
reply to the post.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

--------------------
| From: " David N" <dq*****@netiq.com>
| Subject: Undefined Value
| Date: Sun, 5 Oct 2003 15:40:25 -0700
| Lines: 37
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <OW**************@tk2msftngp13.phx.gbl>
| Newsgroups: microsoft.public.dotnet.languages.csharp
| NNTP-Posting-Host: pat-50.bel.netiq.com 65.219.170.50
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!tk2msftn gp13.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.csharp:189108
| X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
|
|
| Hi All,
|
| What is a best way to handle an undefined value object class that returned
| from a function. I have a function that call the ADO.NET ExecuteScalar()
| function and returns the object to the calling function as follow:
|
|
| public object FunctionA()
| {
| object RetVal;
| ... some preparation code here
|
|
| RetVal = ExecuteScalar(); // This one execute a stored procedure
| which can return an empty column
|
| Return RetVal;
| }
|
|
| public int FunctionB()
| {
| object SingleValue;
| ... some code here
|
|
| SingleValue = FunctionA();
| }
|
| The call to the FunctionA works only if the ExecuteScalar() returns a
value.
| If the stored procedure returns an empty column value, and then the call
to
| the FunctionA() breaks out with an exception...
|
| Any thoughts????
|
|
|

Nov 15 '05 #3
Hi David,

I'm sorry that I made a mistake in my former post. If the return value of
the function is a Int32 type. We cannot use

else
return null;

Because Int32 is a value ype.

Sorry for my mistake.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

--------------------
| X-Tomcat-ID: 46502818
| References: <OW**************@tk2msftngp13.phx.gbl>
| MIME-Version: 1.0
| Content-Type: text/plain
| Content-Transfer-Encoding: 7bit
| From: v-****@online.microsoft.com (Kevin Yu)
| Organization: Microsoft
| Date: Mon, 06 Oct 2003 02:47:42 GMT
| Subject: RE: Undefined Value
| X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
| Message-ID: <6C*************@cpmsftngxa06.phx.gbl>
| Newsgroups: microsoft.public.dotnet.languages.csharp
| Lines: 60
| Path: cpmsftngxa06.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.csharp:189132
| NNTP-Posting-Host: TOMCATIMPORT1 10.201.218.122
|
| Hi David,
|
| IDbCommand.ExecuteScalar Method returns the first column of the first row
| in the resultset. If there are no rows returned from your command, a null
| reference is returned. If the first column of the first row is a (Null)
| value, a System.DBNull object is returned. So, if you want to determine
if
| any object is returned from the ExecuteScalar() method, you can try the
| following codes:
|
| command.Connection.Open();
| Object o = com.ExecuteScalar();
| com.Connection.Close();
| if(o != null && o != System.DBNull.Value)
| return (Int32)o;
| else
| return null;
|
| Does this answer your question? If anything is unclear, please feel free
to
| reply to the post.
|
| Kevin Yu
| =======
| "This posting is provided "AS IS" with no warranties, and confers no
| rights."
|
| --------------------
| | From: " David N" <dq*****@netiq.com>
| | Subject: Undefined Value
| | Date: Sun, 5 Oct 2003 15:40:25 -0700
| | Lines: 37
| | X-Priority: 3
| | X-MSMail-Priority: Normal
| | X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| | Message-ID: <OW**************@tk2msftngp13.phx.gbl>
| | Newsgroups: microsoft.public.dotnet.languages.csharp
| | NNTP-Posting-Host: pat-50.bel.netiq.com 65.219.170.50
| | Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!tk2msftn gp13.phx.gbl
| | Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.languages.csharp:189108
| | X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
| |
| |
| | Hi All,
| |
| | What is a best way to handle an undefined value object class that
returned
| | from a function. I have a function that call the ADO.NET
ExecuteScalar()
| | function and returns the object to the calling function as follow:
| |
| |
| | public object FunctionA()
| | {
| | object RetVal;
| | ... some preparation code here
| |
| |
| | RetVal = ExecuteScalar(); // This one execute a stored procedure
| | which can return an empty column
| |
| | Return RetVal;
| | }
| |
| |
| | public int FunctionB()
| | {
| | object SingleValue;
| | ... some code here
| |
| |
| | SingleValue = FunctionA();
| | }
| |
| | The call to the FunctionA works only if the ExecuteScalar() returns a
| value.
| | If the stored procedure returns an empty column value, and then the
call
| to
| | the FunctionA() breaks out with an exception...
| |
| | Any thoughts????
| |
| |
| |
|
|

Nov 15 '05 #4
Hi David,

I'm sorry that I made a mistake in my former post. If the return value of
the function is a Int32 type. We cannot use

else
return null;

Because Int32 is a value ype.

Sorry for my mistake.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

--------------------
| X-Tomcat-ID: 46502818
| References: <OW**************@tk2msftngp13.phx.gbl>
| MIME-Version: 1.0
| Content-Type: text/plain
| Content-Transfer-Encoding: 7bit
| From: v-****@online.microsoft.com (Kevin Yu)
| Organization: Microsoft
| Date: Mon, 06 Oct 2003 02:47:42 GMT
| Subject: RE: Undefined Value
| X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
| Message-ID: <6C*************@cpmsftngxa06.phx.gbl>
| Newsgroups: microsoft.public.dotnet.languages.csharp
| Lines: 60
| Path: cpmsftngxa06.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.csharp:189132
| NNTP-Posting-Host: TOMCATIMPORT1 10.201.218.122
|
| Hi David,
|
| IDbCommand.ExecuteScalar Method returns the first column of the first row
| in the resultset. If there are no rows returned from your command, a null
| reference is returned. If the first column of the first row is a (Null)
| value, a System.DBNull object is returned. So, if you want to determine
if
| any object is returned from the ExecuteScalar() method, you can try the
| following codes:
|
| command.Connection.Open();
| Object o = com.ExecuteScalar();
| com.Connection.Close();
| if(o != null && o != System.DBNull.Value)
| return (Int32)o;
| else
| return null;
|
| Does this answer your question? If anything is unclear, please feel free
to
| reply to the post.
|
| Kevin Yu
| =======
| "This posting is provided "AS IS" with no warranties, and confers no
| rights."
|
| --------------------
| | From: " David N" <dq*****@netiq.com>
| | Subject: Undefined Value
| | Date: Sun, 5 Oct 2003 15:40:25 -0700
| | Lines: 37
| | X-Priority: 3
| | X-MSMail-Priority: Normal
| | X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| | Message-ID: <OW**************@tk2msftngp13.phx.gbl>
| | Newsgroups: microsoft.public.dotnet.languages.csharp
| | NNTP-Posting-Host: pat-50.bel.netiq.com 65.219.170.50
| | Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!tk2msftn gp13.phx.gbl
| | Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.languages.csharp:189108
| | X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
| |
| |
| | Hi All,
| |
| | What is a best way to handle an undefined value object class that
returned
| | from a function. I have a function that call the ADO.NET
ExecuteScalar()
| | function and returns the object to the calling function as follow:
| |
| |
| | public object FunctionA()
| | {
| | object RetVal;
| | ... some preparation code here
| |
| |
| | RetVal = ExecuteScalar(); // This one execute a stored procedure
| | which can return an empty column
| |
| | Return RetVal;
| | }
| |
| |
| | public int FunctionB()
| | {
| | object SingleValue;
| | ... some code here
| |
| |
| | SingleValue = FunctionA();
| | }
| |
| | The call to the FunctionA works only if the ExecuteScalar() returns a
| value.
| | If the stored procedure returns an empty column value, and then the
call
| to
| | the FunctionA() breaks out with an exception...
| |
| | Any thoughts????
| |
| |
| |
|
|

Nov 15 '05 #5
Yeap! when the function returns a null object, the caller will have
exception error without an opportunity to examine the object. That is
exactly what I have in FunctionA(), which returns a null object class to
FunctionB() - the caller. The call to

SingleValue = FunctionA(); generates the exception error.
// Have no chance to examine the SingleValue
if(SingleValue == dbnull)
......
....

"Kevin Yu" <v-****@online.microsoft.com> wrote in message
news:A8**************@cpmsftngxa06.phx.gbl...
Hi David,

I'm sorry that I made a mistake in my former post. If the return value of
the function is a Int32 type. We cannot use

else
return null;

Because Int32 is a value ype.

Sorry for my mistake.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

--------------------
| X-Tomcat-ID: 46502818
| References: <OW**************@tk2msftngp13.phx.gbl>
| MIME-Version: 1.0
| Content-Type: text/plain
| Content-Transfer-Encoding: 7bit
| From: v-****@online.microsoft.com (Kevin Yu)
| Organization: Microsoft
| Date: Mon, 06 Oct 2003 02:47:42 GMT
| Subject: RE: Undefined Value
| X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
| Message-ID: <6C*************@cpmsftngxa06.phx.gbl>
| Newsgroups: microsoft.public.dotnet.languages.csharp
| Lines: 60
| Path: cpmsftngxa06.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.csharp:189132 | NNTP-Posting-Host: TOMCATIMPORT1 10.201.218.122
|
| Hi David,
|
| IDbCommand.ExecuteScalar Method returns the first column of the first row | in the resultset. If there are no rows returned from your command, a null | reference is returned. If the first column of the first row is a (Null)
| value, a System.DBNull object is returned. So, if you want to determine
if
| any object is returned from the ExecuteScalar() method, you can try the
| following codes:
|
| command.Connection.Open();
| Object o = com.ExecuteScalar();
| com.Connection.Close();
| if(o != null && o != System.DBNull.Value)
| return (Int32)o;
| else
| return null;
|
| Does this answer your question? If anything is unclear, please feel free
to
| reply to the post.
|
| Kevin Yu
| =======
| "This posting is provided "AS IS" with no warranties, and confers no
| rights."
|
| --------------------
| | From: " David N" <dq*****@netiq.com>
| | Subject: Undefined Value
| | Date: Sun, 5 Oct 2003 15:40:25 -0700
| | Lines: 37
| | X-Priority: 3
| | X-MSMail-Priority: Normal
| | X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| | Message-ID: <OW**************@tk2msftngp13.phx.gbl>
| | Newsgroups: microsoft.public.dotnet.languages.csharp
| | NNTP-Posting-Host: pat-50.bel.netiq.com 65.219.170.50
| | Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!tk2msftn gp13.phx.gbl
| | Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.languages.csharp:189108
| | X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
| |
| |
| | Hi All,
| |
| | What is a best way to handle an undefined value object class that
returned
| | from a function. I have a function that call the ADO.NET
ExecuteScalar()
| | function and returns the object to the calling function as follow:
| |
| |
| | public object FunctionA()
| | {
| | object RetVal;
| | ... some preparation code here
| |
| |
| | RetVal = ExecuteScalar(); // This one execute a stored procedure
| | which can return an empty column
| |
| | Return RetVal;
| | }
| |
| |
| | public int FunctionB()
| | {
| | object SingleValue;
| | ... some code here
| |
| |
| | SingleValue = FunctionA();
| | }
| |
| | The call to the FunctionA works only if the ExecuteScalar() returns a
| value.
| | If the stored procedure returns an empty column value, and then the
call
| to
| | the FunctionA() breaks out with an exception...
| |
| | Any thoughts????
| |
| |
| |
|
|

Nov 15 '05 #6
Hi David,

Did you mean that the exception was thrown from FunctionA()? If so, you
have to use a Try block in FunctionA().
Please try to write FunctionA() as the code snippet I wrote in my last
post, and put it in a Try block. If any exception is thrown, it will be
caught in the Catch block.

Try
command.Connection.Open();
Object o = com.ExecuteScalar();
com.Connection.Close();
if(o != null && o != System.DBNull.Value)
return (Int32)o;
else
return 0;
Catch
return 0;

In my code 0 is the error code. No exception will be thrown out of
FunctionA().

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

--------------------
| From: " David N" <dq*****@netiq.com>
| References: <OW**************@tk2msftngp13.phx.gbl>
<6C*************@cpmsftngxa06.phx.gbl>
<A8**************@cpmsftngxa06.phx.gbl>
| Subject: Re: Undefined Value
| Date: Mon, 6 Oct 2003 09:41:58 -0700
| Lines: 149
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <O0**************@TK2MSFTNGP12.phx.gbl>
| Newsgroups: microsoft.public.dotnet.languages.csharp
| NNTP-Posting-Host: pat-50.bel.netiq.com 65.219.170.50
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP12.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.csharp:189299
| X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
|
| Yeap! when the function returns a null object, the caller will have
| exception error without an opportunity to examine the object. That is
| exactly what I have in FunctionA(), which returns a null object class to
| FunctionB() - the caller. The call to
|
| SingleValue = FunctionA(); generates the exception error.
|
|
| // Have no chance to examine the SingleValue
| if(SingleValue == dbnull)
| .....
| ...
|
|
|
|
|
| "Kevin Yu" <v-****@online.microsoft.com> wrote in message
| news:A8**************@cpmsftngxa06.phx.gbl...
| > Hi David,
| >
| > I'm sorry that I made a mistake in my former post. If the return value
of
| > the function is a Int32 type. We cannot use
| >
| > else
| > return null;
| >
| > Because Int32 is a value ype.
| >
| > Sorry for my mistake.
| >
| > Kevin Yu
| > =======
| > "This posting is provided "AS IS" with no warranties, and confers no
| > rights."
| >
| > --------------------
| > | X-Tomcat-ID: 46502818
| > | References: <OW**************@tk2msftngp13.phx.gbl>
| > | MIME-Version: 1.0
| > | Content-Type: text/plain
| > | Content-Transfer-Encoding: 7bit
| > | From: v-****@online.microsoft.com (Kevin Yu)
| > | Organization: Microsoft
| > | Date: Mon, 06 Oct 2003 02:47:42 GMT
| > | Subject: RE: Undefined Value
| > | X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
| > | Message-ID: <6C*************@cpmsftngxa06.phx.gbl>
| > | Newsgroups: microsoft.public.dotnet.languages.csharp
| > | Lines: 60
| > | Path: cpmsftngxa06.phx.gbl
| > | Xref: cpmsftngxa06.phx.gbl
| microsoft.public.dotnet.languages.csharp:189132
| > | NNTP-Posting-Host: TOMCATIMPORT1 10.201.218.122
| > |
| > | Hi David,
| > |
| > | IDbCommand.ExecuteScalar Method returns the first column of the first
| row
| > | in the resultset. If there are no rows returned from your command, a
| null
| > | reference is returned. If the first column of the first row is a
(Null)
| > | value, a System.DBNull object is returned. So, if you want to
determine
| > if
| > | any object is returned from the ExecuteScalar() method, you can try
the
| > | following codes:
| > |
| > | command.Connection.Open();
| > | Object o = com.ExecuteScalar();
| > | com.Connection.Close();
| > | if(o != null && o != System.DBNull.Value)
| > | return (Int32)o;
| > | else
| > | return null;
| > |
| > | Does this answer your question? If anything is unclear, please feel
free
| > to
| > | reply to the post.
| > |
| > | Kevin Yu
| > | =======
| > | "This posting is provided "AS IS" with no warranties, and confers no
| > | rights."
| > |
| > | --------------------
| > | | From: " David N" <dq*****@netiq.com>
| > | | Subject: Undefined Value
| > | | Date: Sun, 5 Oct 2003 15:40:25 -0700
| > | | Lines: 37
| > | | X-Priority: 3
| > | | X-MSMail-Priority: Normal
| > | | X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| > | | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| > | | Message-ID: <OW**************@tk2msftngp13.phx.gbl>
| > | | Newsgroups: microsoft.public.dotnet.languages.csharp
| > | | NNTP-Posting-Host: pat-50.bel.netiq.com 65.219.170.50
| > | | Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!tk2msftn gp13.phx.gbl
| > | | Xref: cpmsftngxa06.phx.gbl
| > microsoft.public.dotnet.languages.csharp:189108
| > | | X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
| > | |
| > | |
| > | | Hi All,
| > | |
| > | | What is a best way to handle an undefined value object class that
| > returned
| > | | from a function. I have a function that call the ADO.NET
| > ExecuteScalar()
| > | | function and returns the object to the calling function as follow:
| > | |
| > | |
| > | | public object FunctionA()
| > | | {
| > | | object RetVal;
| > | | ... some preparation code here
| > | |
| > | |
| > | | RetVal = ExecuteScalar(); // This one execute a stored
procedure
| > | | which can return an empty column
| > | |
| > | | Return RetVal;
| > | | }
| > | |
| > | |
| > | | public int FunctionB()
| > | | {
| > | | object SingleValue;
| > | | ... some code here
| > | |
| > | |
| > | | SingleValue = FunctionA();
| > | | }
| > | |
| > | | The call to the FunctionA works only if the ExecuteScalar() returns
a
| > | value.
| > | | If the stored procedure returns an empty column value, and then the
| > call
| > | to
| > | | the FunctionA() breaks out with an exception...
| > | |
| > | | Any thoughts????
| > | |
| > | |
| > | |
| > |
| > |
| >
|
|
|

Nov 15 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Gene Mat | last post by:
Hi, I'm trying to build a simple Perl program to get a list of newsgroups. Here's what I have... #!/opt/local/bin/perl use Net::NNTP; $nntp = Net::NNTP->new("nntp.perl.org",Debug,10);...
2
by: Guinness Mann | last post by:
Greetings, I asked this question over on the ADO.NET newsgroup and couldn't scrape up an answer. I realize that it is more of an ADO question than an SQL Server question, but I'm hoping there...
0
by: Dave | last post by:
Hi everyone, (I already posted this to the VS.NET IDE news group without any responses, so I'm attempting one more time in this group) The issue I'm having is occuring in the IDE of VS.NET...
1
by: Jean Stax | last post by:
Hi ! I created a sample library project. In my second project I reference this library and make the following call, which returns "undefined value": Type myType =...
3
by: Mark Sullivan | last post by:
When I trace through a csharp program I came to a situation where a certain values has an "undefined value" as shown in the debugger DbgClr. I want to check this but the following statements did...
5
by: Steven Prasil | last post by:
I have a C# program with an if statement similar to if (obj.myvar != Undefined.Value) { ...... } When I test it in the CSharp CLR debugger this debugger does not recoginze that the value is...
3
by: Girish | last post by:
Hi , I am migrating from VC 6.0 to VC 7.0 with ( windows Control Lib option in vc dot net ) where I want to draw an image using StretchDIBits. I am not able to get the HDC of the Window....
1
by: Joseph Geretz | last post by:
Why isn't the ASP.NET runtime providing a valid reference for this object to my WebService? I'm trying to use WSE and DIME to send attachments via Web Service. I've provided a whole lot of...
1
by: OtisUsenet | last post by:
Hi, I have a bookmarklet that works perfectly in Firefox, IE, Konqueror, and Opera, but in Safari 2.0.3 (417.9.2) it doesn't work. I enabled debugging and I can see "TypeError - Undefined...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.