Comment Property

From Lianjapedia
Jump to: navigation, search

Comment associated with an object. Read/write.

cComment = ob.comment
ob.comment = cComment

cComment

String storing additional information about the object.

Example

//
// Lianja custom section for page "page1" section "section1"
//
namespace custom1
public textbox1
define class page1_section1 as section
enddefine
 
 
define class comment_button as CommandButton
	proc click
		messagebox(textbox1.comment,0,"Comment")
	endproc
enddefine
 
proc page1_section1 
	page1_section1 = createobject("page1_section1")
 
	page1_section1.addobject("commentbutton","comment_button")
	commentbutton.caption = "Query Comment"	
 
	page1_section1.addobject("textbox1", "Textbox")
	textbox1.value = "Textbox"
	textbox1.comment = "This is a comment, which stores extra information about the object."
return page1_section1