Difference between revisions of "Comment Property"
From Lianjapedia
(Created page with '{{Common Property}} Category:Properties Category:Common Properties') |
|||
Line 1: | Line 1: | ||
− | + | __NOTOC__ | |
+ | Comment associated with an object. Read/write. | ||
+ | |||
+ | <pre> | ||
+ | cComment = ob.comment | ||
+ | ob.comment = cComment | ||
+ | </pre> | ||
+ | |||
+ | ===cComment=== | ||
+ | String storing additional information about the object. | ||
+ | |||
+ | ==Example== | ||
+ | <code lang="recital"> | ||
+ | // | ||
+ | // 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 | ||
+ | </code> | ||
[[Category:Properties]] | [[Category:Properties]] | ||
[[Category:Common Properties]] | [[Category:Common Properties]] |
Latest revision as of 08:03, 27 September 2011
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