Search found 89 matches: cfield

Return to advanced search

Re: How do I know the field name in xbrowse:column

... Maurizio, I got another problem for ::nFreeze. If you scroll to right until the column hide under freeze, the :cExpr will show incorrected. I use cField := oBrw:aCols[oBrw:nColSel]:cExpr Maurizio Dear Master, It works correctly. Thx. Try cField := oBrw:SelectedCol():cExpr
by dutch
Tue Dec 19, 2023 6:20 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: How do I know the field name in xbrowse:column
Replies: 22
Views: 2275

Re: How do I know the field name in xbrowse:column

dutch wrote:Dear Mst.Rao and Maurizio,
I got another problem for ::nFreeze. If you scroll to right until the column hide under freeze, the :cExpr will show incorrected.
Maurizio wrote:I use

cField := oBrw:aCols[oBrw:nColSel]:cExpr

Maurizio


Try
Code: Select all  Expand view
cField := oBrw:SelectedCol():cExpr
by nageswaragunupudi
Mon Dec 18, 2023 4:45 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: How do I know the field name in xbrowse:column
Replies: 22
Views: 2275

Re: How do I know the field name in xbrowse:column

Dear Mst.Rao and Maurizio,
I got another problem for ::nFreeze. If you scroll to right until the column hide under freeze, the :cExpr will show incorrected.
Maurizio wrote:I use

cField := oBrw:aCols[oBrw:nColSel]:cExpr

Maurizio
by dutch
Sun Dec 17, 2023 5:35 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: How do I know the field name in xbrowse:column
Replies: 22
Views: 2275

DBF REDE/WEB WINDOWS 7/10/11

... RETURN NIL FUNCTION TESTA_PROCESSO_01(cCompetencia) LOCAL aRet := {} LOCAL dData LOCAL nSele := Select() LOCAL cAvulso LOCAL cField, nLen LOCAL oMes,oEmp,oAvu LOCAL oPan, aCargo, cAno,lAllOk, nPos, aTemp, a // LOCAL cComp LOCAL nConti:=0 LOCAL nContador :=0 LOCAL nContador2:=0 ...
by wanderson8
Sun Jan 08, 2023 3:10 pm
 
Forum: All products support
Topic: DBF REDE/WEB WINDOWS 7/10/11
Replies: 0
Views: 9369

Re: How write a right name of a field

How to write a right name of a field Since you are already using a database object, instead of this: oDbf:FieldGet( cField ) oDbf:FieldPut( cField, <newvalue> ) You can just do: oDBF:ID oDBF:Name Where ID and NAME are fieldnames. Then you can do: msgInfo( oDBF:ID ) To put ...
by Silvio.Falconi
Fri Apr 29, 2022 8:08 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: How write a right name of a field
Replies: 6
Views: 481

Re: How write a right name of a field

How to write a right name of a field Since you are already using a database object, instead of this: oDbf:FieldGet( cField ) oDbf:FieldPut( cField, <newvalue> ) You can just do: oDBF:ID oDBF:Name Where ID and NAME are fieldnames. Then you can do: msgInfo( oDBF:ID ) To put ...
by James Bott
Thu Apr 28, 2022 6:19 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: How write a right name of a field
Replies: 6
Views: 481

Re: How write a right name of a field

I must only read it What do you mean? Did I not tell you oDbf:FieldGet( cField )? Is it not reading? Next, oDbf:&cField also works.   local cField   := "NAME"   oDbf  := TDataBase():Open( nil, "STATES.DBF", ...
by nageswaragunupudi
Thu Apr 28, 2022 3:05 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: How write a right name of a field
Replies: 6
Views: 481

Re: How write a right name of a field

Perhaps I found a solution

nNumero := eval(oDbf:fieldWBlock(cField ))
by Silvio.Falconi
Thu Apr 28, 2022 11:41 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: How write a right name of a field
Replies: 6
Views: 481

How write a right name of a field

For a sample the field is oDbf:CA1 If I have cField:="Ca1" // but I not Know the name of the field I made a function to create name of field with cRuota:= NomeRuota(nRuota) cField:= Left(cRuota,2)+ltrim(str(nPosizione)) How I can make ...
by Silvio.Falconi
Thu Apr 28, 2022 11:13 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: How write a right name of a field
Replies: 6
Views: 481

Re: How do I know the field name in xbrowse:column

I use

cField := oBrw:aCols[oBrw:nColSel]:cExpr

Maurizio
by Maurizio
Mon Jan 24, 2022 9:52 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: How do I know the field name in xbrowse:column
Replies: 22
Views: 2275

creation of a pdf

... hFile := FOpen( cFile ) nFileLines := FLineCount( cfile ) i := 1 DO WHILE i <= nFileLines HB_FReadLine( hFile, @Linea ) Linea := LTrim( Linea ) cField := hb_AtX( "<[^>]*>", Linea, .F. ) cField := SubStr( cField, 2, Len( cField ) -2 ) IF cField == 'Attachment How take the text ...
by Silvio.Falconi
Wed Dec 02, 2020 10:02 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: creation of a pdf
Replies: 12
Views: 1344

error with hb_AtX

Linea:="<REPORTNUM>001</REPORTNUM>"

cField := hb_AtX( "<[^>]*>", Linea, .F. )

give me cField empty , why ?

I'm using Harbour, perhaps it is a xharbour function ?
by Silvio.Falconi
Sat Nov 28, 2020 7:45 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: error with hb_AtX
Replies: 2
Views: 401

Re: Import/Export from/to CSV files (; separator)

Correct function Builddbf(aHeader,Alengte,cDbf,cdeli) local aStru := {} local aFields := HB_ATokens(aHeader[1], cdeli ) for i = 1 to len(aFields) cField = (aFields[i]) aAdd( aStru, { cField , "C", 255 , 0 } ) // I insert 255 is the max lenght next dbCreate( cDbf , aStru ) return nil ...
by Silvio.Falconi
Wed Nov 25, 2020 7:49 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Import/Export from/to CSV files (; separator)
Replies: 16
Views: 2173

Re: Import/Export from/to CSV files (; separator)

... n=0 for i = 1 to len(aData) cField := aData[i] cField is all line and it is bad because cField must be the string until the ";" symbol then this function e not create ...
by Silvio.Falconi
Wed Nov 25, 2020 7:11 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Import/Export from/to CSV files (; separator)
Replies: 16
Views: 2173

Re: TWeb for mod Harbour is ready

... local nWidth := 0 local n, cField, hDef IF lMultiSelect .OR. lSingleSelect cHtml += '<th data-field="st" data-checkbox="true"></th>' ENDIF FOR ...
by Taavi
Fri Apr 10, 2020 2:29 pm
 
Forum: mod_harbour
Topic: TWeb for mod Harbour is ready
Replies: 17
Views: 2769
Next

Return to advanced search