473,395 Members | 2,713 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,395 software developers and data experts.

VB & OOP Question

SqlParameter is a class, consider the following statements:

1>
Dim Q1() as SqlParameter

2>
Dim Q2 as SqlParameter()

3>
Dim Q3() as SqlParameter()

- Q1 is an array of SqlParameter type.
- What is Q2?
- Is Q3 an array of what?

Thanks!
Jul 21 '05 #1
3 1194
Dim a() As String = New String() {"test"} 'array of strings
Dim b As String() = New String() {"test"} 'array of strings
Dim c() As String() = New String() {"test"} 'syntax error :-)

Array modifiers cannot be specified on both a variable and its type.
--
Greetz,
Jan
__________________________________
Read my weblog: http://weblogs.asp.net/jan
"Chan" <hi*****@yahoo.com> schreef in bericht
news:fe**************************@posting.google.c om...
SqlParameter is a class, consider the following statements:

1>
Dim Q1() as SqlParameter

2>
Dim Q2 as SqlParameter()

3>
Dim Q3() as SqlParameter()

- Q1 is an array of SqlParameter type.
- What is Q2?
- Is Q3 an array of what?

Thanks!

Jul 21 '05 #2
Good, thanks.

Additional question, still take SqlParameter(),

public function MyFun() as SqlParameter()

The returned object should be an array of SqlParameter objects, right?
Jul 21 '05 #3
That's right!

The parentheses of MyFunc are meant for parameters of that function.

--
Greetz,
Jan
__________________________________
Read my weblog: http://weblogs.asp.net/jan
"Chan" <hi*****@yahoo.com> schreef in bericht
news:fe**************************@posting.google.c om...
Good, thanks.

Additional question, still take SqlParameter(),

public function MyFun() as SqlParameter()

The returned object should be an array of SqlParameter objects, right?

Jul 21 '05 #4

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

Similar topics

1
by: ajm | last post by:
hi, a simple question perhaps...I am parsing an XML document with expat (1.95.x) which has content like: <element>text &amp; more text E</element> from which expat outputs something along the...
12
by: Sammy | last post by:
Hi, my mind is going crazy. I have tried everything I can think of to no avail. I have tried Disable Output Escaping. I tried to think of a way of enclosing the attribute data in a CDATA...
11
by: BoonHead, The Lost Philosopher | last post by:
I think the .NET framework is great! It's nice, clean and logical; in contradiction to the old Microsoft. It only saddens me that the new Microsoft still doesn't under stand there own...
27
by: Daniel Vallstrom | last post by:
I'm having problems with inconsistent floating point behavior resulting in e.g. assert( x > 0.0 && putchar('\n') && x == 0.0 ); holding. (Actually, my problem is the dual one where I get...
20
by: William | last post by:
Original question: "Give a one-line C expression to test whether a number is a power of 2. " Answer: if (x && !(x & (x-1)) == 0) My question: Why does this expression work?
11
by: Jeremy | last post by:
How can one stop a browser from converting &amp; to & ? We have a textarea in our system wehre a user can type in some html code and have it saved to the database. When the data is retireved...
6
by: cj | last post by:
I'm receiving an xml formatted string that I pull data from by reading it into an xml document like this: Dim doc As New Xml.XmlDocument doc.LoadXml(respstr) Dim co_name As Xml.XmlNodeList =...
14
by: Arne | last post by:
A lot of Firefox users I know, says they have problems with validation where the ampersand sign has to be written as &amp; to be valid. I don't have Firefox my self and don't wont to install it only...
0
by: Vijay | last post by:
Prep Courses for International Certifications, CSTE & CSQA & ISEB & ISTQB &Business Analyst & SOA Certifications in HYDERABAD. After receiving overwhelming response to our last 50+ batches, ...
3
by: Nathan Sokalski | last post by:
I am adding an onmouseover attribute using the Attributes.Add() method, and the String I am using for the value contains the & character. However, when rendered the & is converted to the HTML...
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:
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?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.