473,385 Members | 1,655 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,385 software developers and data experts.

Whats the difference?

I know that this is just a warning message, but I wonder why the IDE flags
the first function with a warning, but not the second one. The warning
message is :
Function 'GetView' doesn't return a value on all code paths. A null
reference exception could occur at run time when the result is used.
Here is the code:
__________________________________________________ ____________________
Public Class SearchMgr
Public Enum SearchMgrTables
Subscriptions
Contacts
Invoices
End Enum
..
..
..
Public Function GetView(ByVal table As SearchMgrTables, ByVal colname As
String) As DataView
Select Case table
Case SearchMgrTables.Subscriptions
If SubSrchMgr Is Nothing Then
SubSrchMgr = New SubSearchViewMgr
End If
Return SubSrchMgr.GetView(colname)
Case SearchMgrTables.Contacts
If ContactSrchMgr Is Nothing Then
ContactSrchMgr = New ContactSearchViewMgr
End If
Return ContactSrchMgr.GetView(colname)
Case SearchMgrTables.Invoices
If OpenInvSrchMgr Is Nothing Then
OpenInvSrchMgr = New OpenInvSearchViewMgr
End If
Return OpenInvSrchMgr.GetView(colname)
End Select
End Function

Public Function Seek(ByVal table As SearchMgrTables, ByVal val As
String) As Integer
Select Case table
Case SearchMgrTables.Subscriptions
If SubSrchMgr IsNot Nothing Then
Return Search(SubSrchMgr.CurrentView, val,
SubSrchMgr.CurrentColumnNum)
End If
Case SearchMgrTables.Contacts
If ContactSrchMgr IsNot Nothing Then
Return Search(ContactSrchMgr.CurrentView, val,
ContactSrchMgr.CurrentColumnNum)
End If
Case SearchMgrTables.Invoices
If OpenInvSrchMgr IsNot Nothing Then
Return Search(OpenInvSrchMgr.CurrentView, val,
OpenInvSrchMgr.CurrentColumnNum)
End If
End Select
'Throw New ArgumentException("You must select a view before you can
seek.")
End Function

I commented out the "Throw" statement to make the Seek function look
identical to the GetView function. But the IDE only complains about the
GetView function.
Any Ideas?
Terry
Aug 13 '07 #1
13 1124
Hi Terry,

In your GetView function, if table doesn't match one of the three cases you
have, then the return will be null. Your return is a reference type, which
can be null.

In your Seek function, if table doesn't match one of the three cases you
have, then the return will be zero because it is an Integer. Your return is
a value type in this case.

J

"Terry" <Te****@nospam.nospamwrote in message
news:07**********************************@microsof t.com...
>I know that this is just a warning message, but I wonder why the IDE flags
the first function with a warning, but not the second one. The warning
message is :
Function 'GetView' doesn't return a value on all code paths. A null
reference exception could occur at run time when the result is used.
Here is the code:
__________________________________________________ ____________________
Public Class SearchMgr
Public Enum SearchMgrTables
Subscriptions
Contacts
Invoices
End Enum
.
.
.
Public Function GetView(ByVal table As SearchMgrTables, ByVal colname
As
String) As DataView
Select Case table
Case SearchMgrTables.Subscriptions
If SubSrchMgr Is Nothing Then
SubSrchMgr = New SubSearchViewMgr
End If
Return SubSrchMgr.GetView(colname)
Case SearchMgrTables.Contacts
If ContactSrchMgr Is Nothing Then
ContactSrchMgr = New ContactSearchViewMgr
End If
Return ContactSrchMgr.GetView(colname)
Case SearchMgrTables.Invoices
If OpenInvSrchMgr Is Nothing Then
OpenInvSrchMgr = New OpenInvSearchViewMgr
End If
Return OpenInvSrchMgr.GetView(colname)
End Select
End Function

Public Function Seek(ByVal table As SearchMgrTables, ByVal val As
String) As Integer
Select Case table
Case SearchMgrTables.Subscriptions
If SubSrchMgr IsNot Nothing Then
Return Search(SubSrchMgr.CurrentView, val,
SubSrchMgr.CurrentColumnNum)
End If
Case SearchMgrTables.Contacts
If ContactSrchMgr IsNot Nothing Then
Return Search(ContactSrchMgr.CurrentView, val,
ContactSrchMgr.CurrentColumnNum)
End If
Case SearchMgrTables.Invoices
If OpenInvSrchMgr IsNot Nothing Then
Return Search(OpenInvSrchMgr.CurrentView, val,
OpenInvSrchMgr.CurrentColumnNum)
End If
End Select
'Throw New ArgumentException("You must select a view before you can
seek.")
End Function

