PCScript Command Strings

PCScript commands are sent to PopChart Server via a PCScript command string. A PCScript command string is a string that contains all of the PCScript commands in the order that they are to be executed.

The commands can run together, so that nothing is separating them from each other, or they can be separated by white space. They should not be separated by a semi-colon or any other character.

Example 5.1 and Example 5.2 demonstrate two valid PCScript command strings, both of which contain the same commands.

Example 5.1 PCScript Command String 1

graph.setCategories(Apples)textbox.setText(Apple Graph)graph.setSeries(Andy,10;Julie,14;Bryan,11)graph.addPopupText(1,1-3,Apples are Good)graph.DDEnable(1,1-3,http://www.applepies.com)

Example 5.2 PCScript Command String 2

graph.Categories(Apples) 

textbox.setText(Apple Graph)      graph.Series(Andy,10;Julie,14;Bryan,11) graph.addPopupText(1,1-3,Apples are Good) 

graph.DDEnable(1,1-3,http://www.applepies.com)