########################################################## # GDIdb demo script (c) 1998 Global Data Industries # # This example shows how a simple graph can be included # on a web page. The graph can be drawn using small "gif" # block images, or even just text characters. The data for # the graph is here generated by the script, but could just # as easily come from a database. ########################################################## ########################################################## # declare variables used in script &defvar(?count?,?function?) ########################################################## # Print the information screen &cls &print("Graphs Demo Script") &print("-----------------------------------") ########################################################## # generate the html &html("index.html") { Graph of X Squared

Graph showing function X Squared

&for(?count?,0,?count?<12,1) { # calculate X Squared. &assign(?function?,?count?*?count?) &repeat(?function?){}
} }