I commented out the "Throw" statement to make the Seek function look
identical to the GetView function. But the IDE only complains about the
GetView function.
Any Ideas?
Terry

Aug 13 '07 #2
Hi John,
Ok, I get it. Too bad its not smart enough to figure out that the select
case was exhaustive.
--
Terry
"John" wrote:
Hi Terry,

In your GetView function, if table doesn't match one of the three cases you
have, then the return will be null. Your return is a reference type, which
can be null.

In your Seek function, if table doesn't match one of the three cases you
have, then the return will be zero because it is an Integer. Your return is
a value type in this case.

J

"Terry" <Te****@nospam.nospamwrote in message
news:07**********************************@microsof t.com...
I know that this is just a warning message, but I wonder why the IDE flags
the first function with a warning, but not the second one. The warning
message is :
Function 'GetView' doesn't return a value on all code paths. A null
reference exception could occur at run time when the result is used.
Here is the code:
__________________________________________________ ____________________
Public Class SearchMgr
Public Enum SearchMgrTables
Subscriptions
Contacts
Invoices
End Enum
.
.
.
Public Function GetView(ByVal table As SearchMgrTables, ByVal colname
As
String) As DataView
Select Case table
Case SearchMgrTables.Subscriptions
If SubSrchMgr Is Nothing Then
SubSrchMgr = New SubSearchViewMgr
End If
Return SubSrchMgr.GetView(colname)
Case SearchMgrTables.Contacts
If ContactSrchMgr Is Nothing Then
ContactSrchMgr = New ContactSearchViewMgr
End If
Return ContactSrchMgr.GetView(colname)
Case SearchMgrTables.Invoices
If OpenInvSrchMgr Is Nothing Then
OpenInvSrchMgr = New OpenInvSearchViewMgr
End If
Return OpenInvSrchMgr.GetView(colname)
End Select
End Function

Public Function Seek(ByVal table As SearchMgrTables, ByVal val As
String) As Integer
Select Case table
Case SearchMgrTables.Subscriptions
If SubSrchMgr IsNot Nothing Then
Return Search(SubSrchMgr.CurrentView, val,
SubSrchMgr.CurrentColumnNum)
End If
Case SearchMgrTables.Contacts
If ContactSrchMgr IsNot Nothing Then
Return Search(ContactSrchMgr.CurrentView, val,
ContactSrchMgr.CurrentColumnNum)
End If
Case SearchMgrTables.Invoices
If OpenInvSrchMgr IsNot Nothing Then
Return Search(OpenInvSrchMgr.CurrentView, val,
OpenInvSrchMgr.CurrentColumnNum)
End If
End Select
'Throw New ArgumentException("You must select a view before you can
seek.")
End Function

I commented out the "Throw" statement to make the Seek function look
identical to the GetView function. But the IDE only complains about the
GetView function.
Any Ideas?
Terry


Aug 13 '07 #3
Terry,

As your case methode does not fulfil any statement in the case, you are not
returning something.
A return after the case select will probably solve this.

Cor

"Terry" <Te****@nospam.nospamschreef in bericht
news:07**********************************@microsof t.com...
>I know that this is just a warning message, but I wonder why the IDE flags
the first function with a warning, but not the second one. The warning
message is :
Function 'GetView' doesn't return a value on all code paths. A null
reference exception could occur at run time when the result is used.
Here is the code:
__________________________________________________ ____________________
Public Class SearchMgr
Public Enum SearchMgrTables
Subscriptions
Contacts
Invoices
End Enum
.
.
.
Public Function GetView(ByVal table As SearchMgrTables, ByVal colname
As
String) As DataView
Select Case table
Case SearchMgrTables.Subscriptions
If SubSrchMgr Is Nothing Then
SubSrchMgr = New SubSearchViewMgr
End If
Return SubSrchMgr.GetView(colname)
Case SearchMgrTables.Contacts
If ContactSrchMgr Is Nothing Then
ContactSrchMgr = New ContactSearchViewMgr
End If
Return ContactSrchMgr.GetView(colname)
Case SearchMgrTables.Invoices
If OpenInvSrchMgr Is Nothing Then
OpenInvSrchMgr = New OpenInvSearchViewMgr
End If
Return OpenInvSrchMgr.GetView(colname)
End Select
End Function

