Category:FutureBasic: Difference between revisions

Line 26:
Here is a sample program:
<pre>
void local fn DoDialog( ev as long ) if ( ev == _btnClick ) then beep
include "ConsoleWindow"
 
local fn PrintSomething( str as Str255 )
print str
end fn
window 1, @"Hello, world!", (0,0,550,400)
 
button 1,,, @"Beep"
fn PrintSomething( "Hello, World!" )
on dialog fn DoDialog
HandleEvents
</pre>
 
416

edits