Search found 24 matches: definedsize

Return to advanced search

Re: DBF to Excel Sheet, without Excel, using ADO ?

... - 1      WITH OBJECT oRs:Fields( n )         AAdd( aTypes, { :Name, :Value, :Type, cAdoType( :Type ), ;               :DefinedSize, :Precision, :NumericScale } )      END   next   XBROWSER aTypes TITLE "ADO FIELD TYPES" SETUP ;      oBrw:cHeaders := ...
by nageswaragunupudi
Wed Aug 16, 2023 10:03 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: DBF to Excel Sheet, without Excel, using ADO ?
Replies: 50
Views: 2583

Re: DBF to Excel Sheet, without Excel, using ADO ?

Whatever DefinedSize we specify while creating the table (via sql or adox), when the table is read using ADO, the field object is showing oField:DefinedSize as 255 only
by nageswaragunupudi
Wed Aug 16, 2023 11:24 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: DBF to Excel Sheet, without Excel, using ADO ?
Replies: 50
Views: 2583

Re: DBF to Excel Sheet, without Excel, using ADO ?

... i , cName, nType, nLen      ocol:Name := cName      ocol:Type := nType      IF aStruct[i][ 2 ] == "C"         ocol:DefinedSize := nLen      ENDIF      oTable:Columns:Append( ocol )   NEXTfwlog i , Var2char(oCat), Var2char(oTable), Var2char(oCat:Tables), ...
by Jimmy
Wed Aug 16, 2023 5:22 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: DBF to Excel Sheet, without Excel, using ADO ?
Replies: 50
Views: 2583

Re: ADO / Excel / XBROWSE / FWAdoStruct() / Edit()

... from each field object of the RecordSet. The issue with ADO for Excel is, whatever length of char we specify it always returns 255. oField:DefinedSize. Please try this:   n := 0   aFields := {}   do while n < oRs:Fields:Count()    ...
by nageswaragunupudi
Mon Aug 14, 2023 4:44 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: ADO / Excel / XBROWSE / FWAdoStruct() / Edit()
Replies: 8
Views: 261

Re: ADO / Excel / XBROWSE / FWAdoStruct() / Edit()

That is the issue with ADO with Excel.
Whatever length you specify while creating the table, that is ignored.
ADO RecordSet field object always shows oField:DefinedSize as 255.
by nageswaragunupudi
Sun Aug 13, 2023 10:32 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: ADO / Excel / XBROWSE / FWAdoStruct() / Edit()
Replies: 8
Views: 261

Re: New FTDN November 2018 (FWH 18.11)

... son exportados correctamente en todos los casos. - Los campos "ADO" de tipo "adVarChar" o "adVarWChar" con "DefinedSize -1" no eran mostrados. Ahora, son mostrados como campos "memo". - Hashs de navegación: si el primer valor es numérico, los ...
by Antonio Linares
Thu Dec 27, 2018 4:57 pm
 
Forum: WhatsNew / Novedades
Topic: New FTDN November 2018 (FWH 18.11)
Replies: 1
Views: 2157

New FTDN November 2018 (FWH 18.11)

... are not exported unless oBrw:lCellExcelWise is set to .t. Now exported correctly in all cases. - Ado fields of type adVarChar or adVarWChar with DefinedSize -1 were not being displayed. Now, they are displayed as memo fields. - Browsing Hash: If the first value is numeric, logical and date values ...
by Antonio Linares
Sat Dec 01, 2018 10:46 am
 
Forum: WhatsNew / Novedades
Topic: New FTDN November 2018 (FWH 18.11)
Replies: 1
Views: 2157

Re: Nuevo FWH 16.05

... and save, FWH implementation refreshes current record only after save, using ReSync() method. This should make a difference in performance. 3) DefinedSize logitud campo, ........... Impleneted in the latest version: DefinedSize, ActualSize, Precision, NumericScale, OriginalValue Proposed to ...
by nageswaragunupudi
Sun Jul 17, 2016 12:02 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Nuevo FWH 16.05
Replies: 12
Views: 3773

Re: Nuevo FWH 16.05

... trabaja perfecto 2) oRcs:Update() uso oRcs:Save() trabaja bien, sin embargo cada tabla debe tener un indice principal 3) DefinedSize logitud campo Precision longitud campo numerico NumericScale cantidad de decimales Uso oRcs:FieldLen(oRcs:FieldPos(cCampo)) oRcs:FieldDec(oRcs:FieldPos(cCampo)) ...
by luisduque
Sat Jul 16, 2016 7:32 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Nuevo FWH 16.05
Replies: 12
Views: 3773

Re: field length and space in MySql

... myself to read with GET's. First I test for the type. I use oQry:fields("naam'):type = 129 for charachters Then I use oQry:Fields('naam'):DefinedSize to get the field length I use this for all datatypes
by Marc Vanzegbroeck
Tue Jul 07, 2015 4:18 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: field length and space in MySql *Fixed*
Replies: 9
Views: 1429

Re: ADO Exclusive open

Antonio,

oRs:Fields( n ):DefinedSize

Anyhow Mr. Rao is the real expert on ADO/SQL :-)
by Antonio Linares
Tue Mar 24, 2015 9:14 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: ADO Exclusive open
Replies: 6
Views: 1368

Re: ADO RDD xHarbour

... nField - 1 ):Precision ELSE nLen := ADO_GETFIELDSIZE( ADO_GETFIELDTYPE( oRecordSet:Fields( nField - 1 ):Type ), oRecordSet:Fields( nField - 1 ):DefinedSize ) ENDIF /* Un campo mayor de 1024 lo consideramos un campo memo */ uInfo := iif( nLen > 1024, 10, nLen ) CASE nInfoType == DBS_DEC ADO_FIELDINFO( ...
by AHF
Tue Mar 10, 2015 1:18 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: ADO RDD xHarbour
Replies: 1047
Views: 446398

Re: ADO RDD xHarbour

... n - 1 ):Type ) aField[ UR_FI_TYPEEXT ] := 0 aField[ UR_FI_LEN ] := ADO_GETFIELDSIZE( aField[ UR_FI_TYPE ], oRecordSet:Fields( n - 1 ):DefinedSize ) aField[ UR_FI_DEC ] := 0 #ifdef UR_FI_FLAGS aField[ UR_FI_FLAGS ] := 0 #endif #ifdef UR_FI_STEP aField[ UR_FI_STEP ] := 0 #endif UR_SUPER_ADDFIELD( ...
by AHF
Mon Mar 02, 2015 3:31 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: ADO RDD xHarbour
Replies: 1047
Views: 446398

Re: problema con ado mysql y fwh

... reason. Good practice is to use VARCHAR(nwidth) fields. Also it is good practice to store Trimmed values. We can not store strings larger than the DefinedSize. (This raises an error). When we read we get the string of the same length as we have stored. It is possible to store padded strings. We ...
by nageswaragunupudi
Wed Nov 12, 2014 4:39 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: problema con ado mysql y fwh (solucionado)
Replies: 12
Views: 2381

Re: ADO RecordSet to DBF

... Ado Type of the field as numeric You can find all ado field types here http://www.w3schools.com/asp/ado_datatypes.asp For character fields: oField:DefinedSize --> Field length For Numeric fields of type Decimal and Number: oField:Precision --> Length oField:NumericScale --> number of decimals ...
by nageswaragunupudi
Mon Jul 14, 2014 4:36 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: ADO RecordSet to DBF
Replies: 16
Views: 4768
Next

Return to advanced search