Search found 23 matches: nfrom

Searched query: nfrom

by Antonio Linares
Fri Jan 24, 2025 10:28 am
Forum: FiveWin for Harbour/xHarbour
Topic: Using new Class TDeepSeek for documenting
Replies: 29
Views: 5078

Re: Using new Class TDeepSeek for documenting

... myWidthValues, .T. ) // Sets column widths in creation order.
content_copy
download
Use code with caution.
Harbour

30. SetGroupHeader( cGrpHdr, nFrom, nUpto, oFont, nAlign, nHeight )

Description: Sets a group header for a range of columns.

Parameters:

cGrpHdr: CHARACTER - Group header text ...
by Antonio Linares
Fri Jan 17, 2025 11:11 pm
Forum: FiveWin for Harbour/xHarbour
Topic: Using new Class TDeepSeek for documenting
Replies: 29
Views: 5078

Re: Using new Class TDeepSeek for documenting

... in the combo box.

18. **`FindString()`**:
- **Description**: Finds a string in the combo box.
- **Parameters**:
- `cItem`: Item to find.
- `nFrom`: Starting position for the search.

19. **`Find()`**:
- **Description**: Checks if an item exists in the combo box.
- **Parameters**:
- `cItem ...
by Marc Venken
Fri Nov 24, 2023 8:46 am
Forum: FiveWin for Harbour/xHarbour
Topic: Calculate total pages
Replies: 32
Views: 9661

Re: Calculate total pages

... is :

* New: Method GetPages() on class TPrinter to get the From & To pages
selected on the print dialog when the FROM USER clause is used.
This method returns a two dimension array but also you can pass the
nFrom and nTo variables by reference, for example:

aPages := oPrn:GetPages(@nFrom, @nTo)
by nageswaragunupudi
Wed Jun 26, 2019 4:01 pm
Forum: FiveWin for Harbour/xHarbour
Topic: FWH1905: FW_AT() Case insensitive search
Replies: 0
Views: 681

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. Eg:
? AT( Upper( cSearch &#41 ...
by nageswaragunupudi
Mon Nov 28, 2016 6:37 pm
Forum: FiveWin for Harbour/xHarbour
Topic: FW 16.11: XBrowse multi-font/colored cells
Replies: 7
Views: 1776

Re: FW 16.11: XBrowse multi-font/colored cells

Syntax:
oBrw:SetGroupHeader( cGrpHdr, [nFrom], [nUpto], [oFont], [nAlign] )

In the above case:

oBrw:SetGroupHeader( "Section 1", 3, 5 )
by brewster
Fri Jan 25, 2013 2:02 pm
Forum: FiveWin for CA-Clipper
Topic: progress bar
Replies: 2
Views: 3832

progress bar

... heat_update
//----------------------------------------------------------------------------//

FUNC Automatic( oMeter, nActual )

LOCAL n
LOCAL nFrom := nActual

FOR n = nFrom TO oMeter:nTotal step 0.001
nActual = n
oMeter:Set( nActual )
NEXT
nActual = oMeter:nTotal
oMeter:Set( nActual ...
by RodolfoRBG
Sun Oct 03, 2010 4:29 am
Forum: FiveWin para Harbour/xHarbour
Topic: Cambiar columna de posicion de un XBrowse
Replies: 8
Views: 1249

Re: Cambiar columna de posicion de un XBrowse

Solucionado!!! la instruccion seria oBrw:MoveCol(nFrom,nTo,.T.) lo que pasa es que no viene documentada en la ayuda.

Gracias!!
by Otto
Wed Sep 15, 2010 3:04 pm
Forum: FiveWin for Harbour/xHarbour
Topic: xBrowse - extractline - speed
Replies: 1
Views: 457

xBrowse - extractline - speed

function ExtractLine( cText, nFrom )

I found out that if I use instead of
nAt := At( CRLF, SubStr( cText, nFrom ) )

nAt := At( CRLF, cText, nFrom )

the speed of the function is much better. Is it save to remove SubStr here?

Thanks in advance
Otto

function ExtractLine( cText, nFrom )
local ...
by MdaSolution
Wed Jul 28, 2010 11:01 pm
Forum: FiveWin for Harbour/xHarbour
Topic: Scripting
Replies: 0
Views: 408

Scripting

... t. ),::RunScrpt( cPrg, cParams, nWd ) )

METHOD RunScrpt( cPrg, cParams, nWd ) CLASS XXXXX
local lRet := .t.
local oRun
local cTxtFile, cLine, nFrom := 1
local cPrgs := "Prgs\"
if File( cPrgs + cPrg + ".prg" )
TRY
if File( "comp.log" )
ferase( "comp.log" )
endif
FReOpen_Stderr ( "comp.log ...
by triumvirato
Fri Dec 11, 2009 7:17 am
Forum: FiveWin para Harbour/xHarbour
Topic: Problemas con TRichEdit
Replies: 13
Views: 5536

Re: Problemas con TRichEdit

... static function PrintBox( lPreview )

local oPrn
local aRTF := { 100, 1000 } // { nFrom, nTop }

DEFAULT lPreview := .f.

if lPreview
PRINT oPrn NAME "FWH RICHEDIT FILE" PREVIEW
else
PRINT oPrn NAME "FWH RICHEDIT FILE"
endif

if ...
by Antonio Linares
Mon Nov 02, 2009 10:56 pm
Forum: FiveWin for Harbour/xHarbour
Topic: Text file processing.
Replies: 6
Views: 2156

Re: Text file processing.

... to read line by line, we have found that this is a very fast way to do it, much faster than using MemoLine():
function ExtractLine( cText, nFrom ) local cLine, nAt nAt := At( CRLF, SubStr( cText, nFrom ) ) if nAt > 0 cLine := Substr( cText, nFrom, nAt - 1 ) nFrom ...
by Otto
Sun Aug 30, 2009 6:09 pm
Forum: FiveWin for Harbour/xHarbour
Topic: fwh\samples\RE.prg - FiveWin Resources Editor underrated
Replies: 38
Views: 13139

Re: fwh\samples\RE.prg - FiveWin Resources Editor underrated

... function OpenRCFile()

local oWndRC, oTree, oMemo, oSplit
local cRCFile := cGetFile( "*.rc", "Select a resources file" )
local cTxtFile, cLine, nFrom := 1, cItemText := "", cText
local oItem, oBmpItem, oDlgItem, oIcoItem, oMnuItem, oMnuString

DEFINE WINDOW oWndRC TITLE cRCFile MDICHILD

oTree ...
by Otto
Thu Jun 26, 2008 2:54 pm
Forum: FiveWin for Harbour/xHarbour
Topic: different fonts in the same cell xbrowse
Replies: 5
Views: 1295

... I us another font.

It is hardcoded but for my task ok.

Regards,
Otto



IF left(cdata,1)="#"

cLine = SubStr(ExtractLine( cData, @nFrom ),2)
oFont1 := ::oFntGross

oFont1:Activate( hDC )
SetTextColor( hDC, aColors[ 1 ] )
SetBkColor( hDC, aColors[ 2 ] )
DrawTextEx( hDC ...
by Antonio Linares
Thu Apr 24, 2008 9:44 am
Forum: WhatsNew / Novedades
Topic: New FTDN April / Abril 2008 (8.04)
Replies: 1
Views: 4117

... columna de texto. STRETHCOL_NONE es la opción por defecto para mantener la compatibilidad con versiones anteriores.

8. Nuevo método: MoveCol( nFrom, nTo ): En contraste con el método SwapCols que intercambia la posición de dos columnas, este método mueve una columna desde la posición "nFrom" a ...
by Antonio Linares
Fri Apr 11, 2008 11:42 am
Forum: WhatsNew / Novedades
Topic: New FTDN April / Abril 2008 (8.04)
Replies: 1
Views: 4117

New FTDN April / Abril 2008 (8.04)

... last column or stretching the last widest text column. STRETHCOL_NONE is default for keeping backward comaptibility.

8. New Method: MoveCol( nFrom, nTo ): In contrast to SwapCols method which swaps the position of two columns, this method moves a column from position nFrom to the new position ...