30.07.2013 Views

T-FLEX Parametric CAD. Fundamentals. 2D Design

T-FLEX Parametric CAD. Fundamentals. 2D Design

T-FLEX Parametric CAD. Fundamentals. 2D Design

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Fundamentals</strong>. Two-Dimensional <strong>Design</strong><br />

500<br />

It is worth noting that the last operand of the function, specifying<br />

condition for record selection, can be written in the form of SQL<br />

query and then it must correspond to the WHERE clause of the<br />

SELECT command.<br />

If, upon writing the condition, the text variables are used, the<br />

expression will take the following form:<br />

mdb ( "c:\\T-<strong>FLEX</strong>_USER.mdb", "USER", "FULLNAME",<br />

"Post=\"{$Dol}\"" ).<br />

REC(condition) Get the Id of a record in the internal database.<br />

condition – a logical expression, taking values True or False.<br />

The expression may contain members – queries to the fields of the<br />

database.<br />

FREC(arg1, arg2, arg3,<br />

arg4)<br />

VAL(record_number,<br />

database_field)<br />

Get the Id of a record in the internal database or in the database by<br />

reference, where the value in the specified column matches most<br />

closely the specified value.<br />

arg1 – a database column, in which the search is performed. Must<br />

be of real or integer type;<br />

arg2 –sought value;<br />

arg3 –search option. Possible values:<br />

0 –find nearest value;<br />

-1 –find nearest lesser value;<br />

1 –find nearest greater value.<br />

arg4 –defines the column type to perform the search (the order in<br />

which the values occur in this column):<br />

0 -the values are not in order; the search is performed over<br />

all database records;<br />

1 –the values in the column are ordered ascending or<br />

descending.<br />

Once the difference between the value sought and the value in the<br />

current column of the database is greater than in the previous one,<br />

the search completes.<br />

The parameters arg3 and arg4 are optional. If these are skipped, the<br />

default values are used:<br />

arg3 = 0; search for nearest value;<br />

arg4 = 0; column not ordered;<br />

Get the value from the internal database by the record Id.<br />

record_number -an arbitrary arithmetical expression, that yields<br />

an integer.<br />

database_field -a field query.<br />

#. Get the number of records in the specified internal database

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

Saved successfully!

Ooh no, something went wrong!