|
![]() |
![]() |
version 2003
PA_IsTableVisible (tableNum) → char
Parameter | Type | Description | |
tableNum | short | → | Table number |
Function result | char | ← | 1 if the table is visible, otherwise 0 |
Description
The routine
PA_IsTableVisible
returns 1 if the table number
tableNum
is visible.
Example
Build an array of visible table names.
void BuildVisibleTableNames (PA_Variable *aNames)
{
char name[32]; // USING C STRINGS IN THIS EXAMPLE
register long i, count;
// Do nothing if the array has a bad type
if(theArray->fType != eVK_ArrayString)
return;
// Resize it
// Preflight to exclude invisibles tables
count = 0;
for(i = 1; i <= PA_CountTables())
{
if(PA_IsTableVisible(i))
count++;
}
PA_SetArrayNbElements(*aNames, count);
// Fill it with table names
count = 1;// starts at 1, we'll later use cout++
for(i = 1; i <= PA_CountTables())
{
if(PA_IsTableVisible(i))
{
PA_GetTableName(i, name);
PA_SetStringInArray(aNames, count++, name);
}
}
}
See Also
No reference.
Error Handling
Use
PA_GetLastError
to see if an error occurred