Search found 18 matches: genblock

Return to advanced search

Re: genblock

I resolved with cargo
by Silvio.Falconi
Tue Jun 13, 2023 7:13 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: genblock
Replies: 5
Views: 253

Re: genblock

hi Silvo, as Detlef say : detached Locals when build in a "Loop" and use "Counter" you must call a Function to build a String for Codeblock so your "Counter" Number will be a STR() in a String      FOR ii := 1 TO 26              // A-Z         @ 40, ( ii - 1 ) *...
by Jimmy
Mon Jun 12, 2023 7:56 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: genblock
Replies: 5
Views: 253

Re: genblock

Sorry I explain I making a multiple invoice for beach management in managing the beach, in addition to individual customers, there are associations or hotels that can book an x number of umbrellas, instead of placing an order for each umbrella at the hotel, I thought of making a multiple order and a...
by Silvio.Falconi
Mon Jun 12, 2023 5:10 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: genblock
Replies: 5
Views: 253

Re: genblock

Because ACTION clause generates an "internal" codeblock, so run ok: nRow:=30For n= 1 to 9   #Define PARAMS1_ oDlg, aBtnCalc, nRow, n, oInvoice, aItems, @nRowItems, fromdate, Todate   #Define PARAMS2_ oDlg, aBtnCalc, nRow, n, oInvoice, aItems,  nRowItems, fromdate, Todate   GenButton(PA...
by paquitohm
Mon Jun 12, 2023 11:38 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: genblock
Replies: 5
Views: 253

Re: genblock

dear Silvio,

search the forum for detached locals.
Or have a look here http://forums.fivetechsupport.com/viewtopic.php?f=3&t=41373&hilit=detached+local

Regards, Detlef
by Detlef
Mon Jun 12, 2023 11:14 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: genblock
Replies: 5
Views: 253

genblock

I have 9 button when I press a button return allway 9 nRow:=30 For n= 1 to 9 @ nRow,2 BTNBMP aBtnCalc[n] PROMPT ltrim(str(n+1)) FLAT SIZE 20,30 PIXEL of oDlg ; ACTION AddItems(oInvoice,aItems, GenBlock_(n) ,@nRowItems,fromdate,Todate) nRow+=32 NEXt fUNCTION GenBlock_(n) RETURN n and I Wish insert o...
by Silvio.Falconi
Mon Jun 12, 2023 10:01 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: genblock
Replies: 5
Views: 253

Re: MENUITEM with BLOCK command executed TWICE.

Silvio.Falconi wrote:ty to insert the action before of the BLOCK


baction := GenBlock_Faiz(hh)
MENUITEM hhh1 BLOCK bAction

FUNCTION GenBlock_Faiz(nhh)
LOCAL cProc := "Faiz"+ALLTRIM(STR(nhh))
RETURN {|| &(cProc)() }

on a my menu I make this


Thank you Silvio, Tried and same error.
by Horizon
Tue May 11, 2021 8:55 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: MENUITEM with BLOCK command executed TWICE. (SOLVED)
Replies: 36
Views: 3195

Re: MENUITEM with BLOCK command executed TWICE.

ty to insert the action before of the BLOCK


baction := GenBlock_Faiz(hh)
MENUITEM hhh1 BLOCK bAction

FUNCTION GenBlock_Faiz(nhh)
LOCAL cProc := "Faiz"+ALLTRIM(STR(nhh))
RETURN {|| &(cProc)() }

on a my menu I make this
by Silvio.Falconi
Tue May 11, 2021 8:52 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: MENUITEM with BLOCK command executed TWICE. (SOLVED)
Replies: 36
Views: 3195

no consigo que me coja variables "detached locals"

... oCategory4=oCategory3-12 for oCategory2 = 1 to oCategory1 go oCategory2 oNomCat=category->categoria oNumeroCt=category->numero bAction := genblock(oNumeroCt) if oCategory2 <= 12 @ (0.5-1.5)+(oCategory2*1.5), 46 BUTTON alltrim(oNomCat) OF oDlg SIZE 80, 20 ACTION eval(bAction) elseif ...
by PP1963
Fri Nov 06, 2009 6:37 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: no consigo que me coja variables "detached locals"
Replies: 11
Views: 1552

Re: Problemas al crear lista de BUTTONS y asignarle variables

... for oCategory2 = 1 to oCategory1 go oCategory2 oNumeroCt=category->numero bAction := GenBlock( oNumeroCt ) if oCategory2 <= 12 @ (0.5-1.5)+(oCategory2*1.5), 46 BUTTON alltrim(oNomCat) OF oDlg SIZE 80, 20 ACTION EVAL (bAction) elseif ...
by PP1963
Fri Nov 06, 2009 4:18 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Problemas al crear lista de BUTTONS y asignarle variables
Replies: 4
Views: 614

Please substitute bEditValue in place of bStrData in the GenBlock function and try again. It should work
by nageswaragunupudi
Sun Aug 24, 2008 6:07 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: TXbrowse():bBmpData is not support CodeBlock
Replies: 2
Views: 576

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: 519

VC pode experimentar

function GenBlock( v, c )
RETURN { |u| If( u == Nil, v[c], v[c] := u ) }
by RenOmaS
Fri May 04, 2007 9:07 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Valid dos Gets - Alguém pode me ajudar?
Replies: 8
Views: 2405

... CODE 0006:F832 000EFH BRWGOTO CODE 0006:F922 00137H _RECCOUNT CODE 0006:FA5A 00145H _RECCOUNT CODE 0006:FBA0 00046H GENLOCAL CODE 0006:FBE6 00039H GENBLOCK CODE 0006:FC20 00039H GENBLOCK CODE 0007:0000 004BCH REPORT CODE 0007:04BC 00197H UPSTABLE CODE 0007:0654 00997H SETFILTER CODE 0007:0FEC 00134H ...
by Connan
Fri Mar 03, 2006 10:28 am
 
Forum: FiveWin para CA-Clipper
Topic: GPF, como buscar el Error
Replies: 3
Views: 3529

GPF, como buscar el Error

... CODE 0006:FA4E 000EFH BRWGOTO CODE 0006:FB3E 00137H _RECCOUNT CODE 0006:FC76 00145H _RECCOUNT CODE 0006:FDBC 00046H GENLOCAL CODE 0006:FE02 00039H GENBLOCK CODE 0006:FE3C 00039H GENBLOCK CODE 0007:0000 004BCH REPORT CODE 0007:04BC 00197H UPSTABLE CODE 0007:0654 00997H SETFILTER CODE 0007:0FEC 00134H ...
by Connan
Tue Feb 28, 2006 5:36 pm
 
Forum: FiveWin para CA-Clipper
Topic: GPF, como buscar el Error
Replies: 3
Views: 3529
Next

Return to advanced search