UniBasic Commands Reference - Rocket Software
UniBasic Commands Reference - Rocket Software UniBasic Commands Reference - Rocket Software
Output Variable The following table describes the output variable. Return Codes The following table describes the EDADRV_ExecuteStmt return codes. 1-230 UniBasic Commands Reference Type Argument Description int * rowcount The number of the rows affected by the INSERT, UPDATE, or DELETE statement, or the number of columns in the result set, or the values of output and input/output parameters of a stored procedure. EDADRV_ExecuteStmt Output Variable Return Code Error Description 0 N/A Successful. 1 EDADRV_ERR_SYSTEM External system error. 2 EDADRV_SYSERR_OBJ_EXIST Object already exists. 101 EDADRV_ERR_MEMORY Internal memory allocation error. 103 EDADRV_INVALID_STATEMENT_ID Invalid statement handle. 111 EDADRV_INVALID_PARAM_TYPE Invalid parameter type 112 EDADRV_INVALID_DATATYPE Invalid data type 113 EDADRV_TOO_MANY_OUT_PARAM Too many output parameters. EDADRV_ExecuteStmt Return Codes
EDADRV_FetchStmt Syntax RETCODE EDADRV_FetchStmt(stmthdl,direction,numrows,rowsfetched, result) Description The EDADRV_FetchStmt function fetches numrows rows from an open cursor. Currently, EDA only uses forward scrolling. EDA expects the result set to be returned in a string format. The rows of the result are separated with record marks (EDADRV_ATTR_RM) and column values within each row separated with the NULL character (“\0”). In order to hold the result set, the EDADRV_FetchStmt function allocates a buffer. This buffer can only be freed by the EDADRV_FreeResult function. Input Variables The following table describes the input variables. Type Variable Description EDA_T_STMT_HDL stmthdl The statement handle. int direction The fetch direction. Valid values are: 0 – Fetch Forward int numrows The number of rows to fetch. EDADRV_FetchStmt Input Variables EDADRV_FetchStmt 1-231
- Page 186 and 187: DATA Syntax DATA expr1 [,expr2]...
- Page 188 and 189: DBTOXML Syntax DBTOXML(xml_document
- Page 190 and 191: DCOUNT Syntax DCOUNT(str,delim) Des
- Page 192 and 193: DEACTIVATEKEY Syntax DEACTIVATEKEY
- Page 194 and 195: STATUS Code Example The following e
- Page 196 and 197: DEFFUN Syntax DEFFUN function.name
- Page 198 and 199: The preceding program calls the fol
- Page 200 and 201: Examples The following program segm
- Page 202 and 203: Examples The following program stat
- Page 204 and 205: In the next example, the program st
- Page 206 and 207: UniData SQL SELECT - For informatio
- Page 208 and 209: Examples In the following example,
- Page 210 and 211: Parameters The following table desc
- Page 212 and 213: DIGEST Syntax DIGEST(algorithm, dat
- Page 214 and 215: DIR Syntax DIR(file.expr) Descripti
- Page 216 and 217: STATUS Codes DISABLEDEC has the fol
- Page 218 and 219: DISPLAYWIDTH Syntax DISPLAYWIDTH (s
- Page 220 and 221: DQUOTE DQUOTE is a synonym for the
- Page 222 and 223: Related Commands UniBasic PRECISION
- Page 224 and 225: ECHO Syntax ECHO [ON | OFF | expr]
- Page 226 and 227: EDADRV_CloseStmt Syntax RETCODE EDA
- Page 228 and 229: EDADRV_Connect Syntax RETCODE EDADR
- Page 230 and 231: EDADRV_Disconnect Syntax RETCODE ED
- Page 232 and 233: 1-226 UniBasic Commands Reference
- Page 234 and 235: Return Codes The following table de
- Page 238 and 239: Output Variables The following tabl
- Page 240 and 241: EDADRV_GetDBInfo Syntax RETCODE EDA
- Page 242 and 243: EDADRV_GetEDAAttr Syntax RETCODE ED
- Page 244 and 245: EDADRV_GetErrmsg Syntax RETCODE EDA
- Page 246 and 247: Input Variables The following table
- Page 248 and 249: EDADRV_LoadSymbols Syntax RETCODE E
- Page 250 and 251: Output Variables The following tabl
- Page 252 and 253: Return Codes The following table de
- Page 254 and 255: Input Variables The following table
- Page 256 and 257: STATUS Codes ENABLEDEC has the foll
- Page 258 and 259: Parameter Description dataLoc 1 - D
- Page 260 and 261: Parameters he following table descr
- Page 262 and 263: END Syntax END Description The UniB
- Page 264 and 265: Related Commands UniBasic CALL, CHA
- Page 266 and 267: Examples In the following example,
- Page 268 and 269: EQU Syntax EQU constant1 TO value1
- Page 270 and 271: In the next example, UniData replac
- Page 272 and 273: EXECUTE Syntax EXECUTE "str.expr" [
- Page 274 and 275: Parameter Description Reminder: The
- Page 276 and 277: Related Commands UniBasic COMMON, E
- Page 278 and 279: Parameter Description Examples In t
- Page 280 and 281: The program output is: 1-274 UniBas
- Page 282 and 283: EXP Syntax EXP(expr) Description Th
- Page 284 and 285: Examples The following program segm
Output Variable<br />
The following table describes the output variable.<br />
Return Codes<br />
The following table describes the EDADRV_ExecuteStmt return codes.<br />
1-230 <strong>UniBasic</strong> <strong>Commands</strong> <strong>Reference</strong><br />
Type Argument Description<br />
int * rowcount The number of the rows affected by the INSERT, UPDATE,<br />
or DELETE statement, or the number of columns in the result<br />
set, or the values of output and input/output parameters of a<br />
stored procedure.<br />
EDADRV_ExecuteStmt Output Variable<br />
Return<br />
Code Error Description<br />
0 N/A Successful.<br />
1 EDADRV_ERR_SYSTEM External system error.<br />
2 EDADRV_SYSERR_OBJ_EXIST Object already exists.<br />
101 EDADRV_ERR_MEMORY Internal memory allocation error.<br />
103 EDADRV_INVALID_STATEMENT_ID Invalid statement handle.<br />
111 EDADRV_INVALID_PARAM_TYPE Invalid parameter type<br />
112 EDADRV_INVALID_DATATYPE Invalid data type<br />
113 EDADRV_TOO_MANY_OUT_PARAM Too many output parameters.<br />
EDADRV_ExecuteStmt Return Codes