|
Dimensional Measuring Interface
Standard
|
||
|
Problem Topic Problem Description It would be desirable to modify TEXT/QUERY to allow operator prompting to fill in different types of variables. References Related SIRs Suggested Resolution
The syntax becomes:
var_5 can be: ,UPDATE (label) is an alphanumeric label of up to 10 characters in length. If UPDATE is specified, this label signifies either a CHAR, INTGR, LONG, REAL, or DOUBLE variable declared using DECL/, or any of the QIS variables described in section 11.2. If var_2 is ~N~, the type of (label) will determine whether a decimal value is accepted. If var_2 is ~N~ and (label) specifies a CHAR variable or a QIS variable, the numeric value obtained from the operator will be converted to a text string. If var_2 is ~A~ or ~AN~, (label) must specify a CHAR variable or a QIS variable. If (label) is of CHAR type, ~length~ must be no greater than ~n~ specified in the DECL/CHAR,n declaration for (label). Whether UPDATE is specified or not, the response will be output into the output file. Support Documentation Resolution Warning!!The following statement is only a resolution to a Standard Improvement Request (SIR) and is NOT part of the current DMIS standard, nor is it guaranteed to become part of the next revision of the DMIS standard even if voted and accepted by the DMIS National Standards Committee. This resolution is tentative because it may not be incorporated into the next version of the standard, it could be changed prior to the next release, or it could be changed as the result of the "public review and comment" period required for the next version of the standard. If you choose to use this tentative resolution, you do so at your own risk since at this time it is not part of the DMIS standard.
Resolves SIRs 97-41, 97-81, 97-92, 98-20 Function: To prompt the DME operator for a value to be assigned to a high level variable. Input Format: varnam=PROMPT/’text’ var_1 Output Format: None Where: varnam is the name of the previously declared high level variable or array element to which the value is assigned or is a QIS label. ‘text’ is the text string consisting of printable ASCII characters, and must be started and terminated with an apostrophe. $ signifies that the text extends to the following line. Note: Use two apostrophes, one before the one required, when an apostrophe is required within a text string.
var_1 can be: ,maxval var_2
var_2 can be: ,minval maxval is the maximum string length if varname is CHAR, or maximum limit if varname is LONG, REAL, DOUBLE or INTGR. minval is the minimum limit if varname is LONG, REAL, DOUBLE or INTGR. Examples:
DECL/DOUBLE,dHoleDia
DECL/CHAR,cName,40
OP(label)=PROMPT/’Enter your employee number: ’
Attachments Notes |
||