Functions
The OutputCallBackType struct provides all the information and functionality you need to thoroughly examine a SuperCROSS table. This section provides a comprehensive listing of the available functions:
short QuerySuperMARTID(HANDLE hTable, LPSTR IDBuff, short LenBuff)
Function | Get the Identifier (ID) of the SuperMART. | ||||||
|---|---|---|---|---|---|---|---|
Parameters |
| ||||||
Output |
| ||||||
Returns | The length of the ID. |
short QueryTitleTable(HANDLE hTable, LPSTR NameBuff, short LenBuff)
Function | Get the template of the tables title | ||||||
|---|---|---|---|---|---|---|---|
Parameters |
| ||||||
Output |
| ||||||
Returns | The length of the title of the table. The title returned here is the complete title as displayed over the table. The user may change the composition of the title, but the standard template is "&o&dTable 1&v&s", which means that the table shows:
See |
short QueryFootnotesTable(HANDLE hTable, LPSTR NoteBuff, short LenBuff)
Function | Get the footnote of the table. | ||||||
|---|---|---|---|---|---|---|---|
Parameters |
| ||||||
Output |
| ||||||
Returns | The length of the footnotes of the table. The footnotes returned here are the complete list of footnotes displayed below the table. The user may change the composition of the footnotes, but the standard template is "&r&f&c&p", which means that the footnotes contain:
|
short QueryPartTitleTable(HANDLE hTable, LPCSTR Template, LPSTR PartBuff, short LenBuff)
Function | Get only part of the title and/or footnote. | ||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Parameters |
| ||||||||||||||||||||||||||||||
Output |
| ||||||||||||||||||||||||||||||
Returns | The length of the text in the buffer. Valid template strings are:
|
short QueryTimeStampDatabase(HANDLE hTable, LPSTR TimeStampBuff, short LenBuff)
Function | Get the time stamp of the table. | ||||||
|---|---|---|---|---|---|---|---|
Parameters |
| ||||||
Output |
| ||||||
Returns | The number of characters used by the timestamp string. This returns the timestamp of the database file. For the format of the timestamp see |
long QueryNumNonZeroCells(HANDLE hTable)
Function | Get the total number of non zero cells in the table. | ||
|---|---|---|---|
Parameters |
| ||
Returns | The number of non zero cells in the table. If the number of non zero cells is greater than the maximum size of a long then this function will return the maximum size of a long. |
short QueryNumDecimalPlaces(HANDLE hTable)
Function | Get the number of decimal places used in the table. | ||
|---|---|---|---|
Parameters |
| ||
Returns | The number of decimal places (for the whole table not individual cells). |
short QueryNumField(HANDLE hTable)
Function | Get the total number of fields in the table. | ||
|---|---|---|---|
Parameters |
| ||
Returns | The number of fields in the table. The total number of fields in the table includes the fields in the wafers, rows, columns, and subject population. |
short QueryNumFieldAxis(HANDLE hTable, AxisType Axis)
Function | Get the total number of fields in a particular axis. | ||||
|---|---|---|---|---|---|
Parameters |
| ||||
Returns | The number of fields in the nominated axis. There are four axes (including the subject population), and there may be zero or more fields in each. Each field dimension in the table is in exactly one axis. |
long QuerySizeField (HANDLE hTable, short FieldNum)
Function | Get the total number of entries in a particular field. | ||||
|---|---|---|---|---|---|
Parameters |
| ||||
Returns | The number of entries in the field. This returns the number of entries displayed in each occurrence of the nominated field. This can be different from the number of natural values in the field dimension if the user has defined one or more field derivations. |
long QueryNumNaturalField(HANDLE hTable, short FieldNum)
Function | Get the total number of natural values in the field | ||||
|---|---|---|---|---|---|
Parameters |
| ||||
Returns | The number of natural (non-derivation) values in the field. A natural value is one which is a dimension value that is not a derivation belonging to that dimension. |
BOOL QueryFieldHasSpannerLabel(HANDLE hTable, short FieldNum)
Function | Determines if a given field has a spanner label. | ||||
|---|---|---|---|---|---|
Parameters |
| ||||
Returns | True if the field has a spanner label, false otherwise. |
short QueryNameField(HANDLE hTable, short FieldNum, LPSTR NameBuff, short LenBuff)
Function | Get the name of a particular field. | ||||||||
|---|---|---|---|---|---|---|---|---|---|
Parameters |
| ||||||||
Output |
| ||||||||
Returns | The length of the name of the field. This name is the name that is displayed in the Fields window, shown in the spanner heading, and used as part of the variables list (see |
short QueryCodeField(HANDLE hTable, short FieldNum, LPSTR CodeBuff, short LenBuff)
Function | Get the code for a particular field | ||||||||
|---|---|---|---|---|---|---|---|---|---|
Parameters |
| ||||||||
Output |
| ||||||||
Returns | The length of the code of the field (up to 8 chars, all uppercase). This code is the identifier for the field. It may only contain uppercase alphanumeric characters; it will not contain spaces. |
short QueryFootnotesField(HANDLE hTable, short FieldNum, LPSTR FootnoteBuff, short LenBuff)
Function | Get the footonote relating to a particular field. | ||||||||
|---|---|---|---|---|---|---|---|---|---|
Parameters |
| ||||||||
Output |
| ||||||||
Returns | The length of the footnotes relating to the field. This provides the footnotes associated with the field in the database. |
short QueryTimeStampField(HANDLE hTable, short FieldNum, LPSTR NameBuff, short LenBuff)
Function | Get a time stamp for a particular field. | ||||||||
|---|---|---|---|---|---|---|---|---|---|
Parameters |
| ||||||||
Output |
| ||||||||
Returns | The length of the timestamp for the field (a string in the format "YYYYmmddhhmmss").
|
short QueryNameValue(HANDLE hTable, short FieldNum, long ValueNum, LPSTR NameBuff, short LenBuff)
Function | Get the name for a particular value in a particular field. | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Parameters |
| ||||||||||
Output |
| ||||||||||
Returns | The length of the name of a value in a field. This name is the name that is displayed on the table, providing the user did not select the Codes option in the This function applies to a specific point in a field as displayed, not a natural value. |
short QueryCodeValue(HANDLE hTable, short FieldNum, long ValueNum, LPSTR CodeBuff, short LenBuff)
Function | Get the code for a particular value in a particular field. | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Parameters |
| ||||||||||
Output |
| ||||||||||
Returns | The length of the code of a value in a field. This code is the code that is displayed in the table if the user selected Codes in the Define Recode dialog. The code is a short string that does not contain spaces. This function applies to a specific point in a field as displayed, not a natural value. |
short QueryUniqueValue(HANDLE hTable, short FieldNum, long ValueNum, LPSTR CodeBuff, short LenBuff)
Function | Get the unique code for a particular value in the field | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Parameters |
| ||||||||||
Output |
| ||||||||||
Returns | The length of the unique code of a value in a field The unique codes are normally numeric. They are guaranteed to be unique within a field, even if the field is hierarchical. They are especially useful for area fields, where areas at different levels in the hierarchy may have the same code, returned by |
BOOL QueryHiddenValue(HANDLE hTable, short FieldNum, long ValueNum)
Function | Check if the particular value in the field is hidden. | ||||||
|---|---|---|---|---|---|---|---|
Parameters |
| ||||||
Returns | Whether the nominated natural value in the field is hidden. This function applies to a specific value in the field, not a displayed entry. |
long QueryNaturalValue(HANDLE hTable, short FieldNum, long EntryNum)
Function | Get the natural value for the particular entry in the field | ||||||
|---|---|---|---|---|---|---|---|
Parameters |
| ||||||
Returns | The natural value at a specific point in the field as displayed. If the point nominated is not natural this function returns a negative number. |
ValueType QueryTypeValue(HANDLE hTable, short FieldNum, long EntryNum)
Function | Get the | ||||||
|---|---|---|---|---|---|---|---|
Parameters |
| ||||||
Returns | The type of value at a specified point in a field. This function applies to a specific point in a field as displayed, not a natural value. |
AxisType QueryAxisField(HANDLE hTable, short FieldNum)
Function | Get the axis that contains the nominated field. | ||||
|---|---|---|---|---|---|
Parameters |
| ||||
Returns | The axis on which a nominated field lies. Every field in the table appears in exactly one of the four axes (including subject population, which includes all fields with exactly one entry). |
short QueryLevelAxisField(HANDLE hTable, short FieldNum)
Function | Get the level on the axis at which a nominated field lies | ||||
|---|---|---|---|---|---|
Parameters |
| ||||
Returns | The level on the axis at which a nominated field lies. The level of a field on an axis is a number. Considering column headings, the level 0 field is at the top. The level 1 field is immediately under the level 0, and so forth. |
long QueryDerivationField(HANDLE hTable, short FieldNum, long EntryNum, char *ExprBuff, long LenBuff)
Function | Get the expression for a particular field derivation. | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Parameters |
| ||||||||||
Output |
| ||||||||||
Returns | The length of the expression for a nominated field derivation. |
BOOL QueryDataCellIndex(HANDLE hTable, long far *Index, double far *Value)
Function | Get the data at a particular point in the table (indexed by field value). | ||||||
|---|---|---|---|---|---|---|---|
Parameters |
| ||||||
Output |
| ||||||
Returns | TRUE if successful, FALSE if not. This function accesses the data by field value. It does not access the table as displayed. Axis derivations and arrangements are not accessible using this function. |
BOOL QueryNextNonZeroCellIndex(HANDLE hTable, long far *Index)
Function | Get the next non zero cell in the table. | ||||
|---|---|---|---|---|---|
Parameters |
| ||||
Returns | TRUE if there is another non zero cell, FALSE if there is not. The caller initializes the index array and calls this routine, which updates the array to hold the index of the next non zero cell. This routine moves through the table field by field, enumerating all of the values in the last field before moving through the second-last field. Putting this another way, index[0] changes least often. If the index array is initialized to all zeros, and this function called repeatedly, all non zero cells (except 0, 0, 0...) of the table will be traversed. The caller is responsible for determining if the first cell (0, 0, 0...) is non zero, which can be done by calling |
long QuerySizeAxis(HANDLE hTable, AxisType Axis)
Function | Get the total number of entries in a particular axis. | ||||
|---|---|---|---|---|---|
Parameters |
| ||||
Returns | The number of entries in an axis. This is not necessarily the same as the product of the number of entries in each field on the axis. The user may add axis derivations, and may hide values. |
long QueryNumNaturalAxis(HANDLE hTable, AxisType Axis)
Function | Get the total number of natural entries in a particular axis. | ||||
|---|---|---|---|---|---|
Parameters |
| ||||
Returns | The number of natural entries in an axis. This is the product of the sizes of the fields in the axis, not the product of the numbers of natural values in the fields. Field derivations are considered natural values for axes. |
short QueryNameAxis(HANDLE hTable, AxisType Axis, long EntryNum, LPSTR NameBuff, short LenBuff)
Function | Get the name of a particular entry in the axis | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Parameters |
| ||||||||||
Output |
| ||||||||||
Returns | The length of the name of the entry at the specified point in the axis. The name of an entry is obtained in one of two ways: if the entry is an axis derivation, then the name is the name of that axis derivation; if the entry is not an axis derivation, then the name is the concatenation of the names of the component entries for each field. If this name is composed from different fields, entries from different fields are separated by a comma followed by a blank space. |
short QueryNameAxisEx(HANDLE hTable, AxisType Axis, long EntryNum, LPSTR NameBuff, short LenBuff, DWORD Flags, char * EscChar, char * Seperator)
Function | Get the name of a particular entry in the axis | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Parameters |
| ||||||||||||||||||||||||
Returns | The length of the name of the entry at the specified point in the axis. The name of an entry is obtained in one of two ways: if the entry is an axis derivation, then the name is the name of that axis derivation; if the entry is not an axis derivation, then the name is the concatenation of the names of the component entries for each field. If this name is composed from different fields, the entries are separated by a comma followed by a blank space. |
short QueryDerivCompValue(HANDLE hTable, AxisType Axis, long EntryNum, LPSTR NameBuff, short LenBuff, DWORD Flags, char EscChar, char * Seperator)*
Function | Gets the name of the field value (either natural or field derivation) that is referenced from an axis derivation ie (V1, V2 .. Vn). | ||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Parameters |
| ||||||||||||||||||||||
Output |
| ||||||||||||||||||||||
Returns | The length of the name of the nominated component for the derivation. |
EntryType QueryEntryTypeAxis(HANDLE hTable, AxisType Axis, long EntryNum)
Function | Get the type of a particular entry in the axis. | ||||||
|---|---|---|---|---|---|---|---|
Parameters |
| ||||||
Returns | The type of entry at a specified point on a nominated axis. There are three possible results from this function. The nominated entry may be an axis derivation ( |
long QueryNaturalAxis(HANDLE hTable, AxisType Axis, long EntryNum)
Function | Get the natural number for a particular entry in the axis. | ||||||
|---|---|---|---|---|---|---|---|
Parameters |
| ||||||
Returns | The natural value at a specific point in the axis as displayed. If the point nominated is not a natural value this function returns a negative number. |
long QueryFieldIndexAxis(HANDLE hTable, short FieldNum, long EntryNum)
Function | Get the index in the nominated field of the particular entry in the axis. | ||||||
|---|---|---|---|---|---|---|---|
Parameters |
| ||||||
Returns | The index in the field of a specified point on an axis. This function allows a point on an axis to be decomposed into its component field entries. A natural axis value will yield anon-negative index. The return value of this function is not defined when the |
long QueryDerivationAxis(HANDLE hTable, AxisType Axis, long EntryNum, char *ExprBuff, long LenBuff)
Function | Get the expression for a particular axis derivation. | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Parameters |
| ||||||||||
Output | ExprBuff Expression for the nominated axis derivation | ||||||||||
Returns | The length of the expression for a nominated axis derivation. For more information on on the format of derivations, see Derivations 1. The return value of this function will be zero if |
BOOL QueryDataCellAxis (HANDLE hTable, long Index[3], double far *Value)
Function | Get the data value for a particular cell in the table. | ||||||
|---|---|---|---|---|---|---|---|
Parameters |
| ||||||
Output |
| ||||||
Returns | TRUE if successful, FALSE if not. This accesses the data by wafer, row, and column, accessing the table as displayed, including derivations and rearrangements. Hidden values are not accessible using this function. |
BOOL QueryNextNonZeroCellAxis(HANDLE hTable, long Index[3])
Function | Get the next non zero cell in the table. | ||||
|---|---|---|---|---|---|
Parameters |
| ||||
Output |
| ||||
Returns | TRUE if there is another non zero cell, FALSE if there is not. The caller initializes the index array and calls this routine which updates the array to hold the index of the next non zero cell. This routine moves through the table by column, then row, then wafer. If the index array is initialized to all zeros, and this function called repeatedly, all non zero cells (except 0, 0, 0) of the table will be traversed. The caller is responsible for determining if the first cell (0, 0, 0) is non zero, which can be done by calling |
BOOL QueryIsConfidentialityOn(HANDLE hTable)
Function | Check if this table's confidentiality is on. | ||
|---|---|---|---|
Parameters |
| ||
Returns | TRUE if the table has confidentiality turned on, FALSE otherwise. |
short QueryDefSumField(HANDLE hTable, LPSTR FieldBuff, short LenBuff)
Function | Get the default summation field for the table. | ||||||
|---|---|---|---|---|---|---|---|
Parameters |
| ||||||
Output |
| ||||||
Returns | The length of the default summation field name. |
BOOL QueryMappableField(HANDLE hTable, short FieldNum)
Function | Check if a particular field is mappable. | ||||
|---|---|---|---|---|---|
Parameters |
| ||||
Returns | TRUE if the field is mappable (meaning it does have mapping data associated with it), FALSE otherwise. |
short QueryBaseSetIDField(HANDLE hTable, short FieldNum, LPSTR NameBuff, short LenBuff)
Function | Get the base set ID of a particular field. | ||||||||
|---|---|---|---|---|---|---|---|---|---|
Parameters |
| ||||||||
Output |
| ||||||||
Returns | The length of the Base Set ID of the field used in mapping data. |
DerivationKindType QueryDerivationKindField(HANDLE hTable, short FieldNum, long EntryNum)
Function | Check what kind of derivation is this field derivation. | ||||||
|---|---|---|---|---|---|---|---|
Parameters |
| ||||||
Returns | The type of the nominated field derivation. |
DerivationKindType QueryDerivationKindAxis(HANDLE hTable, AxisType Axis, long EntryNum)
Function | Check what kind of derivation is this axis derivation. | ||||||
|---|---|---|---|---|---|---|---|
Parameters |
| ||||||
Returns | The type of the nominated axis derivation. |
DerivProperties QueryDerivationPropertiesAxis(HANDLE hTable, AxisType Axis, long EntryNum)
Function | Get the properties of the derivation if it is an axis derivation. | ||||||
|---|---|---|---|---|---|---|---|
Parameters |
| ||||||
Returns | A structure filled with the properties of a specified derivation. |
short QuerynoCellAnnotations(HANDLE hTable)
Function | Get the total number of annotations defined for this table. | ||
|---|---|---|---|
Parameters |
| ||
Returns | The number of cell annotations defined for the table. This is the number of annotations that appear in the footnotes (not the number of annotated cells). |
short QuerycellAnnotationText(HANDLE hTable, short ANum, LPSTR TextBuff, short LenBuff)
Function | Get the annotation text of a particular annotation. | ||||||||
|---|---|---|---|---|---|---|---|---|---|
Parameters |
| ||||||||
Output |
| ||||||||
Returns | Length of the Copies the text for the nominated annotation into If |
BOOL QuerycellAnnotationIndex(HANDLE hTable, long far *Index, short Annotation)
Function | Check if a particular cell has a particular annotation. | ||||||
|---|---|---|---|---|---|---|---|
Parameters |
| ||||||
Returns | TRUE if the nominated cell has the nominated annotation, FALSE if not. This accesses the cell annotation by field value. This does not access the table as displayed. Axis derivations and arrangements are not accessible using this function. |
BOOL QueryIsSpannerLabel(HANDLE hTable, short FieldNum)
Function | Check if the spanner label is turned on for a given field. | ||||
|---|---|---|---|---|---|
Parameters |
| ||||
Returns | TRUE if the spanner label is on for this field, FALSE otherwise. |
BOOL QuerycellAnnotationAxis(HANDLE hTable, long Index[3], short Annotation)
Function | Check if a particular cell has a particular annotation. | ||||||
|---|---|---|---|---|---|---|---|
Parameters |
| ||||||
Returns | TRUE if the nominated cell has the nominated annotation, FALSE if not. Determine if a cell, nominated by its axis index, has a particular annotation. This accesses the data by wafer, row, and column, as displayed (including derivations and rearrangements). Hidden values are not accessible using this function. |
short QueryDatabasePath(HANDLE hTable, LPSTR PathBuff, short LenBuff)
Function | Get the path of the database for this table. | ||||||
|---|---|---|---|---|---|---|---|
Parameters |
| ||||||
Output |
| ||||||
Returns | The length of the database path for the table. |
long QuerySizeDBField(HANDLE hTable, short FieldNum)
Function | Get the number of original entries in the nominated field. | ||||
|---|---|---|---|---|---|
Parameters |
| ||||
Returns | The number of entries in the original database field. |
BOOL QueryIsValueRecodeTotal(HANDLE hTable, short fieldNum, long ValueNum)
Function | Check if a particular value in the field is a recode total. | ||||||
|---|---|---|---|---|---|---|---|
Parameters |
| ||||||
Returns | TRUE if this value is a recode total, FALSE otherwise. |
BOOL QueryIsDerivedValue(HANDLE hTable, short fieldNum, long ValueNum)
Function | Check if a particular value in the field is a derived value | ||||||
|---|---|---|---|---|---|---|---|
Parameters |
| ||||||
Returns | TRUE if it is a derived value, FALSE otherwise. This function applies to a specific point in a field as displayed, not a natural value. |
BOOL QueryFieldHasGroups(HANDLE hTable, short FieldNum, long nValue)
Function | Check if the field has any group recodes | ||||||
|---|---|---|---|---|---|---|---|
Parameters |
| ||||||
Returns | TRUE if the nominated field has at least one group recodes, FALSE otherwise. |
short QueryDatabasePrefix(HANDLE hTable, LPSTR NameBuff, short LenBuff)
Function | Get the database prefix of the database associated with this table | ||||||
|---|---|---|---|---|---|---|---|
Parameters |
| ||||||
Output |
| ||||||
Returns | The length of the database ID for the table. |
long QueryNumFieldRecode(HANDLE hTable, short FieldNum)
Function | Get the total number of concatenated recodes in this field dimension. | ||||
|---|---|---|---|---|---|
Parameters |
| ||||
Returns | The number of concatenated recodes making up this field dimension. |
long QueryFieldRecodeID(HANDLE hTable, short FieldNum, long RecodeNum, char *IDBuff, long LenBuff)
Function | Get the recode ID of the a particular recode of the field | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Parameters |
| ||||||||||
Output |
| ||||||||||
Returns | The length of the recode ID text. This function copies the ID of the nominated recode in to This function will truncate the ID to the number of characters specified by |
BOOL SetFieldRecodeID(HANDLE hTable, short FieldNum, long RecodeNum, const char *IDBuff)
Function | Sets the Recode ID to the contents of | ||||||||
|---|---|---|---|---|---|---|---|---|---|
Parameters |
| ||||||||
Returns | TRUE if the assignment was successful, FALSE otherwise. |
long QueryFieldRecodeBaseID(HANDLE hTable, short FieldNum, long RecodeNum, LPSTR IDBuff, long LenBuff)
Function | Get the ID of the base field of the given recode in the field dimension. | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Parameters |
| ||||||||||
Output |
| ||||||||||
Returns | The length of the Base field ID text. This function copies the ID of the Recode's Base Field (the field the recode is based on) into If |
long QueryFieldRecodeValues(HANDLE hTable, short FieldNum, long RecodeNum, long *Values, long NumValues)
Function | Get the value numbers of the given field which are part of the given recode | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Parameters |
| ||||||||||
Output |
| ||||||||||
Returns | The number of values for the given recode. This function copies the value numbers for each of the values in the field dimension belonging to this recode into the values array up to If |
long QueryFieldRecodeTotalValues(HANDLE hTable, short FieldNum, long ValueNo, long *Values, long NumValues)
Function | Get the value numbers for the field values that make up the given total. | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Parameters |
| ||||||||||
Output |
| ||||||||||
Returns | The length of the Recode ID text. This function copies the value numbers for each of the values making up the given recode total into the values array up to |
long QueryFieldRecodeName(HANDLE hTable, short FieldNum, long RecodeNum, char *NameBuff, long LenBuff)
Function | Get the recode name of the a particular recode of the field. | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Parameters |
| ||||||||||
Output |
| ||||||||||
Returns | The length of the Recode Name text (not including the terminating '\0'). This function copies the name of the nominated recode into If this is the only recode in the field dimension (that is, not recode/field concatenation), this should return the same name as the field dimension name. |
BOOL SetCodeValue(HANDLE hTable, short FieldNum, long ValueNum, LPSTR CodeBuff)
Function | Sets the code fora particular value in a particular field | ||||||||
|---|---|---|---|---|---|---|---|---|---|
Parameters |
| ||||||||
Output |
| ||||||||
Returns | TRUE if the code value was set successfully. |
BOOL SaveRecodeAs(HANDLE hTable, short FieldNum, long RecodeNum, LPSTR FileName, LPSTR format)
Function | Tells SuperCROSS to save this recode in rcd format appended to the end of the file with the given file name | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Parameters |
| ||||||||||||||||||
Returns | TRUE if the assignment was successful, FALSE otherwise. |
BOOL SetFieldRecodeBaseID(HANDLE hTable, short FieldNum, long RecodeNum, LPSTR IDBuff)
Function | Set the ID of the base field of the given recode in the field dimension. This function will only work for User Defined Fields as base fields; you can not reset the base field ID for Database Fields. | ||||||||
|---|---|---|---|---|---|---|---|---|---|
Parameters |
| ||||||||
Returns | TRUE if the ID was set successful, else FALSE. If it is not null and if |
short QueryFieldValueFootnote(HANDLE hTable, short FieldNum, long EntryNum, LPSTR TextBuff, short LenBuff)
Function | Get the footnote for a particular entry in the field. | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Parameters |
| ||||||||||
Output |
| ||||||||||
Returns | Length of the text copied into This function copies the text for the nominated footnote into This function applies to a specific point in a field as displayed, not a natural value. |
BOOL QueryFieldRecodeSummations(HANDLE hTable, short FieldNum, long RecodeNum)
Function | Does this recode contain only summation fields? | ||||||
|---|---|---|---|---|---|---|---|
Parameters |
| ||||||
Returns | TRUE if the field contains only summation fields. |
BOOL QueryIsDefaultRecode(HANDLE hTable, short FieldNum, long RecodeNum)
Function | Is this recode a field's default recode? A default recode is one that has not be recoded in the Define Recode window or with a textual recode definition. | ||||||
|---|---|---|---|---|---|---|---|
Parameters |
| ||||||
Returns | TRUE if the field is a default recode. |
BOOL QueryIsAutoLoadRecode(HANDLE hTable, short FieldNum, long RecodeNum)
Function | Is this recode an autoloaded standard recode? | ||||||
|---|---|---|---|---|---|---|---|
Parameters |
| ||||||
Returns | TRUE if the field is an auto loaded recode. |
BOOL QueryIsValueRecodeGroup(HANDLE hTable, short fieldNum, long ValueNum)
Function | Check if a particular value in the field is a recode group. | ||||||
|---|---|---|---|---|---|---|---|
Parameters |
| ||||||
Returns | TRUE if this value is a recode group, FALSE otherwise. |
BOOL QueryDataCellIndexSpecial(HANDLE hTable, long far *Index, double far *Value, char far *SpecialString, int maxlen)
Function | Get the data at a particular point in the table (indexed by field value) with special string. This function is same as Use this function if you need to know whether the cells are confidential, not applicable or blank. If you just need the real value, use | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Parameters |
| ||||||||||
Output |
| ||||||||||
Returns | TRUE if successful, FALSE if not. This accesses the data by field value. This does not access the table as displayed. Axis derivations and arrangements are not accessible using this function. |
BOOL QueryDataCellAxisSpecial(HANDLE hTable, long far *Index, double far *Value, char far *SpecialString, int maxlen)
Function | Get the data value for a particular cell in the table with special string. This function is same as If | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Parameters |
| ||||||||||
Output |
| ||||||||||
Returns | TRUE if successful, FALSE if not. This function accesses the data by wafer, row, and column. It accesses the table as displayed, including derivations and rearrangements. Hidden values are not accessible using this function. |
int QueryNumDecPlaceCellAxis(HANDLE hTable, long far *Index)
Function | Get the number of decimal places for the particular cell indexed by Index in the table. | ||||
|---|---|---|---|---|---|
Parameters |
| ||||
Returns | The number of decimal places. This function accesses the data by wafer, row, and column. It accesses the table as displayed, including derivations and rearrangements. Hidden values are not accessible using this function. |
BOOL QueryIsSumDerivationValue(HANDLE hTable, short FieldNum, long ValueNum)
Function | Is this value a derived value based exclusively on the summation of other values? | ||||||
|---|---|---|---|---|---|---|---|
Parameters |
| ||||||
Returns | TRUE if the value is a derived value based exclusively on the summation of other values. |
long QueryDerivationValues(HANDLE hTable, short FieldNum, long ValueNum, long *Values, long NumValues)
Function | Get the value numbers for the field values that make up the given derived value. This value must be the derived value based exclusively on the summation of other values. | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Parameters |
| ||||||||||
Output |
| ||||||||||
Returns | The number of values making up this derived sum. If |
BOOL QueryAxisItemContainsType(HANDLE hTable, DerivationKindType Type, AxisType Axis, long EntryNum)
Function | Determine if this axis item contains an axis or field derivation of the given type. This function is built up of | ||||||||
|---|---|---|---|---|---|---|---|---|---|
Parameters |
| ||||||||
Returns | Returns TRUE if this axis item contains an axis or field derivation of the given type. |
long QueryNumNonZeroCellsFieldIndex(HANDLE hTable)
Function | Returns the number of non zero cells that can be accessed via the field index. Some cells not accessible via the axis index are accessible via the field index due to the axis item been hidden. Hidden field items are not accessible | ||
|---|---|---|---|
Parameters |
| ||
Returns | Returns the number of non zero cells that can be accessed via the field index or -1 if an error occurred. |
BOOL QueryFirstNonZeroCellFieldIndex()(HANDLE hTable, long far *Index, short far *SortOrder)
Function | Gets the field index of the first non zero cell. You should be certain that there is a least one non zero cell before calling this function. You can check this using the function | ||||
|---|---|---|---|---|---|
Parameters |
| ||||
Output |
| ||||
Returns | Returns TRUE if there are more non zero cells to follow, FALSE if this is the last or -1 if an error occurred. |
BOOL QueryNextNonZeroCellFieldIndex(HANDLE hTable, long far *Index)
Function | Gets the field index of the next non zero cell. The first non zero field index should be found using the function | ||||
|---|---|---|---|---|---|
Parameters |
| ||||
Output |
| ||||
Returns | Returns TRUE if there are more non zero cells to follow, FALSE if this is the last or -1 if an error occurred. When this function returns FALSE, it indicates that there are no more to follow, but the index it returned with is a valid one and it should be processed. |
short QueryTableSubmitTimeStamp(HANDLE hTable, LPSTR TimeStampBuff, short LenBuff)
Function | Get the time stamp created when the table was submitted for to the server. For the format of the timestamp see | ||||||
|---|---|---|---|---|---|---|---|
Parameters |
| ||||||
Output |
| ||||||
Returns | The number of characters used by the timestamp string. |
short QueryStartProcessTimeStamp(HANDLE hTable, LPSTR TimeStampBuff, short LenBuff)
Function | Get the timestamp created when processing of the table began. For the format of the timestamp see | ||||||
|---|---|---|---|---|---|---|---|
Parameters |
| ||||||
Output |
| ||||||
Returns | The number of characters used by the timestamp string. |
short QueryStartSortTimeStamp(HANDLE hTable, LPSTR TimeStampBuff, short LenBuff)
Function | Get the timestamp created when sorting of the table began. For the format of the timestamp see | ||||||
|---|---|---|---|---|---|---|---|
Parameters |
| ||||||
Output |
| ||||||
Returns | The number of characters used by the timestamp string. |
short QueryEndProcessTimeStamp(HANDLE hTable, LPSTR TimeStampBuff, short LenBuff)
Function | Get the timestamp created when the server finished processing the table (including sorting). For the format of the timestamp see | ||||||
|---|---|---|---|---|---|---|---|
Parameters |
| ||||||
Output |
| ||||||
Returns | The number of characters used by the timestamp string. |
short QueryApplicationName(HANDLE hTable, LPSTR NameBuff, short LenBuff)
Function | Get the name of the SuperSTAR Application. | ||||||
|---|---|---|---|---|---|---|---|
Parameters |
| ||||||
Output |
| ||||||
Returns | The length of the name. |
short QueryWorkGroupName(HANDLE hTable, LPSTR NameBuff, short LenBuff)
Function | Get the name of the work group this server belongs to. | ||||||
|---|---|---|---|---|---|---|---|
Parameters |
| ||||||
Output |
| ||||||
Returns | The length of the name. |
short QueryWorkGroupFile (HANDLE hTable, LPSTR FileBuff, short LenBuff)
Function | Get the filename of the work group this server belongs to. | ||||||
|---|---|---|---|---|---|---|---|
Parameters |
| ||||||
Output |
| ||||||
Returns | The length of the name. |
short QueryUserName(HANDLE hTable, LPSTR NameBuff, short LenBuff)
Function | Get the name of the user who submitted this table to the server. | ||||||
|---|---|---|---|---|---|---|---|
Parameters |
| ||||||
Output |
| ||||||
Returns | The length of the name. |
short QueryNumSaveFormats(HANDLE hTable)
Function | Get the total number of formats the user nominated this table to be saved to. | ||
|---|---|---|---|
Parameters |
| ||
Returns | The number of save formats. |
short QuerySaveFormatName(HANDLE hTable, short FormatNo, LPSTR NameBuff, short LenBuff)
Function | Get the name of the particular format the user nominated this table to be saved to. | ||||||||
|---|---|---|---|---|---|---|---|---|---|
Parameters |
| ||||||||
Output |
| ||||||||
Returns | The length of the name. |
short QueryStartFormatTimeStamp(HANDLE hTable, short FormatNo, LPSTR TimeStampBuff, short LenBuff)
Function | Get the timestamp created when SuperCROSS began saving the file in the specified format. For the format of the timestamp see | ||||||||
|---|---|---|---|---|---|---|---|---|---|
Parameters |
| ||||||||
Output |
| ||||||||
Returns | The number of characters used by the timestamp string. |
short QueryEndFormatTimeStamp(HANDLE hTable, short FormatNo, LPSTR TimeStampBuff, short LenBuff)
Function | Get the timestamp created when we finished saving the file in the specified format. For the format of the timestamp see | ||||||||
|---|---|---|---|---|---|---|---|---|---|
Parameters |
| ||||||||
Output |
| ||||||||
Returns | The number of characters used by the timestamp string. |
short QueryLogFileName(HANDLE hTable, LPSTR NameBuff, short LenBuff)
Function | Gets the Log File name for the Server Job Log | ||||||
|---|---|---|---|---|---|---|---|
Parameters |
| ||||||
Output |
| ||||||
Returns | The number of characters returned. |
BOOL QueryTableHasSummationFields(HANDLE hTable)
Function | Does this table have any summation fields specified? | ||
|---|---|---|---|
Parameters |
| ||
Returns | Whether or not this table has any summation fields specified.
|
long QueryAutoAxisTotalItem(HANDLE hTable, AxisType axis)
Function | Get the axis index of the auto axis-total item. | ||||
|---|---|---|---|---|---|
Parameters |
| ||||
Returns | The axis index of the auto axis-total item or -1 if there is no axis item. This function is guaranteed to return |
AlignmentSettings QueryAlignmentSettings(HANDLE hTable)
Function | Get the table alignment settings. | ||
|---|---|---|---|
Parameters |
| ||
Returns | A structure filled with the alignment information for the table's header, footer, rows, columns and wafers, and also the vertical alignment of the row. Possible horizontal settings are: left, right or center, and possible vertical settings are: top, bottom or center. |
PrintSettings QueryPrintSettings(HANDLE hTable)
Function | Get the table print settings. | ||
|---|---|---|---|
Parameters |
| ||
Returns | A structure filled with the print settings, including the horizontal alignment of the page numbers on the page (possible values: left, right or center) as well as the margin (top or bottom). Also specifies whether the table is to be centred on the page. |
TextTablePrefs QueryTablePreferences(HANDLE hTable, TextTablePrefs * Preferences)
Function | Fills the table preference structure with the table's current preferences as set in the table preferences dialog. | ||||
|---|---|---|---|---|---|
Parameters |
| ||||
Output |
| ||||
Returns | TRUE if the returned structure is valid, FALSE otherwise. |
short QueryAutoAxisValue(HANDLE hTable, AxisType Axis)
Function | Get the grand auto axis value for the given axis. | ||||
|---|---|---|---|---|---|
Parameters |
| ||||
Returns | The grand auto axis value for the given axis. |
void * QuerySortInformation(HANDLE hTable)
Function | Get a pointer to the sorting information structure. | ||
|---|---|---|---|
Parameters |
| ||
Returns | A void pointer to the sorting information. |
long QueryDatabaseMetaInfo(HANDLE hTable,MetaDataInfoT *MetaDataInfo)
Function | Retrieve metadata info attached to this database. | ||||
|---|---|---|---|---|---|
Parameters |
| ||||
Output |
| ||||
Returns | Size in bytes of the MetaDataInfo->Info string:
If 0 is returned, it is probable the text MetaData is a link; check MetaDataInfo>Type to confirm. |
long QueryFieldMetaInfo(HANDLE hTable,short FieldNum,short RecodeNum,MetaDataInfoT *MetaDataInfo)
Function | Retrieve metadata info attached to this field. | ||||||||
|---|---|---|---|---|---|---|---|---|---|
Parameters |
| ||||||||
Output |
| ||||||||
Returns | Size in bytes of the MetaDataInfo->Info string:
If 0 is returned, it is probable the text MetaData is a link; check MetaDataInfo>Type to confirm. |
long QueryValueMetaInfo(HANDLE hTable,short FieldNum, short RecodeNum, long ValueNum, MetaDataInfoT *MetaDataInfo)
Function | Retrieve metadata info attached to this value. | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Parameters |
| ||||||||||
Output |
| ||||||||||
Returns | Size in bytes of the MetaDataInfo->Info string:
If 0 is returned, it is probable the text MetaData is a link; check MetaDataInfo>Type to confirm. |
BOOL QueryFieldHasValueMetaInfo(HANDLE hTable, short FieldNum, short RecodeNum)
Function | Returns whether the requested field has metadata info. | ||||||
|---|---|---|---|---|---|---|---|
Parameters |
| ||||||
Returns | TRUE if the requested field has metadata info for at least one of its values, FALSE if none of its values have any metadata info. |
int QueryHiddenAxisIndices(HANDLE hTable, AxisType Axis, int * IndicesBuff, int BuffSize)
Function | Fills a buffer with the indices of all the hidden axis items. | ||||||||
|---|---|---|---|---|---|---|---|---|---|
Parameters |
| ||||||||
Output |
| ||||||||
Returns | The number of hidden axis items. Any axis derivations that have been hidden will not be identified with this function (because they have been removed entirely from the cross tabulated results). Only items considered to be natural at the axis level will be listed. |
int QueryAxisDerivIndices(HANDLE hTable, AxisType Axis, int * IndicesBuff, int BuffSize)
Function | Fills a buffer with the indices for all the axis derivations in a given axis. | ||||||||
|---|---|---|---|---|---|---|---|---|---|
Parameters |
| ||||||||
Output |
| ||||||||
Returns | The number of axis derivations in the axis. |
BOOL WriteOutTablesUDFs(HANDLE hTable, LPSTR FilePath)
Function | Writes out all the User Defined Fields (UDFs) in the table to the specified file. These UDFs are written out in a textual format and appended to the end of the file. | ||||
|---|---|---|---|---|---|
Parameters |
| ||||
Output | The file with the textual UDFs written to it. | ||||
Returns | Whether the save process was successful. |
short QueryTableTitleTemplate(HANDLE hTable, char TitleBuffer, short BufferLen)*
Function | Get the template for the table title that SuperCROSS uses to construct the table title. | ||||||
|---|---|---|---|---|---|---|---|
Parameters |
| ||||||
Output |
| ||||||
Returns | The length of the template string. |
short QueryTableFooterTemplate(HANDLE hTable, char * FooterBuffer, short BufferLen)
Function | Get the template for the table footer that SuperCROSS uses to construct the table footer. | ||||||
|---|---|---|---|---|---|---|---|
Parameters |
| ||||||
Output |
| ||||||
Returns | The length of the template string. |
short QueryLargeAxisMode(HANDLE hTable, AxisType Axis)
Function | Query which large axis mode the axis is in. | ||||
|---|---|---|---|---|---|
Parameters |
| ||||
Returns | The large axis mode of the axis:
|
short QueryAutoAxisTotalName(HANDLE hTable, AxisType axis, char Name, short BufferLen)*
Function | Query the name for the auto axis total for the particular axis (row, column or wafer). | ||||||||
|---|---|---|---|---|---|---|---|---|---|
Parameters |
| ||||||||
Output |
| ||||||||
Returns | The length of the |
int DisplayMessage(HANDLE hTable, LPCTSTR message, LPCTSTR caption, UINT style, UINT defret)
Function | Register a message to the user, displays or logs. | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Parameters |
| ||||||||||
Returns | Response of user. |
DerivProperties QueryDerivationPropertiesField(HANDLE hTable, short FieldNum, long EntryNum)
Function | Get the properties for a field derivation. | ||||||
|---|---|---|---|---|---|---|---|
Parameters |
| ||||||
Returns | A structure containing field derivation properties. |
short QueryNameNaturalValueEx(HANDLE hTable, short FieldNum, long ValueNum, LPSTR NameBuff, short LenBuff, DWORD Flags, char EscChar)*
Function | This name is the name that is displayed on the table, providing the user did not select Codes in the Define Recode dialog. This name is a text string which may contain spaces. This function applies to a specific point in a field as displayed, not a natural value. | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Parameters |
| ||||||||||||||||||||
Output |
| ||||||||||||||||||||
Returns | The length of the name. |
long QueryAxisMap(HANDLE hTable, AxisType Axis, long *AxisMap, long MaxItems)
Function | Get an axis map for a particular axis in the table. | ||||||||
|---|---|---|---|---|---|---|---|---|---|
Parameters |
| ||||||||
Output |
| ||||||||
Returns | The total number of items in the mapping. |
BOOL QueryAutoZeroSuppress(HANDLE hTable, AxisType Axis)
Function | Query if the auto zero suppression is set for a particular axis in the table. | ||||
|---|---|---|---|---|---|
Parameters |
| ||||
Returns | TRUE if the auto zero suppression is set for the specified axis, FALSE otherwise. |
BOOL QueryXtabulated(HANDLE hTable)
Function | Query if the table has already been cross tabulated. | ||
|---|---|---|---|
Parameters |
| ||
Returns | TRUE if the table has already been cross tabulated, FALSE otherwise. |
long QueryFieldMap(HANDLE hTable, long FieldNum, long *FieldMap, long MaxItems)
Function | Get a field map for a particular axis in the table. | ||||||||
|---|---|---|---|---|---|---|---|---|---|
Parameters |
| ||||||||
Output |
| ||||||||
Returns | The total number of items in the mapping. |
short QueryNameValueEx(HANDLE hTable, short FieldNum, long ValueNum, LPSTR NameBuff, short LenBuff, DWORD Flags, char EscChar)*
Function | Get the name of a particular entry in the axis. | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Parameters |
| ||||||||||||||||||||
Returns | The length of the name of the entry at the specified point in the dimension. |
HANDLE QueryDatastoreHandle(HANDLE hTable)
Function | Get the SuperCROSS Datastore Handle. | ||
|---|---|---|---|
Parameters |
| ||
Returns | The SuperCROSS Datastore Handle. |
void QueryFieldSequence(HANDLE hTable, short far *Sequence)
Function | Get the actual sequence in which the fields appear in the table. | ||||
|---|---|---|---|---|---|
Parameters |
| ||||
Output |
|
double ApplyRounding(double value, long seed, ConfidentialMethodtype Method)
Function | Apply a random rounding to the given value cell according to the specified confidentiality method. | ||||||
|---|---|---|---|---|---|---|---|
Parameters |
| ||||||
Returns | The new value after it has been rounded. |
ConfidentialMethodtype QueryRoundingMethod(HANDLE hTable)
Function | Get the rounding method associated with the database. | ||
|---|---|---|---|
Parameters |
| ||
Returns | The rounding method associated with the database. Possible return values are:
|
BOOL QueryFieldHasItemsFromDifferentLevels(HANDLE hTable, long FieldNum)
Function | Query if the field has items from different levels of the hierarchy. | ||||
|---|---|---|---|---|---|
Parameters |
| ||||
Returns | TRUE if the field has items from different levels in the hierarchy, FALSE otherwise. |
short QueryTableAnnexFileName(HANDLE hTable, LPSTR PathBuff, short LenBuff)
Function | Query the table annex filename associated with this table. | ||||||
|---|---|---|---|---|---|---|---|
Parameters |
| ||||||
Output |
| ||||||
Returns | The length of the complete path to the annex file. |
HANDLE QueryConfidDatastoreHandle(HANDLE hTable)
Function | Get the SuperCROSS Confidentiality Datastore Handle. | ||
|---|---|---|---|
Parameters |
| ||
Returns | The SuperCROSS Confidentiality Datastore Handle. |
BOOL QueryCellIndexConfidential(HANDLE hTable, long *Index)
Function | Query if the particular cell in the table is confidential (indexed by field value). | ||||
|---|---|---|---|---|---|
Parameters |
| ||||
Returns | TRUE if is confidential, FALSE if not. This function accesses the data by field value; it does not access the table as displayed. Axis derivations and arrangements are not accessible using this function. |
short QuerycellAnnotationFootnote(HANDLE hTable, short ANum, LPSTR TextBuff, short LenBuff)
Function | Get the annotation footnote text of a particular annotation. | ||||||||
|---|---|---|---|---|---|---|---|---|---|
Parameters |
| ||||||||
Output |
| ||||||||
Returns | Length of the annotation footnote text. This function copies the footnote for the nominated annotation into This function will truncate the text to the number of characters indicated by If |
short QueryStandardAnnotationText(HANDLE hTable, short ANum, LPSTR TextBuff, short LenBuff)
Function | Get the annotation text of a standard annotation. | ||||||||
|---|---|---|---|---|---|---|---|---|---|
Parameters |
| ||||||||
Output |
| ||||||||
Returns | Length of the If |
short QueryStandardAnnotationFootnote(HANDLE hTable, short ANum, LPSTR TextBuff, short LenBuff)
Function | Get the annotation footnote text of a standard annotation. | ||||||||
|---|---|---|---|---|---|---|---|---|---|
Parameters |
| ||||||||
Output |
| ||||||||
Returns | Length of the If |
BOOL QueryIsStandardAnnotationOn(HANDLE hTable, short AType)
Function | Query if the particular standard annotation is turned on. | ||||
|---|---|---|---|---|---|
Parameters |
| ||||
Returns | TRUE if it is on, FALSE if not. |
short QueryFirstAnnotationFieldIndex(HANDLE hTable, long far *Index, long far annotationNumbers)*
Function | Gets the field index of the first annotated cell and what annotations are present in it. | ||||
|---|---|---|---|---|---|
Parameters |
| ||||
Output |
| ||||
Returns | Returns the number of annotations in the first annotated cell or 0 if there are no annotated cells. If this function is called with |
short QueryNextAnnotationFieldIndex(HANDLE hTable, long far *Index, long far annotationNumber)*
Function | Gets the field index of the next annotated cell and what annotations are present in it. The first annotated field index should be found using the function | ||||||
|---|---|---|---|---|---|---|---|
Parameters |
| ||||||
Output |
| ||||||
Returns | Returns the number of annotations that are in the cell specified by the return values in Index or 0 if there are no more annotated cells. If this function is called with |
BOOL QueryIsCompulsoryField(HANDLE hTable, long FieldNum)
Function | Query if the field has been declared compulsory. Need only for added functionality in ToSCB, when building an SRD file. | ||||
|---|---|---|---|---|---|
Parameters |
| ||||
Returns | TRUE if the field is compulsory, FALSE otherwise. |
short QueryConfidentialString(HANDLE hTable, LPSTR NameBuff, short LenBuff)
Function | Get the confidential string used in the table. | ||||||
|---|---|---|---|---|---|---|---|
Parameters |
| ||||||
Output |
| ||||||
Returns | The length of the confidential string. |
short QueryDefaultTXDFile(HANDLE hTable, LPSTR NameBuff, short LenBuff)
Function | Get the name of the default TXD file (complete path) if one exists. | ||||||
|---|---|---|---|---|---|---|---|
Parameters |
| ||||||
Output |
| ||||||
Returns | The length of TXD file name. |
short QueryNumDecPts(HANDLE hTable, short FieldNum, long ValueNum)
Function | Get the number of decimal places to be used for a particular summation field. | ||||||
|---|---|---|---|---|---|---|---|
Parameters |
| ||||||
Returns | The number of decimal places to be used for the specified summation option. |
BOOL QueryCanSumMeasure(HANDLE hTable, short FieldNum, long ValueNum)
Function | Query if a particular summation field (measure) is summable. | ||||||
|---|---|---|---|---|---|---|---|
Parameters |
| ||||||
Returns | TRUE if the specified summation field is summable, FALSE otherwise. |
BOOL QueryCellAxisConfidential(HANDLE hTable, long Index[3])
Function | Query if the particular cell in the table is confidential (indexed by axis value). | ||||
|---|---|---|---|---|---|
Parameters |
| ||||
Returns | TRUE if is confidential, FALSE if not. This function accesses the table as displayed. |
short QueryPowerTenAxis(HANDLE hTable, AxisType Axis, long EntryNum)
Function | Query the power of ten for a particular item in an axis. | ||||||
|---|---|---|---|---|---|---|---|
Parameters |
| ||||||
Returns | Number of power of ten for an axis position. |
short QueryNumDecimalPlacesAxis(HANDLE hTable, AxisType Axis, long EntryNum)
Function | Query the decimal places for a particular item in an axis. | ||||||
|---|---|---|---|---|---|---|---|
Parameters |
| ||||||
Returns | Number of decimal places for an axis position. |
BOOL QueryIsLastItemAxisReferenceItem(HANDLE hTable, AxisType Axis)
Function | Query if the last item in the axis is the axis reference item. | ||||
|---|---|---|---|---|---|
Parameters |
| ||||
Returns | TRUE if it is, FALSE otherwise. |
long QueryAxisReferenceItemGet(HANDLE hTable, AxisType Axis)
Function | Query the index of the item in the axis that is set as the reference item. | ||||
|---|---|---|---|---|---|
Parameters |
| ||||
Returns | Index for the axis reference item. |
long QueryNumTopValue(HANDLE hTable, long FieldNum)
Function | Query number of top values from the database. | ||||
|---|---|---|---|---|---|
Parameters |
| ||||
Returns | The number of top values. |
long QueryTopValues(HANDLE hTable, long FieldNum, long *items)
Function | Query top values from the database. | ||||||
|---|---|---|---|---|---|---|---|
Parameters |
| ||||||
Output |
| ||||||
Returns | The number of top values. |
long QueryNumSubValue(HANDLE hTable, long FieldNum, long itemno)
Function | Query the number of sub values from the database. | ||||||
|---|---|---|---|---|---|---|---|
Parameters |
| ||||||
Returns | The number of sub values. |
long QuerySubValues(HANDLE hTable, long FieldNum, long itemno, long *list)
Function | Query sub values from the database. | ||||||||
|---|---|---|---|---|---|---|---|---|---|
Parameters |
| ||||||||
Output |
| ||||||||
Returns | The number of sub values. |
short QueryCodeValueDB(HANDLE hTable, short FieldNum, long value, LPSTR NameBuff, short LenBuff)
Function | Query value code from the database. | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Parameters |
| ||||||||||
Output |
| ||||||||||
Returns | The length of the databases code. |
short QueryNameValueDB(HANDLE hTable, short FieldNum, long value, LPSTR NameBuff, short LenBuff)
Function | Query value name from database. | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Parameters |
| ||||||||||
Output |
| ||||||||||
Returns | The length of the database name. |
short QueryNameAxisIncudeHidden(HANDLE hTable, AxisType Axis, long EntryNum, LPSTR NameBuff, short LenBuff)
Function | Get the name of a particular entry in the axis as well as the hidden entry. | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Parameters |
| ||||||||||
Output |
| ||||||||||
Returns | The length of the name of the entry at the specified point in the axis. The name of an entry is obtained in one of two ways: if the entry is an axis derivation, then the name is the name of that axis derivation; if the entry is not an axis derivation, then the name is the concatenation of the names of the component entries for each field. If this name is composed of entires from different fields, they are separated by a comma followed by a blank space. |
long QuerySizeFieldIncludeHidden(HANDLE hTable, short FieldNum)
Function | Get the number of entries in the nominated field. This can be different from the number of natural values in the field if the user has defined one or more field derivations. | ||||
|---|---|---|---|---|---|
Parameters |
| ||||
Returns | The number of entries in the field. |
short QueryNameValueIncludeHidden(HANDLE hTable, short FieldNum, long ValueNum, LPSTR NameBuff, short LenBuff)
Function | Get the name for a particular value in a particular field at a certain position including items that are hidden. | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Parameters |
| ||||||||||
Output |
| ||||||||||
Returns | The length of the name of a value in a field. |
BOOL QueryCanSumMeasureIncludeHidden(HANDLE hTable, short FieldNum, long ValueNum)
Function | Query if a particular summation field (measure) is summable, including hidden field items. | ||||||
|---|---|---|---|---|---|---|---|
Parameters |
| ||||||
Returns | TRUE if the specified summation field is summable, FALSE otherwise. |
short QueryTranslatedName(HANDLE hTable, LPSTR NameBuff, short LenBuff)
Function | This retrieves the name keyword of the item from the metastore and translates the keyword into the appropriate multilingual string. | ||||||
|---|---|---|---|---|---|---|---|
Parameters |
| ||||||
Output |
| ||||||
Returns | The length of the translated name. |
long QueryBlockpercentInfo(HANDLE hTable, int iID, void pBuffer, int iBufferSizer)*
Function | Retrieve information related to blockpercentage. | ||||||||
|---|---|---|---|---|---|---|---|---|---|
Parameters |
| ||||||||
Output |
| ||||||||
Returns | The value specified by |
BOOL QueryFieldRecodeFactTable(HANDLE hTable, long fieldno, long RecodeNum, char *name, short namelimit)
Function | Returns the name of the specified field recodes fact table. | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Parameters |
| ||||||||||
Output |
| ||||||||||
Returns | TRUE for success or FALSE for failure. |
long QueryContributorsCellField(HANDLE hTable, long *Index)
Function | Query the number of contributors to a particular cell in the table (indexed by field value). | ||||
|---|---|---|---|---|---|
Parameters |
| ||||
Returns | The number of contributors to the specified cell or -1 on failure. This will return -1 if used in a table where the number of contributors is not used for any confid methods in the table because in this case the |
long QueryContributorsCellAxis(HANDLE hTable, long Index[3])
Function | Query the number of contributors to a partcular cell in the table. | ||||
|---|---|---|---|---|---|
Parameters |
| ||||
Returns | The number of contributors to the specified cell or -1 on failure. This will return -1 if used in a table where the number of contributors is not used for any confid methods in the table because in this case the |
long QueryNumberOfTopContributionsStored(HANDLE hTable)
Function | Query the number of contributors stored for the table. | ||
|---|---|---|---|
Parameters |
| ||
Returns | The number of contributors stored for the table or -1 on failure. |
BOOL QueryTopContributionsCellField(HANDLE hTable, long *Index, double *contributions)
Function | Output the values of the top contributors stored to the contributions array for a particular cell in the table (indexed by field value). The number of records written to the contributions buffer is returned by | ||||||
|---|---|---|---|---|---|---|---|
Parameters |
| ||||||
Output |
| ||||||
Returns | TRUE on success FALSE on failure. The values of the top contributors for the specified cell are copied into the provided contributions buffer. The caller must allocate and free the contributions buffer. If the number of contributors to the specified cell are less than or equal to the number of values to be stored for the rule, the results will be zero. |
BOOL QueryTopContributionsCellAxis(HANDLE hTable, long Index[3], double *contributions)
Function | Output the values of the top contributors stored to the contributions array for a particular cell in the table (indexed by axis index). The number of records written to the contributions buffer is returned by | ||||||
|---|---|---|---|---|---|---|---|
Parameters |
| ||||||
Output |
| ||||||
Returns | TRUE on success FALSE on failure. The values of the top contributors for the specified cell are copied into the provided contributions buffer. The caller must allocate and free the contributions buffer. If the number of contributors to the cell specified are less than or equal to the number of values to be stored for the rule, the results will be zero. |
long QueryNumColumnWidth(HANDLE hTable, long *ColumnIndex)
Function | Get the number of the manual column width. | ||
|---|---|---|---|
Parameters |
| ||
Output |
| ||
Returns | The number of the manual column width. |
long QueryColumnWidth(HANDLE hTable, long Column)
Function | Get the manual column width. | ||||
|---|---|---|---|---|---|
Parameters |
| ||||
Returns | The width of the column. |
long QueryFieldReferenceItem(HANDLE hTable, short FieldNum, LPSTR NameBuff, short LenBuff, DWORD Flags, char EscChar)*
Function | Get the length of the name of a reference item in a field. | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Parameters |
| ||||||||||||||||||||
Output |
| ||||||||||||||||||||
Returns | The length of the name of a reference item in a field. |
BOOL SaveConfidentialSummationRecode(HANDLE hTable, LPSTR filename)
Function | This function covers an odd case where the user has confidentiality applied to the default count summation but has not added this to the table. Confidentiality is still applied but the recode is not saved. | ||||
|---|---|---|---|---|---|
Parameters |
| ||||
Returns | Returns true on success, false on failure. |
long QueryAxisManualDecimal(HANDLE hTable, AxisType Axis, long *Index, short *Value)
Function | Get the number of the manual decimal in the axis. | ||||
|---|---|---|---|---|---|
Parameters |
| ||||
Output |
| ||||
Returns | The number of the manual decimal in the axis. |
long QueryAxisManualPowerTen(HANDLE hTable, AxisType Axis, long *Index, short *Value)
Function | Get the number of the manual power of ten in the axis. | ||||
|---|---|---|---|---|---|
Parameters |
| ||||
Output |
| ||||
Returns | The number of the manual power of ten in the axis. |
BOOL QueryValueIndexAxis(HANDLE hTable, short FieldNum, long AxisNum, long *ValueNum)
Function | Get the field index of a given axis item. If the | ||||||||
|---|---|---|---|---|---|---|---|---|---|
Parameters |
| ||||||||
Output |
| ||||||||
Returns | TRUE if the next item on the axis is from a different field to the current item (for concatenated fields only). |
short QueryValueNameField(HANDLE hTable, short FieldNum, long ValueNum, LPSTR NameBuff, short LenBuff)
Function | Get the name of a particular field given an item in a field. | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Parameters |
| ||||||||||
Output |
| ||||||||||
Returns | The length of the name of the field. This name is the name that is displayed in the spanner heading. The name is a text string that may contain spaces. |
short QueryNumOfFontsUsed(HANDLE hTable)
Function | Return the number of fonts used by the table. | ||
|---|---|---|---|
Parameters |
| ||
Returns | The number of fonts used by the table. |
LOGFONT QueryGetFont(HANDLE hTable, int fontIndex)
Function | Return the font structure of a certain font from used by the table. | ||||
|---|---|---|---|---|---|
Parameters |
| ||||
Returns | The font structure LOGFONT of the requested font. The index order is the same as the order in which the fonts are displayed in the Font menu. |
int QueryGetFieldLabelFont(HANDLE hTable, AxisType axistype, int fieldNum, int valueno)
Function | Return the font of a specified field entry. | ||||||||
|---|---|---|---|---|---|---|---|---|---|
Parameters |
| ||||||||
Returns | The font index of the requested field entry. The font index returned corresponds to the font indexes of the table. |
int QueryGetFieldValueFont(HANDLE hTable, int rowFieldNo, int colFieldNo, int rowIndex, int colIndex)
Function | Return the font of a specified data cell within the table. | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Parameters |
| ||||||||||
Returns | The font index of the requested data cell entry. The font of a data cell in a table is determined by the fonts of the data cell's row and column. The font index returned corresponds to the font indexes of the table. |
Followtype QueryGetAllFonts(HANDLE hTable, AxisType axistype, short **fontsInAxis, int axisSize, BOOL *foundFont, BOOL *foundFontForData)
Function | Return all the fonts in the axis. | ||||||
|---|---|---|---|---|---|---|---|
Parameters |
| ||||||
Output |
| ||||||
Returns | The Followtype definition for the data fields in the table. The Followtype indicates what font will be used in the data cells (column, row, priority, etc...) |
short QueryDefaultNumDecimalPts(HANDLE hTable)
Function | Return the default number of decimal points in the table. | ||
|---|---|---|---|
Parameters |
| ||
Returns | The default number of decimal points in the table. |
short QueryRowLabelColumnWidth(HANDLE hTable, short *leftWidth, short *naturalLeftWidth, short *oldLeftWidth, short *defaultWidth)
Function | Return the column width information of the row label column. | ||||||||
|---|---|---|---|---|---|---|---|---|---|
Parameters |
| ||||||||
Output |
| ||||||||
Returns | The row label column width. |
void QueryGetAllFontStructs(HANDLE hTable, LOGFONT *lfs)
Function | Get an array of all the LOGFONT structures for the table. | ||||
|---|---|---|---|---|---|
Parameters |
| ||||
Returns | The LOGFONT structures. |
void ProgressMessage(HWND hWnd, LPSTR message)
Function | Creates a progress bar window with the supplied message shown. | ||||
|---|---|---|---|---|---|
Parameters |
|
void ProgressBar(HWND hWnd, long current, long maximum)
Function | Advance the progress bar. | ||||||
|---|---|---|---|---|---|---|---|
Parameters |
|
void EndProgress(HWND hWnd)
Function | Close the progress window | ||
|---|---|---|---|
Parameters |
|
void QueryTranslatedKeyword(HANDLE hTable, LPSTR NameBuff, short LenBuff)
Function | Translates keyword identifiers (##keyword.) to their display names. | ||||||
|---|---|---|---|---|---|---|---|
Parameters |
| ||||||
Output |
| ||||||
Returns | The length of the translated name. |
BOOL QueryAddAnnotationToFieldValue(HWND hWnd, HANDLE hTable, LPSTR NameBuff, short LenBuff, short FieldNum, long ValueNum)
Function | Adds field annotations to display names. | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Parameters |
| ||||||||||||
Output |
| ||||||||||||
Returns | TRUE if the annotation assignment was successful. |
void QueryAddBackendAnnotationToNumber(HWND hWnd, HANDLE hTable, LPSTR NameBuff, short LenBuff, long far AxisIndex[3])
Function | Retrieves backend cell annotations. | ||||||||
|---|---|---|---|---|---|---|---|---|---|
Parameters |
| ||||||||
Output |
|
short QuerynoCellManualAnnotations(HANDLE hTable, short annType)
Function | Determine the number of cell manual annotations for the table. | ||||
|---|---|---|---|---|---|
Parameters |
| ||||
Returns | The number of cell manual annotations defined for the table. |
double ApplyCellRounding(HANDLE hTable, long access)
Function | Apply rounding to the specified cell. | ||||
|---|---|---|---|---|---|
Parameters |
| ||||
Returns | The new rounded value. |
short QueryMetadataLanguage(HANDLE hTable, LPSTR NameBuff, short LenBuff)
Function | Retrieve the table language. | ||||||
|---|---|---|---|---|---|---|---|
Parameters |
| ||||||
Output |
| ||||||
Returns | The length of the table language name. |
short QueryReportCode(HANDLE hTable, LPSTR NameBuff, short LenBuff)
Function | Retrieve the report code. | ||||||
|---|---|---|---|---|---|---|---|
Parameters |
| ||||||
Output |
| ||||||
Returns | The length of the report code. |
long QuerySelectedAxisInfo(HANDLE hTable, int iAxisID, long plList, int iTotal)*
Function | Get information on the current table selection. | ||||||||
|---|---|---|---|---|---|---|---|---|---|
Parameters |
| ||||||||
Output |
| ||||||||
Returns | The number of elements written to |
BatchPrintSettings QueryBatchPrintSettings(HANDLE hTable)
Function | Retrieve batch print settings. | ||
|---|---|---|---|
Parameters |
| ||
Returns | A |
BOOL QueryIsSXV4DB(HANDLE hTable)
Function | Check whether the current database is an SXV4 database or not. | ||
|---|---|---|---|
Parameters |
| ||
Returns | TRUE if the database is SXV4, else FALSE. |
BOOL SaveAsStructuralXML(HANDLE hTable, LPSTR filename)
Function | Save the table as structural XML. | ||||
|---|---|---|---|---|---|
Parameters |
| ||||
Returns | TRUE or FALSE, depending on whether save was successful. |
BOOL SaveAsCALS(HANDLE hTable, LPSTR filename)
Function | Save the table in XML - CAL model format. | ||||
|---|---|---|---|---|---|
Parameters |
| ||||
Returns | TRUE or FALSE, depending on whether the save was successful. |
short QueryNameAxisForSortRange(HANDLE hTable, AxisType Axis, long EntryNum, LPSTR NameBuff, short LenBuff, DWORD Flags, char EscChar, char * Seperator)*
Function | Get the name of a particular entry in the axis. This function is similar to | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Parameters |
| ||||||||||||||||||||||||
Output |
| ||||||||||||||||||||||||
Returns | The length of the name of the entry at the specified point in the axis The name of an entry is obtained in one of two ways:
If this name is composed from different fields, the entries are separated by newline characters. This function is an extension in that there are a series of flags that can be used to define how the string is formatted. |
char QueryDecimalSymbol(HANDLE hTable)
Function | Get the multilingual version of the decimal symbol used on the table. | ||
|---|---|---|---|
Parameters |
| ||
Returns | The decimal point character. |
char QueryThousandsSeparatorSymbol(HANDLE hTable)
Function | Get the multilingual version of the thousands separator symbol used in the table. | ||
|---|---|---|---|
Parameters |
| ||
Returns | The thousands separator character. |
int QueryTableLanguages(HANDLE hTable, char **names, short length)
Function | Get the list of available table languages for a multilingual database. If the names array is not big enough to hold all the language codes, no information is stored in it. | ||||||
|---|---|---|---|---|---|---|---|
Parameters |
| ||||||
Output |
| ||||||
Returns | The number of table languages available, or:
|
BOOL SetTableLanguage(HANDLE hTable, char *lang)
Function | Set the table language for a multilingual database. This changes the text retrieved when text is translated with | ||||
|---|---|---|---|---|---|
Parameters |
| ||||
Returns | TRUE if the language change was successful, else FALSE. |
long QueryParentValue(HANDLE hTable, long fieldno, long itemno)
Function | Get the field ID of the parent value in the supplied hierarchical field. You can use | ||||||
|---|---|---|---|---|---|---|---|
Parameters |
| ||||||
Returns | The field ID of the parent field. |
BOOL QuerySuperCROSSVersion(HANDLE hTable, char *buffer, int length)
Function | Get the SuperCROSS version number. | ||||||
|---|---|---|---|---|---|---|---|
Parameters |
| ||||||
Output |
| ||||||
Returns | The length on the version number string. |
long QueryAllAncestorValues(HANDLE hTable, long fieldno, long itemno, long *ancestors, long ancestorSize)
Function | Get the field IDs of all the parent values in the supplied hierachical field. You can use If ancestors is NULL or | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Parameters |
| ||||||||||
Output |
| ||||||||||
Returns | The number of ancestors. |