
78 Appendix A3 Modelbase and OxPack
See Modelbase::ReceiveModel() and Modelbase::ReceiveData() for an
example.
OxPackReadProfile...
"OxPackReadProfileInt"(const sKey, const sLabel, int iDefault);
"OxPackReadProfileDouble"(const sKey, const sLabel, int dDefault);
"OxPackReadProfileString"(const sKey, const sLabel, int sDefault);
sKey in: string, key name, or 0 to use package name
sLabel in: string, label name
iDefault in: int, default value if label does not exist
dDefault in: double, default value if label does not exist
sDefault in: string, default value if label does not exist
Return value
The value of the label, or the default. Of type integer, double or string respec-
tively.
Description
Reads persistent settings from the registry. See Modelbase::LoadOptions for
an example.
OxPackSetMarker
"OxPackSetMarker"(const iMarker);
iMarker in: int, 1: mark the next line, 0: scroll the text window to the
marker that was set previously.
No return value.
Description
Can be used to sets a marker at the start of printing output, and jumping to it
when finished.
OxPackStore
"OxPackStore"(const vX, const iT1, const iT2, const sX);
"OxPackStore"(const vX, const iT1, const iT2, const sX,
const bQuery);
vX in: T × 1 matrix to store in database
iT1 in: int, index in database of vX[0]
iT2 in: int, T + iT1 −1
sX in: string, variable name
bQuery in: int, if TRUE: confirm name in GiveWin
No return value.
Description
Stores a variable in the database.
Komentarze do niniejszej Instrukcji