Search found 6933 matches: array

Return to advanced search

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

Creating controls in a loop from array is very tricky. It does not work as expected. Let me show why: Wrong code: for n := 1 to 20 @ n * 20, 50 GET aVar[ n ] OF oWnd <clauses> next n After this loop the present 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: 4
Views: 111

To nages : modify of a xbrowse

Nages, I have this xbrowse with an array https://i.postimg.cc/Mp3kGctt/gor.png when I modify 4th column and the string is "45" i can insert only 2 space how I can resolve ? I made WITH OBJECT oBrwFilter      :bPastEof ...
by Silvio.Falconi
Wed May 08, 2024 10:41 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: To nages : modify of a xbrowse
Replies: 4
Views: 152

Re: len an array

... ok and if the cString is empty ( i not Know what is on Cstring, so it can be also empty) How set alines ? because then I must set another two array from alines oImage:=array(len(aLines)+1) aImages:=array(len(aLines)+1) how I can resolve ?
by Silvio.Falconi
Wed May 08, 2024 7:31 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: len an array
Replies: 5
Views: 170

Re: Get simulando una espera en segundos

... wild (ordwildseek()) con un timer. La busqueda la hago sobre una dbf pero cuando el usuario deja de teclear entonces da el cambiazo y carga un array con el ordwildseek() y sobre el mismo tsbrowse pasa de estar mostrando una dbf a mostrar un array, el de los resultados. Realmente va como un ...
by VictorCasajuana
Mon May 06, 2024 6:02 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Get simulando una espera en segundos
Replies: 5
Views: 176

Re: Get simulando una espera en segundos

... wild (ordwildseek()) con un timer. La busqueda la hago sobre una dbf pero cuando el usuario deja de teclear entonces da el cambiazo y carga un array con el ordwildseek() y sobre el mismo tsbrowse pasa de estar mostrando una dbf a mostrar un array, el de los resultados. Realmente va como un ...
by paquitohm
Mon May 06, 2024 2:34 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Get simulando una espera en segundos
Replies: 5
Views: 176

Re: len an array

Code: Select all  Expand view
aLines := hb_ATokens( cString,"|" )
if empty(aLines[1] )
alines:= {}
 

This doesn't help either.
by nageswaragunupudi
Mon May 06, 2024 1:27 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: len an array
Replies: 5
Views: 170

Re: len an array

give me 1 instead of zero Because that is the correct answer. aLines  := HB_ATokens( "one", "|" )? aLines // -> { "one" } I not Know how I Have on String now I made aLines := hb_ATokens( cString,"|" ) if empty(aLines[1] ) alines:= {} Endif
by Silvio.Falconi
Mon May 06, 2024 11:41 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: len an array
Replies: 5
Views: 170

Re: len an array

Code: Select all  Expand view

   ? LEN( cString )
 


Regards, saludos.
by karinha
Mon May 06, 2024 11:41 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: len an array
Replies: 5
Views: 170

Re: len an array

give me 1 instead of zero

Because that is the correct answer.

Code: Select all  Expand view
aLines  := HB_ATokens( "one", "|" )
? aLines // -> { "one" }
by nageswaragunupudi
Mon May 06, 2024 11:26 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: len an array
Replies: 5
Views: 170

len an array

local cString:=""
aLines := hb_ATokens( cString,"|" )

?len(aLines)


give me 1 instead of zero

why ?
by Silvio.Falconi
Mon May 06, 2024 10:43 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: len an array
Replies: 5
Views: 170

xbrowse (likely a custom table) whose contents change dynam

... the response data. hPost: A hash to store the decoded JSON body from the request. nIdx: An index variable used for iteration. aParameters: An array to store the keys of the decoded JSON. speedtest: Stores the current milliseconds count to measure execution time. Logging: logline("<H>", ...
by Otto
Sat May 04, 2024 7:42 am
 
Forum: mod_harbour
Topic: xbrowse (likely a custom table) whose contents change dynam
Replies: 0
Views: 63

Re: Reload data in a combobox

the second combobox control works fine if I do it in a single dimension, when it tries to repopulate the asubcategory array with two elements it doesn't work and crashes
by Silvio.Falconi
Tue Apr 30, 2024 6:23 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Reload data in a combobox
Replies: 3
Views: 131

Reload data in a combobox

... nRight := 55      local nHt       := nBottom * DLG_CHARPIX_H      local nWd       := Max( nRight * DLG_CHARPIX_W, 180 )      local aget:=array(10)      local oSay:=array(10)      local oFont,oBold      local nMode:= 1,n       local aCategorie:=TCategorie():GetList()  ...
by Silvio.Falconi
Tue Apr 30, 2024 8:03 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Reload data in a combobox
Replies: 3
Views: 131

xbrowse report group

to select the group I give the way that the end user can select the group (ngroup ) from an array aGroup on which to print and groups Before printing I have to index on the selected group if an archive (odbf) is online I do it normally oDbf:setorder(nGroup)    ...
by Silvio.Falconi
Mon Apr 29, 2024 4:44 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: xbrowse report group
Replies: 0
Views: 47

Re: combobox color

... the combobox is done with an xbrowse. Maybe we could make aItems multidimensional and then pass the color along with it. Or just pass another ARRAY with the colors. And then compare it in ::bClrStd. ::bClrStd := { || If( ::nArrayAt == ::nHoverAt .and. ::nArrayAt > ::nBlankRows, ; { CLR_WHITE, ...
by Otto
Sun Apr 28, 2024 5:36 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: combobox color
Replies: 22
Views: 574
Next

Return to advanced search

cron