Public Function Seek(ByVal table As SearchMgrTables, ByVal val As
String) As Integer
Select Case table
Case SearchMgrTables.Subscriptions
If SubSrchMgr IsNot Nothing Then
Return Search(SubSrchMgr.CurrentView, val,
SubSrchMgr.CurrentColumnNum)
End If
Case SearchMgrTables.Contacts
If ContactSrchMgr IsNot Nothing Then
Return Search(ContactSrchMgr.CurrentView, val,
ContactSrchMgr.CurrentColumnNum)
End If
Case SearchMgrTables.Invoices
If OpenInvSrchMgr IsNot Nothing Then
Return Search(OpenInvSrchMgr.CurrentView, val,
OpenInvSrchMgr.CurrentColumnNum)
End If
End Select
'Throw New ArgumentException("You must select a view before you can
seek.")
End Function

I commented out the "Throw" statement to make the Seek function look
identical to the GetView function. But the IDE only complains about the
GetView function.
Any Ideas?
Terry
Aug 13 '07 #4
Hi Core,
Not sure what you mean by 'does not fulfil any statement in the case'.
There are only 3 possibilities for the 'table' enumerated type and all 3 are
covered by the select statement. There is no other possibility.
--
Terry
"Cor Ligthert[MVP]" wrote:
Terry,

As your case methode does not fulfil any statement in the case, you are not
returning something.
A return after the case select will probably solve this.

Cor

"Terry" <Te****@nospam.nospamschreef in bericht
news:07**********************************@microsof t.com...
I know that this is just a warning message, but I wonder why the IDE flags
the first function with a warning, but not the second one. The warning
message is :
Function 'GetView' doesn't return a value on all code paths. A null
reference exception could occur at run time when the result is used.
Here is the code:
__________________________________________________ ____________________
Public Class SearchMgr
Public Enum SearchMgrTables
Subscriptions
Contacts
Invoices
End Enum
.
.
.
Public Function GetView(ByVal table As SearchMgrTables, ByVal colname
As
String) As DataView
Select Case table
Case SearchMgrTables.Subscriptions
If SubSrchMgr Is Nothing Then
SubSrchMgr = New SubSearchViewMgr
End If
Return SubSrchMgr.GetView(colname)
Case SearchMgrTables.Contacts
If ContactSrchMgr Is Nothing Then
ContactSrchMgr = New ContactSearchViewMgr
End If
Return ContactSrchMgr.GetView(colname)
Case SearchMgrTables.Invoices
If OpenInvSrchMgr Is Nothing Then
OpenInvSrchMgr = New OpenInvSearchViewMgr
End If
Return OpenInvSrchMgr.GetView(colname)
End Select
End Function

Public Function Seek(ByVal table As SearchMgrTables, ByVal val As
String) As Integer
Select Case table
Case SearchMgrTables.Subscriptions
If SubSrchMgr IsNot Nothing Then
Return Search(SubSrchMgr.CurrentView, val,
SubSrchMgr.CurrentColumnNum)
End If
Case SearchMgrTables.Contacts
If ContactSrchMgr IsNot Nothing Then
Return Search(ContactSrchMgr.CurrentView, val,
ContactSrchMgr.CurrentColumnNum)
End If
Case SearchMgrTables.Invoices
If OpenInvSrchMgr IsNot Nothing Then
Return Search(OpenInvSrchMgr.CurrentView, val,
OpenInvSrchMgr.CurrentColumnNum)
End If
End Select
'Throw New ArgumentException("You must select a view before you can
seek.")
End Function

I commented out the "Throw" statement to make the Seek function look
identical to the GetView function. But the IDE only complains about the
GetView function.
Any Ideas?
Terry

Aug 13 '07 #5
For you, however for the program logic there is a fourth.

Cor

"Terry" <Te****@nospam.nospamschreef in bericht
news:BA**********************************@microsof t.com...
Hi Core,
Not sure what you mean by 'does not fulfil any statement in the case'.
There are only 3 possibilities for the 'table' enumerated type and all 3
are
covered by the select statement. There is no other possibility.
--
Terry
"Cor Ligthert[MVP]" wrote:
>Terry,

