Content deleted Content added
Surv1v4l1st (talk | contribs) |
m Task 70: Update syntaxhighlight tags - remove use of deprecated <source> tags |
||
Line 116:
Complex Types may also be represent as literal values:
* Array: <
* [[CodeBlock]]: <
* Hash: <
Hashes may use ''any'' type including other Hashes as the ''Key'' for any element. Hashes and Arrays may contain ''any'' type as the ''Value'' of any member, including nesting arrays, and Hashes.
Line 251:
An example procedure definition and a function call follows:
<
x := Cube( 2 )
FUNCTION Cube( n )
RETURN n ** 3
</syntaxhighlight>
===Sample code===
The typical "[[hello world]]" program would be:
<
? "Hello, world!"
</syntaxhighlight>
Or:
<
QOut( "Hello, world!" )
</syntaxhighlight>
Or:
<
Alert( "Hello, world!" )
</syntaxhighlight>
Or, enclosed in an explicit procedure:
<
PROCEDURE Main()
Line 279:
RETURN
</syntaxhighlight>
====OOP examples====
Main procedure:
<
#include "hbclass.ch"
Line 299:
RETURN
</syntaxhighlight>
Class definition:
<
CREATE CLASS Person
Line 340:
RETURN cDescription
</syntaxhighlight>
==Tools==
|