473,383 Members | 1,892 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,383 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 1193
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...
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...
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
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: 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
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...

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.