473,574 Members | 2,230 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to span function call params across multiple lines?

How do I do this in VB.NET?

---------------------------------------------------

SomeSubOrFuncCa ll("param 1",
"param 2",
"param 3")

---------------------------------------------------

Right now, this is a syntax error. I thought by adding backslashes at
the ends of the lines it would work, but alas it does not.

Thanks :-)
Sean

Feb 19 '07 #1
14 4806
On Feb 19, 3:59 pm, sean.gilbert... @gmail.com wrote:
How do I do this in VB.NET?

---------------------------------------------------

SomeSubOrFuncCa ll("param 1",
"param 2",
"param 3")

---------------------------------------------------

Right now, this is a syntax error. I thought by adding backslashes at
the ends of the lines it would work, but alas it does not.

Thanks :-)
Sean
SomeSubOrFuncCa ll("param 1", _
"param 2", _
"param 3")
Feb 19 '07 #2
se************* @gmail.com wrote in news:1171922389 .523507.309510
@j27g2000cwj.go oglegroups.com:
SomeSubOrFuncCa ll("param 1", _
"param 2", _
"param 3")

Use the underscore/

Feb 19 '07 #3
<se************ *@gmail.comschr ieb
How do I do this in VB.NET?

---------------------------------------------------

SomeSubOrFuncCa ll("param 1",
"param 2",
"param 3")

---------------------------------------------------

Right now, this is a syntax error. I thought by adding backslashes
at the ends of the lines it would work, but alas it does not.

SomeSubOrFuncCa ll("param 1", _
"param 2", _
"param 3")
Armin
Feb 19 '07 #4
In addition to what others have posted, I found that you need a space before
the underscore for it to work.

HTH

Martin

<se************ *@gmail.comwrot e in message
news:11******** **************@ j27g2000cwj.goo glegroups.com.. .
How do I do this in VB.NET?

---------------------------------------------------

SomeSubOrFuncCa ll("param 1",
"param 2",
"param 3")

---------------------------------------------------

Right now, this is a syntax error. I thought by adding backslashes at
the ends of the lines it would work, but alas it does not.

Thanks :-)
Sean

Feb 19 '07 #5
On Feb 19, 3:59 pm, sean.gilbert... @gmail.com wrote:
How do I do this in VB.NET?

---------------------------------------------------

SomeSubOrFuncCa ll("param 1",
"param 2",
"param 3")

---------------------------------------------------

Right now, this is a syntax error. I thought by adding backslashes at
the ends of the lines it would work, but alas it does not.

Thanks :-)
Sean
Thanks everyone!! You SET ME STRAIGHT.

Take care!
Sean

Feb 19 '07 #6
<se************ *@gmail.comschr ieb:
How do I do this in VB.NET?

---------------------------------------------------

SomeSubOrFuncCa ll("param 1",
"param 2",
"param 3")

---------------------------------------------------

Right now, this is a syntax error. I thought by adding backslashes at
the ends of the lines it would work, but alas it does not.
Use space-underscore at the end of the line:

\\\
SomeSubOrFuncCa ll( _
"param 1", _
"param 2", _
"param 3" _
)
///

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Feb 20 '07 #7
Herfried,

I know that you like it in Austria the real ones and this is even a 5times
one, however please set it off.

Cor

"Herfried K. Wagner [MVP]" <hi************ ***@gmx.atschre ef in bericht
news:uu******** *****@TK2MSFTNG P05.phx.gbl...
<se************ *@gmail.comschr ieb:
>How do I do this in VB.NET?

---------------------------------------------------

SomeSubOrFuncC all("param 1",
"param 2",
"param 3")

---------------------------------------------------

Right now, this is a syntax error. I thought by adding backslashes at
the ends of the lines it would work, but alas it does not.

Use space-underscore at the end of the line:

\\\
SomeSubOrFuncCa ll( _
"param 1", _
"param 2", _
"param 3" _
)
///

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Feb 20 '07 #8
"Cor Ligthert [MVP]" <no************ @planet.nlschri eb:
I know that you like it in Austria the real ones and this is even a 5times
one, however please set it off.
I wanted to show my preferred /style/ of formatting longer procedure calls.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Feb 20 '07 #9
OK,

Discussion :-)

What is in your opinion the advantage from that?

Cor

"Herfried K. Wagner [MVP]" <hi************ ***@gmx.atschre ef in bericht
news:u0******** *****@TK2MSFTNG P04.phx.gbl...
"Cor Ligthert [MVP]" <no************ @planet.nlschri eb:
>I know that you like it in Austria the real ones and this is even a
5times one, however please set it off.

I wanted to show my preferred /style/ of formatting longer procedure
calls.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Feb 20 '07 #10

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

Similar topics

7
2910
by: Stephen Boulet | last post by:
I've run across code like "myfunction(x, *someargs, **someotherargs)", but haven't seen documentation for this. Can someone fill me in on what the leading * and ** do? Thanks. Stephen
3
1660
by: Bryan Parkoff | last post by:
Do C/C++ Compiler allow function to contain more than 8 parameters? I checked MS Visual C++ 6.0 that it can only limit 8 parameters, but most C/C++ Compiler can limit maximum 256 parameters. Can you please verify for me? Usually, I write function that is about 100 lines. I would need 20 parameters which they are all reference to global...
6
2824
by: hsomob1999 | last post by:
so i have a <ul> and I allow the user to append items to it. The problem is that on mozilla the <span class="line"> which is just a line to divide the sections gets overlaped and doesnt move down and adjust to the newly added items like it does in iE. It just occured to me that i dont really have to use a span, and a html <hr> tag could do...
1
1869
by: dan.roffman | last post by:
Is there a way to span a report over multiple pages. I think you could do something like count the number of lines and if it exceeds a certain number, then put the rest of th text into another RTF control. I just don't know how to code that... Any help appreciated. D
2
15117
by: Tobias Olbort | last post by:
Hello, i've a outer function, which takes a params-array as a parameter. I want to pass this array to inner function with a params-array (e. g. string.format). When i've passed an integer to the outer function, the string.format sets the string-value "System.Object" at the position of {0}. How can i get it work, so that all my values,...
4
2744
by: Michael Yanowitz | last post by:
I am still new to Python but have used it for the last 2+ months. One thing I'm still not used to is that functions parameters can't change as expected. For example in C, I can have status = get_network_info (strIpAddress, &strHostname, &nPortNumber) where this fictitious function returns a status, but also returns modified values for a...
7
1931
by: sfeher | last post by:
Hi All, Is there a way to preserve the arguments across functions? I have: <script> function myFirstFunction() { // arguments = 'param1'
4
2371
by: simon | last post by:
hi, I would like to separate my javascript completely from my xhtml. in the end there should be only <script type="text/javascript" src="javalib.js"></script> in the head-tag to my javascript. Because I want to use some ajax-requests and other javascript-functions on my xhtml, I need to dynamically add event handlers to any possible...
7
15637
by: =?Utf-8?B?TG9zdEluTUQ=?= | last post by:
Hi All :) I'm converting VB6 using True DBGrid Pro 8.0 to VB2005 using DataGridView. True DBGrid has a MultipleLines property that controls whether individual records span multiple lines. Is there an equivalent property for the DataGridView? I have searched, but have not found one. I would like the user to be able to see all the columns...
0
7803
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7720
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8044
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7810
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6451
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5618
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3739
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1337
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1056
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.