UniBasic Commands Reference - Rocket Software
UniBasic Commands Reference - Rocket Software UniBasic Commands Reference - Rocket Software
Examples In the following example, the statement eliminates the record with the record ID of JONES from the most recently opened default file: DELETEU "JONES" The following segment deletes the record. The record ID is stored in the variable DEL_ID. The file was opened to the variable DISCOUNT. DEL_ID = "ACTION_FILMS" DELETEU DISCOUNT, DEL_ID Related Commands UniBasic DEL, DELETE, DELETE function, RELEASE 1-209 UniBasic Commands Reference
DIM Syntax DIM name1(rows[,cols]) [,name2(rows[,cols])]... Synonym DIMENSION Description The UniBasic DIM command creates and determines the dimensions of a dimensioned array. You can specify arrays with one dimension (rows) or two dimensions (rows or rows, cols). In addition, the following limitations apply: You must dimension any array before you use it within a program. Zero elements other than 0,0 (such as 0,5 or 1,0) are invalid. The maximum number of elements you can specify is based on the total amount of virtual memory available on your system. Arrays passed to a subroutine cannot be redimensioned within the subroutine. For information about system configurations, see Administering UniData on UNIX or Administering UniData on Windows Platforms. MATREAD, MATWRITE, and MATPARSE load and empty an array from left to right and from top to bottom beginning with element 1,1 and ending by placing excess data in element 0,0. Note: BASICTYPEs M and P do not support position 0,0 in arrays. You could lose data if an array is too small for the amount of data you are attempting to load into it with MATPARSE. DIM 1-210
- Page 158 and 159: 1-161 UniBasic Commands Reference
- Page 160 and 161: UniData DELETECOMMON, STACKCOMMON -
- Page 162 and 163: Related Command UniBasic EXIT 1-165
- Page 164 and 165: In the next example, the program se
- Page 166 and 167: In the next example, the program se
- Page 168 and 169: COUNT Syntax COUNT(str.expr1, str.e
- Page 170 and 171: COUNTS Syntax COUNTS(expr,str.expr)
- Page 172 and 173: createCertificate Syntax createCert
- Page 174 and 175: createCertRequest Syntax createCert
- Page 176 and 177: Parameter Description The following
- Page 178 and 179: The following table describes the a
- Page 180 and 181: createSecureRequest Syntax createSe
- Page 182 and 183: Method Description The following ta
- Page 184 and 185: Parameters The following table desc
- 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 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 236 and 237: Output Variable The following table
- 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
DIM<br />
Syntax<br />
DIM name1(rows[,cols]) [,name2(rows[,cols])]...<br />
Synonym<br />
DIMENSION<br />
Description<br />
The <strong>UniBasic</strong> DIM command creates and determines the dimensions of a dimensioned<br />
array. You can specify arrays with one dimension (rows) or two dimensions<br />
(rows or rows, cols). In addition, the following limitations apply:<br />
You must dimension any array before you use it within a program.<br />
Zero elements other than 0,0 (such as 0,5 or 1,0) are invalid.<br />
The maximum number of elements you can specify is based on the total<br />
amount of virtual memory available on your system.<br />
Arrays passed to a subroutine cannot be redimensioned within the<br />
subroutine.<br />
For information about system configurations, see Administering UniData on UNIX<br />
or Administering UniData on Windows Platforms.<br />
MATREAD, MATWRITE, and MATPARSE load and empty an array from left to<br />
right and from top to bottom beginning with element 1,1 and ending by placing<br />
excess data in element 0,0.<br />
Note: BASICTYPEs M and P do not support position 0,0 in arrays. You could lose<br />
data if an array is too small for the amount of data you are attempting to load into it<br />
with MATPARSE.<br />
DIM 1-210