This method executes a script contained in the cScript property.

 

The value returned can be:

- TRUE (.t.);

- the value that has to be returned by the script executed by the method itself.

 

The script can contain more lines, loops, and development patterns and structures written in Microsoft Visual FoxPro.

 

If the script execution generates one or more errors it is possible to retrieve them using the properties cErrorLast and cErrors.

 

It is not possible to use commands needing the UI. Bizinfo 's purpose is to be commanded by a program and not by user interaction.

Syntax:

*/ Return DateTime() via a script stored in cScript.

oBiz.cScript = "return DateTime()"

oBiz.ScriptExecute()

 

*/ Return DateTime() executing the command directly.

oBiz.ScriptExecute("return DateTime()")

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Article is closed for comments.