T-FLEX Parametric CAD. Fundamentals. 2D Design

T-FLEX Parametric CAD. Fundamentals. 2D Design T-FLEX Parametric CAD. Fundamentals. 2D Design

scp.s.scptuj.mb.edus.si
from scp.s.scptuj.mb.edus.si More from this publisher
30.07.2013 Views

Databases decides what function to use depending on the textual data encoding. In the following description, anything said about the function DBF() is also true for the function DBFWIN(). Function syntax: dbf (arg1, arg2, arg3), where arg1 - the name of the database. The name of the database can be defined by a string constant, a variable or an expression. arg2 - the name of the field to get data from. The name of the data field can be defined by a string constant, a variable or an expression. arg3 - the access condition. You can use string constants, variables and expressions for defining the condition. Example: dbf(″DBF_NAME″, ″COL1″, ″COL2 = 30″) The above means: get the value of the field COL1 in the database DBF_NAME under the condition that the value of the field COL2 is equal to 30. If we were to use an external DB for defining the bushing parameters, then we would have to define the following expressions: Function for Getting Values from External Databases: MDB() The function MDB() is provided for getting data from the external databases in XLS (Access) format. Function syntax: mdb (arg1, arg2, arg3, arg4), where arg1 - the name of the database. The name of the database can be defined by a string constant, a variable or an expression. arg2 - the name of the table in the database. Can be defined by a string constant, a variable or an expression. arg3 - the name of the field to get data from. The name of the data field can be defined by a string constant, a variable or an expression. arg4 - the access condition. You can use string constants, variables and expressions for defining the condition. Example: 533

Fundamentals. Two-Dimensional Design 534 mdb ( "c:\\T-FLEX_USER.mdb", "USER", "NAME", "Code={code}" ) The above means: get the value of the field NAME from the table USER in the T-FLEX_USER database under the condition that the value of the field Code is equal to the value of the variable "code" (equal to 15 in this case).

Databases<br />

decides what function to use depending on the textual data encoding. In the following description, anything<br />

said about the function DBF() is also true for the function DBFWIN().<br />

Function syntax:<br />

dbf (arg1, arg2, arg3), where<br />

arg1 - the name of the database. The name of the database can be defined by a string constant, a variable or<br />

an expression.<br />

arg2 - the name of the field to get data from. The name of the data field can be defined by a string constant,<br />

a variable or an expression.<br />

arg3 - the access condition. You can use string constants, variables and expressions for defining the<br />

condition.<br />

Example:<br />

dbf(″DBF_NAME″, ″COL1″, ″COL2 = 30″)<br />

The above means: get the value of the field COL1 in the database DBF_NAME under the condition that the<br />

value of the field COL2 is equal to 30.<br />

If we were to use an external DB for defining the bushing parameters, then we would have to define the<br />

following expressions:<br />

Function for Getting Values from External Databases: MDB()<br />

The function MDB() is provided for getting data from the external databases in XLS (Access) format.<br />

Function syntax:<br />

mdb (arg1, arg2, arg3, arg4), where<br />

arg1 - the name of the database. The name of the database can be defined by a string constant, a variable or an<br />

expression.<br />

arg2 - the name of the table in the database. Can be defined by a string constant, a variable or an expression.<br />

arg3 - the name of the field to get data from. The name of the data field can be defined by a string constant, a<br />

variable or an expression.<br />

arg4 - the access condition. You can use string constants, variables and expressions for defining the condition.<br />

Example:<br />

533

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

Saved successfully!

Ooh no, something went wrong!