Search found 51 matches: nend

Return to advanced search

help to make a condition

Insert a code block

I have
sample nLastRecords:= 2000

IF nLastRecords > 0
nInit:=olotto:lastrec()-nLastRecords
nEnd:= olotto:lastrec()
ENDIF


and I must insert this on a codeblock

bFor:= { || recno() <= nInit .and. recno() >= nEnd }

but make error
by Silvio.Falconi
Sat Oct 12, 2024 9:41 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: help to make a condition
Replies: 2
Views: 361

Creation Array from Tdatabase

... oConteggio:=TDatabase():Open( , "Lotto", "DBFCDX", .T. ) IF nLastRecords > 0 nInit:=oConteggio:lastrec()-nLastRecords nEnd:= oConteggio:lastrec() ENDIF oConteggio:Exec( <|| SET FILTER TO ( dFirst <= FIELD->DATA .AND. ; dLast >= FIELD->DATA .AND. ; aCountMesi[ ...
by Silvio.Falconi
Fri Oct 11, 2024 11:58 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Creation Array from Tdatabase
Replies: 2
Views: 130

Re: Incorrecto numero de argumento para AT

carito wrote:Hola creo que estas usando mal el comando:

en clipper es AT(<cSearch>, <cTarget>) --> nPosition

en harbour es hb_At( <cSearch>, <cString>, [<nStart>], [<nEnd>] ) --> nPos

Saludos,
Carito


Tenias razon. gracias.
by goosfancito
Wed Jan 17, 2024 5:32 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Incorrecto numero de argumento para AT
Replies: 2
Views: 336

Re: Incorrecto numero de argumento para AT

Hola creo que estas usando mal el comando:

en clipper es AT(<cSearch>, <cTarget>) --> nPosition

en harbour es hb_At( <cSearch>, <cString>, [<nStart>], [<nEnd>] ) --> nPos

Saludos,
Carito
by carito
Wed Jan 17, 2024 3:32 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Incorrecto numero de argumento para AT
Replies: 2
Views: 336

Re: Creation an array Multiple on Horizontal on Xbrowse

... records How I must set the filter ? I try with nCount is the number selected by final user IF nCount > 0 nInit:=oDbf:lastrec()-nCount nEnd:= oDbf:lastrec() ENDIF cFilter:= "LTRIM(STR(YEAR(FIELD->DATA)))= '" + nyear + "' .and. '"+; nInit + "' <= Ltrim(str(FIELD->RECNO())) ...
by Silvio.Falconi
Tue Sep 27, 2022 8:45 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Creation an array Multiple on Horizontal on Xbrowse - RESOLV
Replies: 7
Views: 952

Re: show only some records on Xbrowse ( nRecords, year)

... How I can add the number of records to show ? sample only 5 records give me error Here nInit:=Ltrim(str(oDbf:lastrec()-nCount)) nEnd:=Ltrim(str(oDbf:lastrec())) cFilter:= "LTRIM(STR(YEAR(FIELD->DATA)))= '" + nyear + "' .and. '"+; nInit + "' <= Ltrim(str(FIELD-RECNO())) ...
by Silvio.Falconi
Tue Sep 27, 2022 10:20 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: show only some records on Xbrowse ( nRecords, year)
Replies: 10
Views: 850

Re: show only some records on Xbrowse ( nRecords, year)

Antonio Linares wrote:Dear Silvio,

SET FILTER is very slow

Using an index with scopes should be better


with tdatabase I not Know How make it


IF nCount > 0
nInit:=oDbf:lastrec()-nCount
nEnd:= oDbf:lastrec()
ENDIF

oDbf:setscope(0,nInit)
oDbf:setscope(1,nEnd)


then for the year ?
by Silvio.Falconi
Tue Sep 27, 2022 10:04 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: show only some records on Xbrowse ( nRecords, year)
Replies: 10
Views: 850

show only some records on Xbrowse ( nRecords, year)

... filter as you can see on this method  METHOD Load_Data(nCount) CLASS TLOTTO     local aTemp  := {}     local nLastRecords,nInit,nEnd  DEFAULT nCount := 10    ::olotto := TArchivioLotto():New()    ::olotto:SetOrder(1)    ::olotto:goBottom()    IF ...
by Silvio.Falconi
Fri Sep 23, 2022 8:06 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: show only some records on Xbrowse ( nRecords, year)
Replies: 10
Views: 850

Hide/show group columns on line

... SIZE 100, 20 OF oGrS1 ; ON CHANGE hidexbrowse( ::oLbx,::lBa) Function hidexbrowse( ::oLbx,::lBa) local i,oCol do case case ::lba = .t. nInit := 2 nEnd:= 6 endcase for i= nInit to nEnd oCol := ::oLbx:aCols[ i ] oCol:HIde() next ::oLbx:refresh() return nil
by Silvio.Falconi
Fri May 27, 2022 7:16 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Hide/show group columns on line
Replies: 0
Views: 224

Re: Tdatabase & Filter

... cIniFile)   local nInit   := VAL(GetPvProfString(cSection, "Inizio","", cIniFile))   local nEnd    := VAL(GetPvProfString(cSection, "Fine","", cIniFile))   local nLastRecords := VAL(GetPvProfString(cSection, ...
by Silvio.Falconi
Mon May 23, 2022 9:48 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Tdatabase & Filter
Replies: 5
Views: 670

Re: Leer Excel XLSX grande a un array o DBF

... in execution; please Wait...", cMsgArrayData := "Creating CSV array data; please wait..." LOCAL nStart := Seconds(), nEnd, aData := {}, cText := "", cMsgMemo := "Reading CSV data source; please wait..." //=================================================================================================================== ...
by George
Sat Feb 05, 2022 4:31 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Leer Excel XLSX grande a un array o DBF
Replies: 12
Views: 1830

AT( ) Function. Harbour vs xHarbour

... orignially developed with xHarbour. The AT() function in xHarbour has this syntax: At( <cSearch>, <cString>, [<nStart>], [<nEnd>] ) --> nPos Using Harbour, AT() only supports the first two parameters and will error if the nStart is specified. Is there an alternative ...
by TimStone
Fri Feb 12, 2021 11:43 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: AT( ) Function. Harbour vs xHarbour
Replies: 1
Views: 335

Re: New FTDN June/Junio 2019 (FWH 19.06)

... o algunos de los siguientes ', ", [. Sólo los caracteres especificados se consideran caracteres de comillas. - Los parámetros cnStart y cnEnd también pueden ser cadenas. Si la búsqueda nStart especificada comienza después de cStart en cString, si se encuentra, desde esa posición, en caso ...
by Antonio Linares
Tue Jul 16, 2019 11:19 am
 
Forum: WhatsNew / Novedades
Topic: New FTDN June/Junio 2019 (FWH 19.06)
Replies: 4
Views: 3879

New FTDN June/Junio 2019 (FWH 19.06)

... string containing any or some of ', ", [. Only the characters specified are considered as quote characters. - Parameters cnStart and cnEnd can be strings also. If specified nStart search starts after cStart in cString, if found and otherwise from 1. nEnd is character befpre cEnd if ...
by Antonio Linares
Thu Jul 11, 2019 6:14 pm
 
Forum: WhatsNew / Novedades
Topic: New FTDN June/Junio 2019 (FWH 19.06)
Replies: 4
Views: 3879

FWH1905: FW_AT() Case insensitive search

We frequently use the functions AT( cSearch, cStr, [nFrom], [nEnd] ) // xHarbour AT( cSearch, cStr ) // Harbour HB_AT( cSearch, cStr, [nFrom], [nEnd] ) // Harbour In many cases, we may need to convert both cSearch and cStr to Upper/Lower case for the search. ...
by nageswaragunupudi
Wed Jun 26, 2019 4:01 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: FWH1905: FW_AT() Case insensitive search
Replies: 0
Views: 641
Next

Return to advanced search