Web+ Tutorial

Previous

  Contents  

Next

Lesson 6.2 - Using the webPrint statement to print the results of a query

Description
Prints information based on the records returned by a query.
Syntax
<webPrint [QUERY=QueryName] [FILE=FileName]
    [MAXROWS=MaximunNumberOfRows] [GROUP=GroupByName]>
    ...
</webPrint>

Example
<webPrint QUERY="CashWithdraw">
    #Balance#
</webPrint>
<webPrintTable QUERY="CashDeposit" MAXROWS=5 HTMLTABLE>
    <webPrintTableCol HEADER=ACCOUNTID TEXT=#AccountID#>
    <webPrintTableCol HEADER=BALANCE TEXT=#Balance#>
</webPrintTable>

Exercise
This example is for your reference. You can try it on your own system.

You can try out some Web+ code of your own here.

Previous

  Contents  

Next

 

Copyright © 2009 Webplus, Inc. (talentsoft). All Rights Reserved.
webmaster@webplus.com