Set the current layout.
The function sets the current layout object.
The function returns RTNORM if successful; otherwise, it returns RTERROR.
sds_name entname1;
sds_name_clear(entname1);
// Finds the Model tab and sets as the current tab
if (sds_layoutsearch("Model", entname1) == RTNORM)
{
// Now set Model as the current tab
if (sds_layoutsetcur(entname1)
!= RTNORM)
{
sds_printf("\nError: Could not set the current tab.");
}
}
// Finds Layout1 tab as sets as the current tab
if (sds_layoutsearch("Layout1", entname1) == RTNORM)
{
// Now set Layout1 as the current tab
if (sds_layoutsetcur(entname1)
!= RTNORM)
{
sds_printf("\nError: Could not set the current tab.");
}
}