Your first BEE Section
Username:  
Password:
  > Home
v User Guide
    > Introduction
    v Hello World
       o Authoring program set up
       o Your first BEE Web Page
       o Your first BEE Section
       o Using Variables
       o What is the time now
       o More on conversions
    > Flow Control
    > Function Calls
    > Authentication
    > Database access
    > Content Management
    > Remote Calling
    > Object-Oriented
    > Other Features
> Reference
> Portal Object
> Development Guide


Shortcuts
sys Class
debug Class
Intrinsic Conversions
>> User Guide >> Hello World >> Your first BEE Section <=  =>      <  1  >  
Coding your first BEE Section

Now, instead of entering "<h1>Hello World</h1>" between <body ...> and </body>, let's make it a bit more complicated by defining a BEE Script section and use "display" to show the "Hello World" heading:

<html>

<head>

<title>Hello World</title>

</head>

 

<body bgcolor="#FFFFFF" text="#000000">

<script language="bee">

display "<h1>Hello World </h1> ";

</script>

</body>

</html>

 

The BEE Script section is between <script language="bee"> and "</script>" inclusively.  Everything in the BEE Script section will be replaced by the output of the codes in the section before the web page is sent to the client browser for a display.

The character " " represent a Line Feed, which is equivalent to a white-space in HTML and is not necessary in the above case.  We include them just to make it produce the same result as the initial HTML example, character by character.

In fact, BEE Sections are transformed into BEE Tags (an alternative format of the language) before being compiled.  Each BEE Tag represents a single BEE Command and is by itself a BEE Section.  For example, the above BEE Section can be written as:

<bee value="<h1>Hello World </h1> ">

 

To make our presentation more focus, from now on, we will not repeat the code outside of the <body ...> </body> section in our coding examples.  You can assume that all coding shown in the following sections are located between <body ...> and </body> unless otherwise stated.

Previous Page       Next Page

Accsoft Computer Technology Pty Ltd     ABN: 98 065 617 549
PO Box 892, Epping NSW 1710         Level 1, Epping Office Park, 242 Beecroft Rd, Epping NSW 2121, Australia
Tel: Sydney - (02)98691668     National - 1300-881668         Fax: (02)98691866
© Copyright 2003 Accsoft Computer Technology Pty Ltd