Please enable JavaScript to view this site.

Vensim Help

C/C++int VEFCC vensim_get_stringval(char *varname,char *runname,char *buf,int maxbuflen) ;

int VEFCC VensimCGetSubstring(int context,char *varname,char *runname,char *buf,int maxbuflen) ;

VBPrivate Declare Function vensim_get_substring Lib "vendll32.dll" (ByVal varname$, ByVal runname$, ByVal buf$, ByVal maxbuflen As Long) As Long
Pascalfunction vensim_get_substring(varname: PChar; runname: PChar; buf:PChar; maxbuflen:Integer ):  Integer ; stdcall ; external 'vendll32.dll' ;
JavaNot useful

Retrieves a string variable from a simulation run.

Arguments

varnamethe name of the variable to retrieve data on.  This must be a fully subscripted variable name.
filenamethe name of the file containing the data.  This names a .vdf file.

buf        A buffer into which the string will be placed.

maxbuflen        The maximum amount of space that will be used in buf.

Returns

The length of the string, if maxbuflen is 0, the required buffer size to fetch the string from the dataset. A return value of 0 indicates that the string was not found in the dataset.

See Also

vensim_get_val