Bug? B4A v5.00 Block Commenting Works Differently ... ?

Derek Johnson

Active Member
Licensed User
Longtime User
We might as well just 'Like' the post that recommends the solution that we want. That was you can see the number of votes in favour of the each method.

I too prefer the Old method, having to think any more is an overhead I can do without :)
 

jmon

Well-Known Member
Licensed User
Longtime User
I found that in most cases, the parts of code that I want to block-comment always start with a comment (i.e a complete sub with comment s before the sub). But now I understand the new system, so I should block comment from the line after the comment.

I also preferred the old method, but maybe because I didn't know how the new one works.

I guess the way we should comment lines now would be at the end of each line.
B4X:
for i = 1 to 10 'looping.
    log(i) 'logging.
next
 

Gunther

Active Member
Licensed User
Longtime User
Hi jmon,

You got it wrong. No need to put the comment at the end of the line. ;o)

See here an example: Problem Comment/Uncomment Button
But unfortunately you are right, by starting the marker in the line below the comment line.

Greetings, Gunther
 
Last edited:

AlpVir

Well-Known Member
Licensed User
Longtime User
With the old method I could easily write
B4X:
' '   Dim VR As VoiceRecognition
' '   Dim TTS1 As TTS         'TTS
' '   Dim DataAppWew          As String


to give a different meaning to the mnemonic lines with a single apostrophe than those with two apostrophes.
With the new method this is impossible.

Also remove the comment to something

B4X:
'    Dim VR                     As VoiceRecognition
    FileXML="aaaa.xml"
'    Dim DataAppWew          As String
    dbOrario="alfa"
'   dim K                    as string   
'   dim PanelLabel            as label


It is much more laborious.
 

qsrtech

Active Member
Licensed User
Longtime User
The next version (after 5.01) will include the beloved uncomment / comment buttons.
There's plenty of room on the toolbar so you're welcome to keep both techniques so all users are satisfied
 

Andris

Active Member
Licensed User
Longtime User
The next version (after 5.01) will include the beloved uncomment / comment buttons.

Thanks Erel! And now will come the anti-2-button people ... :D
Thanks for putting up with all of us. Your products are totally amazing!
 
Last edited:
Top