As your case methode does not fulfil any statement in the case, you are
not
returning something.
A return after the case select will probably solve this.

Cor

"Terry" <Te****@nospam.nospamschreef in bericht
news:07**********************************@microso ft.com...
>I know that this is just a warning message, but I wonder why the IDE
flags
the first function with a warning, but not the second one. The warning
message is :
Function 'GetView' doesn't return a value on all code paths. A null
reference exception could occur at run time when the result is used.
Here is the code:
__________________________________________________ ____________________
Public Class SearchMgr
Public Enum SearchMgrTables
Subscriptions
Contacts
Invoices
End Enum
.
.
.
Public Function GetView(ByVal table As SearchMgrTables, ByVal
colname
As
String) As DataView
Select Case table
Case SearchMgrTables.Subscriptions
If SubSrchMgr Is Nothing Then
SubSrchMgr = New SubSearchViewMgr
End If
Return SubSrchMgr.GetView(colname)
Case SearchMgrTables.Contacts
If ContactSrchMgr Is Nothing Then
ContactSrchMgr = New ContactSearchViewMgr
End If
Return ContactSrchMgr.GetView(colname)
Case SearchMgrTables.Invoices
If OpenInvSrchMgr Is Nothing Then
OpenInvSrchMgr = New OpenInvSearchViewMgr
End If
Return OpenInvSrchMgr.GetView(colname)
End Select
End Function

Public Function Seek(ByVal table As SearchMgrTables, ByVal val As
String) As Integer
Select Case table
Case SearchMgrTables.Subscriptions
If SubSrchMgr IsNot Nothing Then
Return Search(SubSrchMgr.CurrentView, val,
SubSrchMgr.CurrentColumnNum)
End If
Case SearchMgrTables.Contacts
If ContactSrchMgr IsNot Nothing Then
Return Search(ContactSrchMgr.CurrentView, val,
ContactSrchMgr.CurrentColumnNum)
End If
Case SearchMgrTables.Invoices
If OpenInvSrchMgr IsNot Nothing Then
Return Search(OpenInvSrchMgr.CurrentView, val,
OpenInvSrchMgr.CurrentColumnNum)
End If
End Select
'Throw New ArgumentException("You must select a view before you
can
seek.")
End Function

I commented out the "Throw" statement to make the Seek function look
identical to the GetView function. But the IDE only complains about
the
GetView function.
Any Ideas?
Terry

Aug 13 '07 #6
Terry wrote:
Hi John,
Ok, I get it. Too bad its not smart enough to figure out that the select
case was exhaustive.
In fact it's not exhaustive. It's possible for an enum to have other
values that the ones that you specified.

You have covered three of the possible values, there are still
4294967293 left to handle before it's exhaustive...

--
Göran Andersson
_____
http://www.guffa.com
Aug 13 '07 #7
Well, since I operate with option strict on, I trhink all cases are covered
unless there is something else I am missing.
--
Terry
"Cor Ligthert[MVP]" wrote:
For you, however for the program logic there is a fourth.

Cor

"Terry" <Te****@nospam.nospamschreef in bericht
news:BA**********************************@microsof t.com...
Hi Core,
Not sure what you mean by 'does not fulfil any statement in the case'.
There are only 3 possibilities for the 'table' enumerated type and all 3
are
covered by the select statement. There is no other possibility.
--
Terry
"Cor Ligthert[MVP]" wrote:
Terry,

As your case methode does not fulfil any statement in the case, you are
not
returning something.
A return after the case select will probably solve this.

Cor

"Terry" <Te****@nospam.nospamschreef in bericht
news:07**********************************@microsof t.com...
I know that this is just a warning message, but I wonder why the IDE
flags
the first function with a warning, but not the second one. The warning
message is :
Function 'GetView' doesn't return a value on all code paths. A null
reference exception could occur at run time when the result is used.
Here is the code:
__________________________________________________ ____________________
Public Class SearchMgr
Public Enum SearchMgrTables
Subscriptions
Contacts
Invoices
End Enum
.
.
.
Public Function GetView(ByVal table As SearchMgrTables, ByVal
colname
As
String) As DataView
Select Case table
Case SearchMgrTables.Subscriptions
If SubSrchMgr Is Nothing Then
SubSrchMgr = New SubSearchViewMgr
End If
Return SubSrchMgr.GetView(colname)
Case SearchMgrTables.Contacts
If ContactSrchMgr Is Nothing Then
ContactSrchMgr = New ContactSearchViewMgr
End If
Return ContactSrchMgr.GetView(colname)
Case SearchMgrTables.Invoices
If OpenInvSrchMgr Is Nothing Then
OpenInvSrchMgr = New OpenInvSearchViewMgr
End If
Return OpenInvSrchMgr.GetView(colname)
End Select
End Function

