SetCodeText

(Engine-Level Function)

Description: Will modify a source code file to replace the text for a given CodeValue with the new text.
Returns: Invalid on success, numeric error code otherwise.
Usage: Script Only.
Function Groups: Advanced Module,  File I/O
Related to:
Format: SetCodeText(CodeValue, NewText)
Parameters:  
CodeValue
Required. Any code value giving the statement whose text is to be replaced..
NewText
Required. Any text or a buffer
Comments: The given source file must be present and have read/write privileges. This function does not immediately update the statement’s currently loaded module until that module is recompiled (usually upon a shutdown/restart cycle.