GraphTransferData

Note: This page includes content based on the F1 documentation for Centura development. It may be partially converted to support APF development, but should be regarded to be of uncertain actuality. It is provided as is. Eventually, it should be replaced by documentation available from within Visual Studio.

SalNumber GraphTransferData( SalString sDataString )

The GraphTransferData sets graph data from an attribute string.

Parameters

Name Description
SalString sDataString Data to be displayed in the graph. The data string should contain data points separated with CHAR_US (ASCII 31). If the data contains more than one data series, each series is separated with CHAR_RS (ASCII 30).

Returns

This method does not return a value.

Comments

Creating a data string and setting the graph data with the GraphTransferData method is useful when the application wants to show a very specific set of data.

Many times it is however more convenient to associate the graph with a table (which can be invisible). In such a case the graph will show data from the table, without requiring any programming.

Example

public class frmResourceAllocation : cFormWindow
{
#region Window Variables
public SalString swPoints = "";
public SalBoolean GraphFunc(SalNumber nFrom) { #region Actions using (new SalContext(this)) { swPoints = ""; swLegends = ""; sDataSet1 = ""; sDataSet2 = "";
<more code...> swPoints = sDataSet2 + ((SalNumber)CHAR_US).ToCharacter() +
sDataSet1 +
((SalNumber)CHAR_US).ToCharacter();
ccItem.GraphTransferData(swPoints); ccItem.GraphLegendsSet(swLegends);
.........