Function SaveDataFile

 

Function SaveDataFile( ByRef sFileName$, ByVal nFlag& ) As Long

Purpose: Save network data to binary file.

Works in:      OneLiner and Power Flow.

Parameters:     

sFileName    [in] Full path name of the OLR file.

nFlag          [in] Bit 1: Overwrite mode: 1- true; 0- false.
     Bit 2: Silent mode: 1- true; 0- false.

Return value:

0               Failure

1               Success

Remarks:       Call this function with empty sFileName to save the network under current file name.
Set bit 1 of nFlag to True to attempt to overwrite existing content of the file. Set flat bit 2 to suppress on-screen messges.

Example: