How to add comment inside invoke code

how to add comment/annotation/some text inside invoke code

Hi @gsunilusa

Please try single quotes ’ if you are using vb

'this is a single line comment

β€™β€˜β€™β€˜β€™β€˜β€™β€˜β€™β€˜β€™
This is a multiple line comment
β€™β€˜β€™β€˜β€™β€˜β€™β€˜β€™β€˜β€™β€˜β€™

And /double Slash of you are using c#

// This is a single line comment

/* This is multiple line
comment
*/

Thanks

2 Likes

thank you prasath.
it worked.

1 Like

prasath
the single line comment worked but not for multiline
when i used ’’’’’’’’’’’’’ and wrote code in between for VB

this is my code but still executing. could you pls suggest?
’’’’’’’’’’’
If filtered_iop_row.count = 0 Then
console.WriteLine( row(β€œItem Code”).ToString)
End If
’’’’’’’’’’’’’

@gsunilusa this is strange,i think that’s how it will work on visual studio or VBA editor, think it is not supported in invoke code, then we have to add a single quote for every line we have to comment.

'If filtered_iop_row.count = 0 Then
'console.WriteLine( row(β€œItem Code”).ToString)
'End If

Thanks

hm ok.
if it works in VB it should work here as well i guess
and single quote is working but not multiline. if we have to comment big chunk of code temporarily then commenting each line is tedious.
let me know if you find an answer later to multiline comment in VB/studio.

Than you.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.