When I run this code, I get an exception.
Notebook.Pages[CompanyTab].PageVisible := True;
Notebook.PageIndex := CompanyTab;
When I trace this I find: (See my comments below)
procedure TOvcNotebook.SetPageIndex(Value : Integer);
Begin
...
{save previous page index}
OldIdx := FPageIndex;
// This call to IsValid returns true, Value=CompanyTab
if (Value <> FPageIndex) and IsValid(Value) then begin
...
// This call to IsValid returns False, Value=CompanyTab. Somehow the page
visible property changed to false.
if not IsValid(FPageIndex) then
raise EInvalidPageIndex.Create;
end;
I am using D4 Pro, O3.08
Please help.
Will.
I've read your post. This is one that I'll have to pass on to the main
Orpheus engineer when he is back in the office.