Public Function Seek(ByVal table As SearchMgrTables, ByVal val As
String) As Integer
Select Case table
Case SearchMgrTables.Subscriptions
If SubSrchMgr IsNot Nothing Then
Return Search(SubSrchMgr.CurrentView, val,
SubSrchMgr.CurrentColumnNum)
End If
Case SearchMgrTables.Contacts
If ContactSrchMgr IsNot Nothing Then
Return Search(ContactSrchMgr.CurrentView, val,
ContactSrchMgr.CurrentColumnNum)
End If
Case SearchMgrTables.Invoices
If OpenInvSrchMgr IsNot Nothing Then
Return Search(OpenInvSrchMgr.CurrentView, val,
OpenInvSrchMgr.CurrentColumnNum)
End If
End Select
'Throw New ArgumentException("You must select a view before you
can
seek.")
End Function

I commented out the "Throw" statement to make the Seek function look
identical to the GetView function. But the IDE only complains about
the
GetView function.
Any Ideas?
Terry


Aug 13 '07 #8
I do understand your point though. At first I thought I would have to return
something and wasn't quit sure what that should be. But as it turns out, it
is happy with simply adding...
Throw New ArgumentException("Invalid table requested.")
before the end function.
--
Terry
"Cor Ligthert[MVP]" wrote:
For you, however for the program logic there is a fourth.

Cor

"Terry" <Te****@nospam.nospamschreef in bericht
news:BA**********************************@microsof t.com...
Hi Core,
Not sure what you mean by 'does not fulfil any statement in the case'.
There are only 3 possibilities for the 'table' enumerated type and all 3
are
covered by the select statement. There is no other possibility.
--
Terry
"Cor Ligthert[MVP]" wrote:
Terry,

As your case methode does not fulfil any statement in the case, you are
not
returning something.
A return after the case select will probably solve this.

Cor

"Terry" <Te****@nospam.nospamschreef in bericht
news:07**********************************@microsof t.com...
I know that this is just a warning message, but I wonder why the IDE
flags
the first function with a warning, but not the second one. The warning
message is :
Function 'GetView' doesn't return a value on all code paths. A null
reference exception could occur at run time when the result is used.
Here is the code:
__________________________________________________ ____________________
Public Class SearchMgr
Public Enum SearchMgrTables
Subscriptions
Contacts
Invoices
End Enum
.
.
.
Public Function GetView(ByVal table As SearchMgrTables, ByVal
colname
As
String) As DataView
Select Case table
Case SearchMgrTables.Subscriptions
If SubSrchMgr Is Nothing Then
SubSrchMgr = New SubSearchViewMgr
End If
Return SubSrchMgr.GetView(colname)
Case SearchMgrTables.Contacts
If ContactSrchMgr Is Nothing Then
ContactSrchMgr = New ContactSearchViewMgr
End If
Return ContactSrchMgr.GetView(colname)
Case SearchMgrTables.Invoices
If OpenInvSrchMgr Is Nothing Then
OpenInvSrchMgr = New OpenInvSearchViewMgr
End If
Return OpenInvSrchMgr.GetView(colname)
End Select
End Function

Public Function Seek(ByVal table As SearchMgrTables, ByVal val As
String) As Integer
Select Case table
Case SearchMgrTables.Subscriptions
If SubSrchMgr IsNot Nothing Then
Return Search(SubSrchMgr.CurrentView, val,
SubSrchMgr.CurrentColumnNum)
End If
Case SearchMgrTables.Contacts
If ContactSrchMgr IsNot Nothing Then
Return Search(ContactSrchMgr.CurrentView, val,
ContactSrchMgr.CurrentColumnNum)
End If
Case SearchMgrTables.Invoices
If OpenInvSrchMgr IsNot Nothing Then
Return Search(OpenInvSrchMgr.CurrentView, val,
OpenInvSrchMgr.CurrentColumnNum)
End If
End Select
'Throw New ArgumentException("You must select a view before you
can
seek.")
End Function

