This element can be included as a paragraph by itself or embedded in the middle of a long paragraph. You can also include the insertion string within other non-changing text as in:{T.VAR}
The time in California is {T.VAR}. Do you know where your children are!In both of these examples, T.VAR is the name of a MV/Basic variable that will be used to store the printable time. Also, you can include the insertion point with any HTML formatting tags in effect. This allows you to insert elements with varying bold, italic, underlined, varying font sizes and styles.
It is important to understand that the executable MV/Basic code that you place in the HTML document will not be seen by the web user. The PicLan-IP web server will remove this code from the page that is transmitted over the internet.~PicLan-IP/BASIC { } T.VAR = OCONV(TIME(),'MTS')
The body code that you include should typically be placed at the end of the HTML page, although you can actually include it anywhere. You must also include the executable code in a "preformatted" paragraph and you must be sure to end each line as a "newline" instead of a "new paragraph". With many HTML editors, this will require that you press <shift><enter> to end lines. If you are unsure how your HTML editor behaves, you can always look at the saved HTML text to make sure that the included BASIC source code is saved as simple text lines without intervening HTML markup tags.
The magic here is that PicLan-IP is not providing you with a sub-set of the MultiValue environment, but the entire MultiValue toolkit without limitation. Your inserted code runs at full-speed with full native access to MultiValue data files and functions. You can open files, read items, call subroutines, execute TCL commands, SSELECT files, read indexes, and re-use components from your ASCII applications freely. Your full MultiValue skillset is freely usable on the web.
The steps to convert your HTML page into executing MV/Basic code are also fully automated. Whenever you save or change an HTML document, the PicLan-IP web server will automatically parse, compile, and catalog the generated code for that page. If you do not change the content of an HTML page, the PicLan-IP web server will use the previously compiled version without delay. The parse, compile, catalog sequence does add a delay in processing a page the first time that the page is accessed, but after the initial access, the embedded code runs at full-speed.
The current time is {OCONV(TIME(),'MTS')}.In essence, you can include any MV/Basic expression that evaluates to a printable string.
{INCLUDE _WEB_FTR.HTM}