Multiline support for arguments

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
va!n
Addict
Addict
Posts: 1104
Joined: Wed Apr 20, 2005 12:48 pm

Multiline support for arguments

Post by va!n »

I would like to have (maybe optional) the feature, to write commands with a lot of arguments in multiline, like in C/C++ for CreateWIndow_() as example.
A coma at the end of the line would define, there are more arguments next line, until the ")" is followed.
va!n aka Thorsten

Intel i7-980X Extreme Edition, 12 GB DDR3, Radeon 5870 2GB, Windows7 x64,
Fred
Administrator
Administrator
Posts: 16690
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: Multiline support for arguments

Post by Fred »

It already works like that.
va!n
Addict
Addict
Posts: 1104
Joined: Wed Apr 20, 2005 12:48 pm

Re: Multiline support for arguments

Post by va!n »

Great!! 8) Fred, thanks for having this nice feature!
va!n aka Thorsten

Intel i7-980X Extreme Edition, 12 GB DDR3, Radeon 5870 2GB, Windows7 x64,
Olli
Addict
Addict
Posts: 1071
Joined: Wed May 27, 2020 12:26 pm

Re: Multiline support for arguments

Post by Olli »

It would be cool to have an little example here. I do not remember if a special character is required at the end of each line which contained in a composed line...
BarryG
Addict
Addict
Posts: 3331
Joined: Thu Apr 18, 2019 8:17 am

Re: Multiline support for arguments

Post by BarryG »

Olli wrote:It would be cool to have an little example here. I do not remember if a special character is required at the end of each line which contained in a composed line...
It's in the manual under "General Syntax Rules" -> https://www.purebasic.com/documentation ... rules.html

Image
User avatar
Kiffi
Addict
Addict
Posts: 1362
Joined: Tue Mar 02, 2004 1:20 pm
Location: Amphibios 9

Re: Multiline support for arguments

Post by Kiffi »

Olli wrote:It would be cool to have an little example here.

Code: Select all

OpenWindow(0, 
           #PB_Ignore, 
           #PB_Ignore, 
           800, 
           600, 
           "", 
           #PB_Window_ScreenCentered | #PB_Window_SystemMenu | #PB_Window_SizeGadget)
Hygge
Olli
Addict
Addict
Posts: 1071
Joined: Wed May 27, 2020 12:26 pm

Re: Multiline support for arguments

Post by Olli »

Thank you for your 2 answers.
Post Reply