I commented out the "Throw" statement to make the Seek function look
identical to the GetView function. But the IDE only complains about
the
GetView function.
Any Ideas?
Terry


Aug 13 '07 #9
Hi Terry,

I think it would be more clear if you put the ArgumentException
under a Case Else instead of before the end function.

J

"Terry" <Te****@nospam.nospamwrote in message
news:24**********************************@microsof t.com...
>I do understand your point though. At first I thought I would have to
return
something and wasn't quit sure what that should be. But as it turns out,
it
is happy with simply adding...
Throw New ArgumentException("Invalid table requested.")
before the end function.
--
Terry

Aug 13 '07 #10
Thanks John - I will follow your advice.
--
Terry
"John" wrote:
Hi Terry,

I think it would be more clear if you put the ArgumentException
under a Case Else instead of before the end function.

J

"Terry" <Te****@nospam.nospamwrote in message
news:24**********************************@microsof t.com...
I do understand your point though. At first I thought I would have to
return
something and wasn't quit sure what that should be. But as it turns out,
it
is happy with simply adding...
Throw New ArgumentException("Invalid table requested.")
before the end function.
--
Terry


Aug 13 '07 #11
Thanks John - I will follow your advice.
>
"John" wrote:
>Hi Terry,

I think it would be more clear if you put the ArgumentException under
a Case Else instead of before the end function.
Another great reason (besides clarity) for always coding an else clause,
is than you cannot typically predict when the enum might be adjusted (by
you or someone else on your team) to have new items which will of course
not be catered to by this and perhaps many other select case statements.

--
Rory
Aug 13 '07 #12
Good point - Thanks
--
Terry
"Rory Becker" wrote:
Thanks John - I will follow your advice.

"John" wrote:
Hi Terry,

I think it would be more clear if you put the ArgumentException under
a Case Else instead of before the end function.

Another great reason (besides clarity) for always coding an else clause,
is than you cannot typically predict when the enum might be adjusted (by
you or someone else on your team) to have new items which will of course
not be catered to by this and perhaps many other select case statements.

--
Rory
Aug 14 '07 #13
Rory Becker wrote:
>Thanks John - I will follow your advice.

"John" wrote:
>>Hi Terry,

I think it would be more clear if you put the ArgumentException under
a Case Else instead of before the end function.

Another great reason (besides clarity) for always coding an else clause,
is than you cannot typically predict when the enum might be adjusted (by
you or someone else on your team) to have new items which will of course
not be catered to by this and perhaps many other select case statements.

--
Rory
Also, anyone can easily create an enum value that is not defined in the
enum:

Dim x as SearchMgrTables
x = DirectCast(42, SearchMgrTables)

--
Göran Andersson
_____
http://www.guffa.com
Aug 15 '07 #14

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

Similar topics

2
by: Showjumper | last post by:
Whats the diff between the 2 and when do you use one and not the other?
2
by: Asha | last post by:
greetings, should i do this obj.dispose then obj = nothing both does the same thing right? whats the core difference?
3
by: Amir Shitrit | last post by:
Hi to all. Whats the difference between DynamicInvoke and Invoke methods of the Delegate class? Thanks in advance.
2
by: Ulrike Klusik | last post by:
Hello Folks, i've got two structural identical tables (including tablespace and indexes) with identical data, on which the access path of an SQL is differs. But I don't see a reason for the...
2
by: czi02 | last post by:
Hi there;; Im wondering whats the difference between vb to visual basic. net??? Does the program was different to visual basic than vb.net ???
4
by: Uday Bidkar | last post by:
I am trying to register my interface with IConnectionPoint of outlook reminders to capture some Outlook Reminder events and having some issues. Here goes the pseudo code int APIENTRY...
1
by: yogesh | last post by:
i have a code as follows TServerDB() { fDB = Server()->dbStorage->Create(); } or fDB=TServer->TMySQLBD->Create(); can any one tell the relationship between two and whats the <between...
7
by: Shafik | last post by:
Hello folks, I am an experienced programmer, but very new to python (2 days). I wanted to ask: what exactly is the difference between a tuple and a list? I'm sure there are some, but I can't...
7
by: Paulo | last post by:
Hi, what is diference between: File -New Web Site and File -New Project -VB/C# -Web Application ?????? VS 2005
2
by: czi02 | last post by:
Whats the difference between vb6.0 and a vb.net? Does the same language has an crystal report ? How can I make an crystal report?
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.