add comment to library

imgsimonebiliato

Well-Known Member
Licensed User
Longtime User
Hello,
how can I put a comment to a method in a b4a library?
Thanks :BangHead:
 

imgsimonebiliato

Well-Known Member
Licensed User
Longtime User
Comment are usually added when the library is created
example:

/**
* example comments here.
*/

Hi giga,
but this comment is in java. I want to comment a b4a library
 
Upvote 0

IanMc

Well-Known Member
Licensed User
Longtime User
When you make a Sub the comments that you put above it should appear in the intellisense

B4X:
'this is my comment about my super duper sub
'this sub should return the sum of two numbers
Sub ReturnAplusB(a as int, b as int) as int
  return a + b
end sub

Then when you call

ReturnAplusB(

it should show your comments in the intellisense and also show what you need to provide to get the sub to work.

Something like that anyway, does it work in compiled libs?
It's in Klaus's rather nicely written beginners guide I think.

Remember you can always use Ctrl Space to bring up the intellisense engine.
 
Upvote 0
Top