topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Saturday December 14, 2024, 10:54 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: Your first Console program  (Read 4134 times)

Gerome

  • Charter Honorary Member
  • Joined in 2006
  • ***
  • Posts: 154
    • View Profile
    • Get my Freestyle Basic Script Language + compiler!
    • Donate to Member
Your first Console program
« on: August 13, 2006, 08:08 AM »
Hello,

This will be your first FBSL program.
FBSL is scripting like language that is able to run Console programs as well as Graphical ones...

Let's dive into our first Console program...
Here's the code :

Code: Text [Select]
  1. #AppType Console
  2. Color(14,0): Cls: Print "Hello World!"
  3. Print
  4. Print
  5. Print "                / `._     .       .      _.' \"
  6. Print "              '.@ = `.     \     /     .' = @.'"
  7. Print "               \ @`.@ `.    \   /    .' @.'@ / "
  8. Print "                \;`@`.@ `.   \ /   .' @.'@`;/  "
  9. Print "                 \`.@ `.@ `'.(*).'` @.' @.'/   "
  10. Print "                  \ '=._`. @ :=: @ .'_.=' /    "
  11. Print "                   \ @  '.'..'='..'.'  @ /     "
  12. Print "                    \_@_.==.: = :.==._@_/      "
  13. Print "                    /  @ @_.: = :._@ @  \      "
  14. Print "                   /@ _.-'  : = :  '-._ @\     "
  15. Print "                  /`'@ @ .-': = :'-.@ @`'`\    "
  16. Print "                  \.@_.=` .-: = :-. `=._@./    "
  17. Print "                    \._.-'   '.'   '-._./      "
  18. Print
  19. Print "... you just run your first FBSL program!"
  20. Print
  21. Pause

Just copy/paste it onto your favourite notepad, then save it as myfirstprogram.fbs
Double click onto it and you'll see a nice yeallow butterfly appearing onto a console window telling 'Hello world'

If you want to know more about FBSL and its capabilities, I invite you to download the manual that is a 550 CHM help file that comes with tutorials and language help + extras.
You can grab it there : http://gedd123.free.fr/FBSLv3.exe

Enjoy FBSL!
Yours,
(¯`·._.·[Gerome GUILLEMIN]·._.·´¯)
http://www.fbsl.net [FBSL Author]
http://gedd123.free.fr/FBSLv3.zip [FBSL Help file]
(¯`·._.·[If you need help... just ask]·._.·´¯)