Home » Knowledge bases » General » Value replacement in an input file
Value replacement in an input file [message #87] Thu, 02 August 2007 11:46
tverwoest  is currently offline tverwoest
Messages: 6
Registered: August 2005
Junior Member
During a project we had to replace parts of a rather large input file. Because this took some moments of thought, especially about how to create the format of the values to replace those in the data file, I decided to place the proof-of-concept as example on the forum.

It might inspire you and/or help you with solving your own solutions.

Relevant information can also be found here:


Some explanation how to use the knowledge base

First download the knowledge base and the example.dat file (the example data file).

Start the knowledge base (is containts 58 frames so should be usable for anybody, also with a Quaestor demo/reader version).

Start the process manager by pression the S button in the, select MainInput in the left (Dataset) pane and the first top goal (Task) in the right pane (so not the solution) and press the button "Create ...".

Data already available in the MainInput object will be shown (please feel free to modify either in the dataset or during the dialog) and at some you are requested to select the data file, do so and the process will finalise.

Notes:
The the structure in the MainInput object is important for the functionality (relations have to find the data in defined objects).
Browse through the object in the dataset, make copies of the object, and feel free to change values etc (press the L button in the Workbase to change between the view on all data (also blue values inherited from above) or only local data). However, make sure that the number of frequencies or directions in the Frequencies and Directions object correspond with NrFrequencies en NrDirections. In this specific knowledge base we dit not determine this value simple on the number of cases in the object (which is of course the better way to do this, see the NRCASES() function in Quaestor) because reasons outside the scope of this example.

Previous Topic:Select an item from a dataset
Next Topic:Simple Examples
Goto Forum:
  


Contact  Home