Tabs con la mesma Dialog ??

Tabs con la mesma Dialog ??

Postby Ale SB » Wed May 28, 2008 11:52 am

Tengo varias Tabs com la mesma Dialog, :

Code: Select all  Expand view  RUN
REDEFINE PAGES oPags ID 103 OF oDlg ;
             DIALOGS 1010, 1010, 1010, 1010, 1010, 1010, 1010, 1010, 1010, 1010, ;
                           1010, 1010
   
    REDEFINE TABS oTabs ID 102 OF oDlg ;
             PROMPT "**", "A-B", "C-D", "E-F", "G-H", "I-J", "K-L", "M-N", "O-P", ;
                          "Q-R", "S-T", "U-V-W-X-Y-Z" ;
             ACTION { oPags:setoption(oTabs:nOption)}


Para evitar fazer isto :

Code: Select all  Expand view  RUN
oBrw := TXBrowse():New( oPags:aDialogs[ 1 ] )
oBrw := TXBrowse():New( oPags:aDialogs[ 2 ] )
oBrw := TXBrowse():New( oPags:aDialogs[ 3 ] )
.
.
.


Gostaria de algo assim:

Code: Select all  Expand view  RUN
oBrw := TXBrowse():New( oPags:aDialogs[ oTabs:nOption ] )


Es possible ?
Evitando redundancia, ja que sao las mesma dialogs ?

Saludos Ale
aleseribeli@hotmail.com

FwH, Hb Svn, ADS 8.1, ADS 10, Pelles C, FwPPC, MsVc 2008, MsVc 2010
"Conhecimento, você não subtrai quando divide; mas soma e multiplica."
**---Mário Persona---**
User avatar
Ale SB
 
Posts: 248
Joined: Wed Jan 11, 2006 11:30 am
Location: Campo Grande-MS / Brasil

Postby Antonio Linares » Thu May 29, 2008 6:37 pm

Ale,

Puedes usar un bucle for ... next
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42160
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Ale SB » Thu May 29, 2008 7:00 pm

Gracias Maestro,

Resolvido !

Saludos, Ale
aleseribeli@hotmail.com

FwH, Hb Svn, ADS 8.1, ADS 10, Pelles C, FwPPC, MsVc 2008, MsVc 2010
"Conhecimento, você não subtrai quando divide; mas soma e multiplica."
**---Mário Persona---**
User avatar
Ale SB
 
Posts: 248
Joined: Wed Jan 11, 2006 11:30 am
Location: Campo Grande-MS / Brasil


Return to FiveWin para Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 47 guests