MODIFY# enables you to edit a (calculated) Telitab data set before using it

Syntax

  1. MODIFY#(Telitab$, Caption$, [ Mode%=0, 1, 2])
  2. MODIFY#(StrExp$, Caption$, [ Mode%=0, 1, 2])

Arguments

  • Telitab$ is a string parameter containing Telitab data. 
  • StrExp$This can be a relation resulting into a Telitab or a parameter containing a Telitab;
  • Caption$ is the caption presented in dialogue, this enables the possibility to give specific instrunctions;
  • Mode% is an option to determine the behaviour before and after this function is initiated:
    • Mode%=0 [default]: do not save the telitab in the parameter initiating the function. Thus, it will be interpreted by the system as intermediate calculated data. When the solution is repeated, the modified data will be reset and the calculation will be performed again (you lose your modified data);
    • Mode%=1: save the modified telitab in the parameter initiating the function. Thus, the modified data will be interpreted as input. When the solution is repeated, the modified data will be used and no recalculation will be carried out;
    • Mode%=2always save the telitab in the parameter initiating the function. Thus, the data will always be interpreted as input (also when Telitab$ was initially based on calculations). When the solution is repeated, the modified data will be used and no recalculation will be carried out;

Remarks

  1. The MODIFY# function makes it possible to carry out complex calculation and present the resulting data set in order for the user to decide whether to use the data set or modify it for further use. It provides an expert opinion while keeping flexibility
  2. The MODIFY# function parses the Telitab sets Telitab$ and shows it, as would be expected, in the Workbase as list and table during the dialogue
  3. In the workbase, it is possible to change values the moment they are presented. You can add and remove parameters and cases using the right mouse button menu's. The data, inluding with changes made, ss returned after pressing the "Play" button. By pressing the "Break" button, the Telitab editor is left without returning any data (so no changes are made).
  4. Please note that Quaestor will only show parameters and objects in the Workbase when they are available in the knowledge base. 
  5. If some parameters are NOT defined in the knowledge base, the Telitab set is presented in the internal text editor (and through this with the standard Editor program). The user can change this text file. After closing the editor, the MODIFY# function returns a string containing the edited contents of Telitab$.
  6. See also MODIFY() and MODIFY$() for the same type of behaviour on other type of values

Examples

MODIFY#(Engines#, "Modify Engine Data", 1)

Presents Engines# in the Workbase with the caption: "Modify Engine Data". After making your changes and pressing the "Play" button, the function returns a string containing the adapted Engines# data set. 
The current value of Engines# is changed into the above, modified Telitab value since Mode%=1


 

Quick links: Functions overview | Attribute overview | Constants overview | Dimensions overview

  • No labels