plinydogg
10-27-2006, 12:41 AM
Hi people,
I'm back with another newbie question...I do my best to start the title of each thread with "NewB" so that you veterans out there won't think I have a good question and get annoyed when I just have another silly newbie question. :)
Here's my question: I'm trying to add a second tab to a tab control. I consulted the help file entry on the Simplified API and concluded that I was supposed to use
proc Tab_Add(tab$, caption$)
to add a new tab. I went into the Visual Form Builder, selected the tab control, clicked on the "Events" tab, and then double-clicked on the "OnCreate" event. Once opened, I added the following line:
second$ = "captionOfSecondTab"
Tab_Add(myTabControlsHandle$, second$);
The program ran, but the second tab's text looked like empty characters (i.e., squares). I tried using a string literal instead:
Tab_Add(myTabControlsHandle$, "captionOfSecondTab");
but got the same result. What am I doing wrong?
As always, thank you for the help :D
I'm back with another newbie question...I do my best to start the title of each thread with "NewB" so that you veterans out there won't think I have a good question and get annoyed when I just have another silly newbie question. :)
Here's my question: I'm trying to add a second tab to a tab control. I consulted the help file entry on the Simplified API and concluded that I was supposed to use
proc Tab_Add(tab$, caption$)
to add a new tab. I went into the Visual Form Builder, selected the tab control, clicked on the "Events" tab, and then double-clicked on the "OnCreate" event. Once opened, I added the following line:
second$ = "captionOfSecondTab"
Tab_Add(myTabControlsHandle$, second$);
The program ran, but the second tab's text looked like empty characters (i.e., squares). I tried using a string literal instead:
Tab_Add(myTabControlsHandle$, "captionOfSecondTab");
but got the same result. What am I doing wrong?
As always, thank you for the help :D