Getting Started>Hello World Example
Introduction Installation Beginning Admin Quick Ref FTP Server SMTP Server Database Security
Statements Objects String Parsing Events Queues Samples Special names Error Handling Accessories   Back
Caravan Business Server>Help>Getting Started>Hello World Example
Text
All the code to be parsed by the Caravan Business Server engine has to be enclosed within <CARAVAN> and </CARAVAN> tags within the web page.

(<HTML> <BODY> some html text and Caravan Code</BODY> </HTML>). Caravan Server is not case sensitive.
Caravan, CARAVAN and caravan have the same meaning for the Caravan Business Server.

Note:
We assume you know your HTML basics and you will include the Caravan script in web pages with the correct HTML syntax.
Sample
Let us start with a simple example: "Hello world"
<HTML>
<BODY>
<CARAVAN>
"Hello World"     // will display hello world in HTML page

</CARAVAN>
</BODY>
</HTML>

Single line of code
<CARAVAN>time now;"Current Month is";now (month)</CARAVAN>

Multiple lines of code:
<CARAVAN>
time now
"Today's date is "; now(date);" /";now(month);" /";now(year);"
"The time is "
now(hour);":"; now(minute);"
</CARAVAN>

Quick Reference Are you worried that you will make some silly mistakes and mess up your code?  Not to worry. Caravan Business Server carries out a syntax check when you save the web page. The syntax check parses the code and identifies incorrect keywords, omitted punctuation, and missing Caravan tags. Caravan Screen displays the error message.
Home       Back