Search found 134 matches: detached

Return to advanced search

Browsing generally

... ) {|x| IF(Pcount()>0, oBrow:aArray[oBrow:nAt, &(nSize) ] :=x, ; oBrow:aArray[oBrow:nAt, &(nSize) ])} )) NEXT nSize You need to use the detached locals technique, because nSize is called from ithin a code block, the value of nSize at run time will be Len(aSize) + 1 for all columns, certanly ...
by Antonio Linares
Wed Aug 27, 2008 7:35 am
 
Forum: Utilities / Utilidades
Topic: Boris Pekic - NG's archive
Replies: 27
Views: 93864

Arrays

... oLbx:ACOLUMNS[I]:CHEADING := aTmp[1][i] oLbx:SetData(I, FieldWBlock( aTmp[2][i], Select() ) ) ....bla bla bla NEXT aTmp:={} return You need to use detached locals. Also it's better to pass the alias name to Select(), or the progam might end up looking for the field in the wrong table! > FOR ...
by Antonio Linares
Wed Aug 27, 2008 7:32 am
 
Forum: Utilities / Utilidades
Topic: Boris Pekic - NG's archive
Replies: 27
Views: 93864

Tienes que usar lo que se denomina "detached locals":

Local x=1
Do while .not. eof()
obtnF[x]:cCaption:=( familia->texto_tecl )
obtnF[x]:bAction := GenBlock( x )
x++
skip
if x>12
exit
endif
enddo

function GenBlock( x )

return { || msginfo( str (x) ) }
by Antonio Linares
Fri Jan 04, 2008 9:47 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Una sobre bAction
Replies: 1
Views: 532

Asi no lo puedes hacer. Tienes que usar "detached locals": for i:=1 to len(PoBtc) @ lin,col say PoBtc[i] OF oWndp DESIGN PIXEL SIZE 100,20 BORDER PoBtc[i]:bLButtonUp = GenBlock( PoBtc, i ) next ... ...
by Antonio Linares
Wed Dec 12, 2007 7:12 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: BTNBMP design ?
Replies: 14
Views: 2430

Caballero,,, a los años,,, revisa este hilo
http://fivetechsoft.com/forums/viewtopi ... t=detached

Salu2
by Willi Quintana
Wed Sep 05, 2007 11:59 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Macros dentro de tGet():New()
Replies: 1
Views: 822

Jose Luis, Usa "detached locals": local bAction ... For i=1 to Len(aActividad) bAction = GenCodeBlock( aActividad, i ) MENUITEM i18n(aActividad[i]) ACTION Eval( bAction ) Next ... ...
by Antonio Linares
Fri Apr 20, 2007 8:47 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: como saber que elemento de un menu se ha seleccionado
Replies: 10
Views: 2519

Rafa,

En realidad lo que hace Clipper es crear automaticamente las "detached locals", pero eso tiene su punto de riesgo de no saber exactamente lo que está ocurriendo :-)
by Antonio Linares
Fri Dec 01, 2006 1:00 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Esto puede ser un BUG?
Replies: 3
Views: 1239

Re: Esto puede ser un BUG?

Resulta que hay que usar los detached local.... ummm.... eso
pasa por querer seguir usando codigo viejo de clipper....

Porque esto funciona perfectamente en clipper DOS:
@ n,1 get aHurdle[g] picture "9999.99"

pero no con Fivewin/Harbour.

Saludos
Rafa Carmona
by thefull
Fri Dec 01, 2006 12:14 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Esto puede ser un BUG?
Replies: 3
Views: 1239

Silvio, You may have to use "detached locals" for your counters. Because the counter has already been completely through the loop before the dialog gets initialized, the counter is at the maximum value so it is as if it only went through ...
by James Bott
Fri Jul 21, 2006 11:15 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Button and array
Replies: 2
Views: 1016

Joel,

El codeblock te está manteniendo el último valor de i. Tienes que usar lo que se denomina "detached locals":

oDlg:aControls[i]:bAction:= GenBlock( oDlg, i, Self )

...

function GenBlock( oDlg, i, Self )

return {|nId| ::PutVal(oDlg:aControls[i]:cTitle) }
by Antonio Linares
Mon Jan 16, 2006 7:01 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Creando botones desde la Aplicación...
Replies: 2
Views: 1080

Willi,

Prueba así, usando "detached locals":

COLUMN oCol TITLE "" DATA SubStr(Almmas->codcta,1,15)

oCol:aTitle = GetTitle( aCabe, nCont )

...

function GetTitle( aCabe, nCont )

return { || aCabe[ nCont ] }

ó prueba a devolver esto:

return { { || aCabe[ nCont ] } }
by Antonio Linares
Tue Nov 29, 2005 7:57 am
 
Forum: FiveWin para CA-Clipper
Topic: No consigo un "atached"
Replies: 5
Views: 1666

... prueba con: SetRClicked( oMesa, nCount ) oMesa[ nCount ]:bRClicked = { | nRow, nCol | OpcionMesa( 2, nCount - 200 ) } Esto es a lo que se llama "detached locals" (variables locales que quedan "atrapadas" dentro de un codeblock :)
by Antonio Linares
Fri Nov 11, 2005 12:51 am
 
Forum: FiveWin para CA-Clipper
Topic: Error al compilar
Replies: 3
Views: 1507

Here's a way with the detached local method... for i := 1 to Len( aGets ) @i,0 GET oGets[i] VAR aGets[i] oGets[i]:bSetGet := oGets[i]:oGet:Block := ArrayGetBlock(aGets,i) next function ArrayGetBlock(aGets,i) return { | u | If( PCount()==0, ...
by Rimantas
Mon Oct 31, 2005 5:43 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Array of gets
Replies: 11
Views: 4779

Here's a way with the detached local method...

for i := 1 to Len( aGets )
@i,0 GET oGets[i] VAR aGets[i]
oGets[i]:bSetGet := oGets[i]:oGet:Block := ArrayGetBlock(aGets,i)
next


function ArrayGetBlock(aGets,i)

return { | u | If( PCount()==0, aGets[i], aGets[i]:= u ) }
by Marc Boissinot
Fri Oct 28, 2005 1:29 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Array of gets
Replies: 11
Views: 4779
Previous

Return to advanced search