Ttabctrl class add() error

Ttabctrl class add() error

Postby ShumingWang » Wed Jan 09, 2008 2:53 am

Antonio,
Ttabcltrl class , add() method not add to data aprompts.
Best regard!
Shuming Wang
ShumingWang
 
Posts: 465
Joined: Sun Oct 30, 2005 6:37 am
Location: Guangzhou(Canton),China

Postby Silvio » Wed Jan 09, 2008 7:44 am

wich version you have ?

On 7.12 run ok
Best Regards, Saludos

Falconi Silvio
User avatar
Silvio
 
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Postby ShumingWang » Thu Jan 10, 2008 12:37 am

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
ShumingWang
 
Posts: 465
Joined: Sun Oct 30, 2005 6:37 am
Location: Guangzhou(Canton),China

Postby Silvio » Thu Jan 10, 2008 1:03 am

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

Falconi Silvio
User avatar
Silvio
 
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Postby ShumingWang » Fri Jan 11, 2008 8:22 am

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

Regards !
Shuming Wang
ShumingWang
 
Posts: 465
Joined: Sun Oct 30, 2005 6:37 am
Location: Guangzhou(Canton),China

Postby James Bott » Fri Jan 11, 2008 8:35 am

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
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 74 guests