Here’s a script I use to comment on my methods.
function Name() as String
Return "Heading Comment"
End Function
Function CanEdit(selection As String) As Boolean
Return True
End Function
Function Edit(selection As String) As String
Dim Lines() As String
Lines.Add("//************************************************************************************************************\\")
Lines.Add("// Author : W Golding \\")
Lines.Add("// \\")
Lines.Add("// Date : \\")
Lines.Add("// \\")
Lines.Add("// Description : \\")
Lines.Add("// \\")
Lines.Add("//************************************************************************************************************\\")
Lines.Add("// Modification History \\")
Lines.Add("// \\")
Lines.Add("//************************************************************************************************************\\")
Lines.Add("")
Lines.Add("")
Var Result As String = String.FromArray(Lines, EndOfLine)
Return Result
End Function
You’d obviously change the Author name before use This results in a comment like
//************************************************************************************************************\\
// Author : W Golding \\
// \\
// Date : 8/4/22 \\
// \\
// Description : This method translates Database Column Types to JSON Safe Xojo Types in a Dictonary \\
// based on http://docs.xojo.com/Database.TableColumns from DatabaseRow \\
// DateTime columns are converted to SQLDateTime Strings \\
// Currency columns are converted to doubles \\
// \\
//************************************************************************************************************\\
// Modification History \\
// \\
//************************************************************************************************************\\
After it’s been updated.