How to call a Method in two lines?

mSYNC.mUpdateRegion mSYNC.strURLName, mSYNC.arrRegion(1,i) , mSYNC.arrRegion(2,i) , mSYNC.arrRegion(3,i) , _ + mSYNC.arrRegion(5,i)

I get an error on this line, because it’s not one line… How do I write such code with a line break!?

Try swapping the “+” and “_”. Or maybe there’s an unnecessary “+” in “mSYNC.arrRegion(3,i) , _ + mSYNC.arrRegion(5,i)” ?

Like:

mSYNC.mUpdateRegion mSYNC.strURLName, _ mSYNC.arrRegion(1,i) , _ mSYNC.arrRegion(2,i) , _ mSYNC.arrRegion(3,i) , _ mSYNC.arrRegion(5,i)

In other words, you can place a “_” at the end of a line and continue writing after a linebreak.

It should work with a space and an underscore when you’re calling a method.
Pseudo code:

  testMethod(1, 2, 3, 4, _
  5, 6)

Yes, there must be an underscore at the end of each line you are continuing.

[quote=162564:@Jakob Krabbe] mSYNC.mUpdateRegion mSYNC.strURLName, mSYNC.arrRegion(1,i) , mSYNC.arrRegion(2,i) , mSYNC.arrRegion(3,i) , _ + mSYNC.arrRegion(5,i)

I get an error on this line, because it’s not one line… How do I write such code with a line break!?[/quote]

Your last statement means nothing if you make it one line :

mSYNC.mUpdateRegion mSYNC.strURLName, mSYNC.arrRegion(1,i) , mSYNC.arrRegion(2,i) , _ mSYNC.arrRegion(3,i) , + mSYNC.arrRegion(5,i)

I have no idea what mSYNC.arrRegion(5,i) is, but why place a plus sign in front of it ? It probably works as

mSYNC.mUpdateRegion mSYNC.strURLName, mSYNC.arrRegion(1,i) , mSYNC.arrRegion(2,i) , mSYNC.arrRegion(3,i) , _ mSYNC.arrRegion(5,i)