Advertisement
6_2008-2009 Coding Standards #209807

Default functions and properties

Make a function or a property the default function or property for that object.

AI

สรุปโดย AI: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

ซอร์สโค้ด
original-source
<p>It's easy to set specific procedures as default. For instance, if you have a custom collection object and you wish to make the "Item" procedure the default procedure so that "Item" does not have to be referenced (e.g. "MyCollection(key)" rather than "MyCollection.Item(key)"), it can be done. It's really very simple!</p>
<p>To make a function or a property the default function or property for that object, simply open up the object browser, locate the procedure by name, right-click on the procedure name, choose "Properties", expand the "Advanced >>" settings, and rename the Procedure ID to "(Default)".</p>
<p>See the screenshot for a demonstration.</p>
ความคิดเห็นดั้งเดิม (3)
กู้คืนจาก Wayback Machine