InitializeProc()


" "

long InitializeProc(short SourceType, BSTR Source)

Description

This function sets the text that you want to use in a procedure. You can pass the text as a parameter to this function, read it from a text file, or obtain it from an existing procedure.

Parameters

Name Description
SourceType

Specifies the source for the procedure text as follows:

0 (RSS_STRING) -- The text is contained in the Source parameter.
2 (RSS_FILE) -- The text is contained in the text file whose name is specified by the Source parameter.
3 (RSS_QMFPROC) -- The text is contained in the procedure whose owner and name are specified by the Source parameter.

Source A string containing the text, the owner and name (Owner.Name) of the procedure, or the name of a file containing the procedure text.

Return Value

If successful, the ID of the procedure (ProcID). If unsuccessful, a negative one (-1). Use this value in all interface calls that require the ProcID parameter.