Page 1 of 1
Ttabctrl class add() error
Posted: Wed Jan 09, 2008 2:53 am
by ShumingWang
Antonio,
Ttabcltrl class , add() method not add to data aprompts.
Best regard!
Shuming Wang
Posted: Wed Jan 09, 2008 7:44 am
by Silvio
wich version you have ?
On 7.12 run ok
Posted: Thu Jan 10, 2008 12:37 am
by ShumingWang
Silvio,
harbour 1.1 rc +fwh712
otabs:=TTabControl():Redefine( 200, oDlg )
otabs:baction:={||plan0105(otabs:noption)}
activate dialog odlg on init a1()
return
function a1()
otabs:add("aaa")
otabs:add("bbb")
?valtype(otabs:aprompts)
// nil
return
Shuming Wang
Posted: Thu Jan 10, 2008 1:03 am
by Silvio
can you send me a mini test please
Posted: Fri Jan 11, 2008 8:22 am
by ShumingWang
Silvio,
You can see the prompts on dialog work, but you can't get ?(otabs:aprompts[2])
Regards !
Shuming Wang
Posted: Fri Jan 11, 2008 8:35 am
by James Bott
If you look at the Add method, the new prompt, cPrompt, is being added to the Windows tab control, but not to the aPrompts array of the FW Tab object. Apparently, aPrompts is not being used anywhere, so it doesn't really matter that it is not being updated in the Add() method.
James