UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software UniBasic Commands Reference - Rocket Software

rocketsoftware.com
from rocketsoftware.com More from this publisher
11.04.2013 Views

SQLAllocEnv Syntax status = SQLAllocEnv (bci.env) Note: This function is case-sensitive. If you want it to be case-insensitive, you must compile your programs using the BASIC command with the -i option. Description SQLAllocEnv creates an environment in which to execute UniData BCI calls. Use this function to allocate memory for a UniData BCI environment. The function stores the address in the bci.env variable. SQLAllocEnv must be the first UniData BCI call issued in any application. You can allocate more than one UniData BCI environment. Note: Use the environment variable only in UniData BCI calls that require it. Using it in any other context causes a runtime error or breaks communication with the data source. Parameters The following table describes each parameter of the syntax. Parameter Description 1-782 UniBasic Commands Reference bci.env Variable that represents the allocated UniData BCI environment. SQLAllocEnv Parameters

Return Values The following table describes return values from the SQLAllocEnv function. Return Value Description 0 SQL.SUCCESS −1 SQL.ERROR SQLAllocEnv Return Values SQLAllocEnv 1-783

Return Values<br />

The following table describes return values from the SQLAllocEnv function.<br />

Return Value Description<br />

0 SQL.SUCCESS<br />

−1 SQL.ERROR<br />

SQLAllocEnv Return Values<br />

SQLAllocEnv 1-783

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!