Data update
This commit is contained in:
parent
81fd053722
commit
52a6ef48dd
10248 changed files with 63654 additions and 6775 deletions
|
|
@ -1,14 +1,25 @@
|
|||
void local fn Variables
|
||||
dim a as long // dim var as type
|
||||
dim as long b // dim as type var
|
||||
long c // 'dim as' is optional
|
||||
long x, y, z // declarate multiple vars in one line
|
||||
CFStringRef s1 = @"Alpha", s2 = @"Bravo" // declare and assign in same statement
|
||||
CFArrayRef array = @[s1,s2] // declare and assign an array
|
||||
c = 123 // assign
|
||||
CGRect r = {20,20,120,32} // declare and assign record (struct)
|
||||
end fn
|
||||
dim a as long // dim var as type
|
||||
|
||||
fn Variables
|
||||
dim as long b // dim as type var
|
||||
|
||||
HandleEvents
|
||||
long c // 'dim as' is optional
|
||||
|
||||
c = 123 // assign
|
||||
long x, y, z // declarate multiple vars
|
||||
CFStringRef s1 = @"Alpha" // declare and assign in same statement
|
||||
CFArrayRef array = @[s1,s2] // declare and assign a CFArray
|
||||
CFDictionaryRef dict = @{@"key1":@"value1",@"key2":@"value2"} // declare and assign a CFDictionary
|
||||
|
||||
CFDictionaryRef d = @{ // assignment of CFDictionaries
|
||||
@"color":fn ColorRed, // and CFArrays can be broken
|
||||
@"size":@(12), // into multiple lines
|
||||
@"sound":@"frog"}
|
||||
|
||||
CGPoint pt = {100,200} // declare and assign record (struct)
|
||||
|
||||
MKMapRect rMap = {{123,456},{200,300}} // declare and assign nested records
|
||||
|
||||
CGRect r = (10,20,30,40) // convenience for CGRect - omit inner curly braces
|
||||
|
||||
long b(5) // declare c-type array
|
||||
long c(3) = {1,2,3,4} // declare and assign c-type array
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue