Is there such a thing as (statement continuation character) ?
Is there such a thing as (statement continuation character) ?
Hello & Thanks ,
Correct code:
StandardFile$ = GetGadgetText(pathFile) ; set initial file+path to display openfile ;keyword
No go code:
StandardFile$ =
GetGadgetText(pathFile) ; set initial file+path to display openfile ;keyword
This is as close as I could get:
StandardFile$ = "" +
GetGadgetText(pathFile) ; set initial file+path to display openfile ;keyword
Is there such a thing as (statement continuation character) ?
I would like to make all keyword statements to begin as 'first character' on a separate line .
It would make my documentation efforts eaasier .
Thanks for your on going help .
Correct code:
StandardFile$ = GetGadgetText(pathFile) ; set initial file+path to display openfile ;keyword
No go code:
StandardFile$ =
GetGadgetText(pathFile) ; set initial file+path to display openfile ;keyword
This is as close as I could get:
StandardFile$ = "" +
GetGadgetText(pathFile) ; set initial file+path to display openfile ;keyword
Is there such a thing as (statement continuation character) ?
I would like to make all keyword statements to begin as 'first character' on a separate line .
It would make my documentation efforts eaasier .
Thanks for your on going help .
vmars.us Win11 x64 , Martin Guitar 000-16 (1995)
"All things in moderation , except for love and forgiveness."
"All things in moderation , except for love and forgiveness."
Re: Is there such a thing as (statement continuation character) ?
No, there is no statement continuation character.
There is the possibility of line continuation in some select cases. Each of those cases is after the start of an expression or list of parameters.
Re: Is there such a thing as (statement continuation character) ?
Ok , got it , Thanks
vmars.us Win11 x64 , Martin Guitar 000-16 (1995)
"All things in moderation , except for love and forgiveness."
"All things in moderation , except for love and forgiveness."
Re: Is there such a thing as (statement continuation character) ?
That said, we could add the '=' as continuation character, it doesn't look like an issue to me.
Re: Is there such a thing as (statement continuation character) ?
An equal sign '=' at the end looks technically very strange.
I usually know the sign '_' as a continuation.
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
Re: Is there such a thing as (statement continuation character) ?
you can do it in C# and it doesn't look strange to me...
Re: Is there such a thing as (statement continuation character) ?
What about also adding an open paren '(' ?
Re: Is there such a thing as (statement continuation character) ?
I think it would be good to use the underscore like in other Basics (or the backslash like in other languages)
Re: Is there such a thing as (statement continuation character) ?
Underscore '_' and a space preceding it.
Re: Is there such a thing as (statement continuation character) ?
Only this works for me:
Thanks All
Code: Select all
StandardFile$ = "" +
GetGadgetText(pathFile) ;keyword
vmars.us Win11 x64 , Martin Guitar 000-16 (1995)
"All things in moderation , except for love and forgiveness."
"All things in moderation , except for love and forgiveness."
Re: Is there such a thing as (statement continuation character) ?
there are othersvmars316 wrote: ↑Wed Nov 30, 2022 5:36 pm Only this works for me:Thanks AllCode: Select all
StandardFile$ = "" + GetGadgetText(pathFile) ;keyword
General Syntax Rules
Line continuation
Long expressions can be split across several lines. A split line has to end with one of the following operators: plus (+), comma (,), or (|), And, Or, Xor.
Adding ' = ' to this is indeed simple
The rest requires testing (space or tab) before _ or \
Re: Is there such a thing as (statement continuation character) ?
This is a bad option, you are doing string concatenation programmatically. The options suggested above use string concatenation at compile time. It's the same as if you replaced all constants with variables.vmars316 wrote: ↑Wed Nov 30, 2022 5:36 pmCode: Select all
StandardFile$ = "" + GetGadgetText(pathFile) ;keyword
Re: Is there such a thing as (statement continuation character) ?
I used to find _ really ugly in VB but I suppose it does make it clear that a continuation was intentional and not a typo. I think that equal and left parenthesis would be useful though.
Re: Is there such a thing as (statement continuation character) ?
Yes , I like the = idea .
vmars.us Win11 x64 , Martin Guitar 000-16 (1995)
"All things in moderation , except for love and forgiveness."
"All things in moderation , except for love and forgiveness."
- netmaestro
- PureBasic Bullfrog
- Posts: 8433
- Joined: Wed Jul 06, 2005 5:42 am
- Location: Fort Nelson, BC, Canada
Re: Is there such a thing as (statement continuation character) ?
If we're voting I think an underscore preceded by a space is the most intuitive. But be careful of my opinion, I could be a bot.
BERESHEIT