Search found 16352 matches: function

Return to advanced search

Re: passing a value through a for..next loop

... the same We need to keep in mind at all times, NOT to use loop variables in building code-blocks inside a loop. Build the code-block in a separate function using the loop variable as one of the parameters of the function. Please search for detached locals in this forum. Keeping this principle in ...
by nageswaragunupudi
Mon May 13, 2024 7:07 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: passing a value through a for..next loop
Replies: 13
Views: 247

Re: passing a value through a for..next loop

... You can take care of the rest yourself Nages the main question was not about creating controls in for/next loop but to passa a value to bchange function I tried to pass nIndex in the for next loop to bchange and the value is always the same I made modifies on you sample https://forums.fivetechsupport.com/viewtopic.php?f=3&t=44513&sid=ca68d176cc14f86e1359d15301a5e80f&sid=c0aafd02f5ba6f3455e4d2dd7f46a2b6#p270092
by Silvio.Falconi
Mon May 13, 2024 9:38 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: passing a value through a for..next loop
Replies: 13
Views: 247

Re: passing a value through a for..next loop

... using loop variables in a loop is well known and was discussed many times in this forum. The solution is to create each control in a separate function using the principle of detached locals. Search for detached locals in this forum. The sample provided by Mr. Antonio above is the right way ...
by Silvio.Falconi
Mon May 13, 2024 7:18 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: passing a value through a for..next loop
Replies: 13
Views: 247

Re: passing a value through a for..next loop

... of reach" compilation error. Hi to all, That's right, mr. nageswaragunupudi IMHO something is wrong in harbor codeblocks because SI should function at least as a LOCAL variable. The problem is in the double codeblock generated by the fivewin.ch preprocessor, but which harbour, as I commented ...
by paquitohm
Mon May 13, 2024 6:51 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: passing a value through a for..next loop
Replies: 13
Views: 247

Re: CODIGO DE BARRAS. ERROR CON FILLRECT()

... "report.ch" #include "barcode.ch" #define DMPAPER_A4 REQUEST FWZEBRA REQUEST FWHARU *-------------------------------------- FUNCTION VTA1100PE() *-------------------------------------- ... TPrinter():lUseHaruPDF:= .t. xnum:=99->numero cPdfFile := m->xpath+"\PDF\"+strzero(99->cliente,6)+".pdf" ...
by pedroluis
Sun May 12, 2024 8:27 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: CODIGO DE BARRAS. ERROR CON FILLRECT()
Replies: 15
Views: 155

Re: passing a value through a for..next loop

... using loop variables in a loop is well known and was discussed many times in this forum. The solution is to create each control in a separate function using the principle of detached locals. Search for detached locals in this forum. The sample provided by Mr. Antonio above is the right way ...
by nageswaragunupudi
Sun May 12, 2024 2:57 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: passing a value through a for..next loop
Replies: 13
Views: 247

Re: CODIGO DE BARRAS. ERROR CON FILLRECT()

... el código de go_code.prg // imprime un codigo de barras #include 'vta0000.ch' //----------------------------------------------------------------- function go_code( cBarra, nx,ny,oPrint,lHoRz, nColor, nWidth, nLen) //----------------------------------------------------------------- local n, oBr ...
by pedroluis
Fri May 10, 2024 9:34 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: CODIGO DE BARRAS. ERROR CON FILLRECT()
Replies: 15
Views: 155

Re: Transparent Png on MDI Parent

... No Border ACTIVATE WINDOW oWnd VALID MCS_EXIT(oWnd,cPath,pPRG_ABRV) ON INIT OpenMast() On Resize SetLogo( oLogo,oWnd ) RETURN (NIL) Function SetLogo( oLogo,oWnd ) Local nX,nY oWnd:CoorsUpdate() oWnd:oWndClient:CoorsUpdate() oLogo:CoorsUpdate() oLogo:Hide() nX := oWnd:oWndClient:nWidth() ...
by byron.hopp
Fri May 10, 2024 7:38 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Transparent Png on MDI Parent
Replies: 11
Views: 204

Re: GetImage on fiveh.lib

See gli() function Is in that FUNCTION , It call setmasked, and other funcs
by Silvio.Falconi
Fri May 10, 2024 12:56 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: GetImage on fiveh.lib
Replies: 3
Views: 118

Re: GetImage on fiveh.lib

Dear Silvio,

We have moved function GetImage() from eritems.prg to filename.prg

It will be included in next FWH build.

many thanks for your feedback! :-)
by Antonio Linares
Fri May 10, 2024 12:22 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: GetImage on fiveh.lib
Replies: 3
Views: 118

Re: passing a value through a for..next loop

... out of range. Correct way: for n := 1 to 20 aGet[ 1 ] := MakeGet( n * 20, 50, aVar, n, oWnd ) next n ACTIVATE WINDOW .... //-------------- static function MakeGet( nRow, nCol, aVar, n, oWnd ) local oget @ nRow, nCol GET oGet VAR aVar[ n ] of oWnd <clauses> // note this value of "n" ...
by Antonio Linares
Fri May 10, 2024 2:56 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: passing a value through a for..next loop
Replies: 13
Views: 247

Re: Erro Expor to Excel in xbrowse

Chamada por..: C:\PROJETOS\MESTOQ\PRG_OBJ\CD_NFENTRADA.PRG => popmenu_dfe( 1882 ) The error occurs at line 1882 of your function popmenu_dfe(). This is your function but not FWH function. In your function popmenu_dfe, at line 1882, Self is used and this variable does not exist. Please ...
by nageswaragunupudi
Fri May 10, 2024 12:17 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Erro Expor to Excel in xbrowse
Replies: 2
Views: 95

GetImage on fiveh.lib

While I was carrying out a small procedure, a strange error appeared, basically asking for these functions whe we use getimage function Error: Unresolved external '_HB_FUN_BETAVERSION' referenced from C:\WORK\FWH\LIB\FIVEH.LIB|ereport Error: Unresolved external '_HB_FUN_SHOWGRID' ...
by Silvio.Falconi
Thu May 09, 2024 9:44 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: GetImage on fiveh.lib
Replies: 3
Views: 118

passing a value through a for..next loop

If I have a loop For ..Next and on this cicle I have create checkboxes ...and on change I call a function passing the value of n of for..next loop but the n is allway 3  For n= 1 to len(aFilters)        @ nRow, nCol CHECKBOX aCheck[n] VAR aFilters[n][1] ...
by Silvio.Falconi
Thu May 09, 2024 8:25 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: passing a value through a for..next loop
Replies: 13
Views: 247

Re: Send Emails from Fivewin application

Dear friends, we are trying to send mails directly from the program. I found this post about hb_SendMail() ... would this function work in mod_harbour as well and would anyone be so kind as to help me out with your knowledge please... I have office365 and it provided me with client_id, ...
by Ruth
Wed May 08, 2024 10:17 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Send Emails from Fivewin application
Replies: 12
Views: 456
Next

Return to advanced search