Ttabctrl class add() error

Post Reply
ShumingWang
Posts: 454
Joined: Sun Oct 30, 2005 6:37 am
Location: Guangzhou(Canton),China

Ttabctrl class add() error

Post by ShumingWang »

Antonio,
Ttabcltrl class , add() method not add to data aprompts.
Best regard!
Shuming Wang
User avatar
Silvio
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Post by Silvio »

wich version you have ?

On 7.12 run ok
Best Regards, Saludos

Falconi Silvio
ShumingWang
Posts: 454
Joined: Sun Oct 30, 2005 6:37 am
Location: Guangzhou(Canton),China

Post 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
User avatar
Silvio
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Post by Silvio »

can you send me a mini test please
Best Regards, Saludos

Falconi Silvio
ShumingWang
Posts: 454
Joined: Sun Oct 30, 2005 6:37 am
Location: Guangzhou(Canton),China

Post by ShumingWang »

Silvio,
You can see the prompts on dialog work, but you can't get ?(otabs:aprompts[2])

Regards !
Shuming Wang
User avatar
James Bott
Posts: 4654
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA
Contact:

Post 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
Post Reply