SaveGraph method (WinStudio scripts)

Applies To

IWSFormComponent interface, graph objects

Definition

Creates a file that contains user settings of properties for a graph component and saves the file to a local disk. Returns a Boolean value indicating whether the method was successfully applied.

Syntax

object.SaveGraph( )

  Part   Description
object Required. A reference to a valid graph component object.

Remarks

A return value of:

  • TRUE indicates that the SaveGraph method was successfully applied to a graph component.
  • FALSE indicates that the SaveGraph method was applied to a component that is not a graph component or that the method was unable to access the graph component.

Graph components retrieve properties from the .gsp file when a form opens.

The file name consists of the WinStudio user ID from the current session logon and the file extension .gsp (for example, MyUserID.gsp). By default, WinStudio saves the file in the client directory from which WinStudio.exe was opened (for example, C:\Program Files\Infor\application).

Example

Sub Main()
    ' Save the settings for a graph component named SalesGraph
    ThisForm.Components("SalesGraph").SaveGraph()
End Sub