B4J Question How to add "copy" to library method comments

ThRuST

Well-Known Member
Licensed User
Longtime User
Hi! I am about to publish a new library and I want to add "copy" when viewing the method comments.
How can this be done?
 

agraham

Expert
Licensed User
Longtime User
You could always look inside an existing b4xlib and see the comments there. However I'll save you the trouble. Use <code> tags like GetPage from B4XPages.
B4X:
'Returns the page instance. You should cast it to the correct type.
'Example:<code>
'Dim page2 As B4XPage2 = B4XPages.GetPage("Page2")</code>
Public Sub GetPage (Id As String) As Object
    Return GetManager.GetPage(Id)
End Sub
 
Upvote 1

LucaMs

Expert
Licensed User
Longtime User
Just to make sure it's clear, you can also write it as follows (it's neater and more readable):
B4X:
'Returns the page instance. You should cast it to the correct type.
'Example:
'<code>
'Dim page2 As B4XPage2 = B4XPages.GetPage("Page2")
'</code>
Public Sub GetPage (Id As String) As Object
    Return GetManager.GetPage(Id)
End Sub
 
Upvote 0

Similar Threads

Top