Search found 24 matches: definedsize

Return to advanced search

New FTDN march/april 2014 (FWH 14.04)

... default add/edit dialog is fixed. (e) Improvement: While saving ADO RecordSet, if length of character value assigned is greater than the field's DefinedSize, the value is truncated to avoid runtime error. * Enhancement: TBtnFlat: (a) Improved painting of multi-line prompt (b) If width spedified ...
by Antonio Linares
Thu May 22, 2014 4:16 pm
 
Forum: WhatsNew / Novedades
Topic: New FTDN march/april 2014 (FWH 14.04)
Replies: 2
Views: 1755

Re: Get table stucture of MySQL and ADO

oRs:Fields( 1 ):DefinedSize is giving me the correct sise of a CHAR-field, but for numeric fields Precision gives not a correct value and NumericScale is always 255. Works fine for me. Please note that you have to define the field ...
by Enrico Maria Giordano
Sun Oct 07, 2012 9:02 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Get table stucture of MySQL and ADO
Replies: 16
Views: 3023

Re: Get table stucture of MySQL and ADO

Enrico, Thanks for the usefull link to http://www.w3schools.com/ado/ado_datatypes.asp oRs:Fields( 1 ):DefinedSize is giving me the correct sise of a CHAR-field, but for numeric fields Precision gives not a correct value and NumericScale is always 255. I think it's not possible ...
by Marc Vanzegbroeck
Sun Oct 07, 2012 8:09 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Get table stucture of MySQL and ADO
Replies: 16
Views: 3023

Re: Estructura de campos en recordset

wmormar wrote:oRecord:field:name // nombre
oRecord:field:type // tipo
oRecord:field:definedsize // longitud

Gracias William, por allí encontré también NumericScale para las posiciones decimales.

Un abrazo.

Manuel Mercado
by mmercado
Wed Apr 16, 2008 11:31 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Estructura de campos en recordset
Replies: 2
Views: 666

Re: Estructura de campos en recordset

... el nombre, tipo, longitud y decimales de los campos. Gracias Manuel Mercado oRecord:field:name // nombre oRecord:field:type // tipo oRecord:field:definedsize // longitud bueno, por ahi la cosa saludos
by wmormar
Wed Apr 16, 2008 4:37 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Estructura de campos en recordset
Replies: 2
Views: 666

Mr Carlos I totally agree with you. And my personal code is more elaborate. We need to examine the Type first and then decide whether to use DefinedSize or Precision and Scale. This code would be much longer and I gave the above code which is simpler for demonstrative purpose. That is the reason, ...
by nageswaragunupudi
Tue Feb 19, 2008 10:10 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Someone has an example of the use of a recorset with xbrowse
Replies: 19
Views: 5315

... xbrAdoSetField( oBrw, oRs, cnFld ) local oCol := oBrw:AddCol() local nwidth := oRs:Fields( cnFld ):DefinedSize WITH OBJECT oCol :cHeader := oRs:Fields(cnFld):Name :bStrData := { || If( oRs:Eof, Space( ...
by Carlos Mora
Tue Feb 19, 2008 9:54 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Someone has an example of the use of a recorset with xbrowse
Replies: 19
Views: 5315

MYSQL via ADO

... PUBLIC codigo,uf,municipio IF tipo="A" codigo=Tabela:Fields("codigo"):Value uf=ESPANTES(Tabela:Fields("uf"):Value,Tabela:Fields("municipio"):DefinedSize) municipio:=ESPANTES(Tabela:Fields("municipio"):Value,Tabela:Fields("municipio"):DefinedSize) ENDIF IF tipo="I" codigo=0 uf=SPACE(2) municipio=SPACE(30) ...
by pauloperes
Tue Aug 14, 2007 1:35 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: MYSQL via ADO
Replies: 1
Views: 1204

Connection

... oADO:Fields( i - 1 ):Type ) aField[ UR_FI_TYPEEXT ] := 0 aField[ UR_FI_LEN ] := ADO_GETFIELDSIZE( aField[ UR_FI_TYPE ], oADO:Fields( i - 1 ):DefinedSize )// 80 // set any arbitrary length - the real size will be differ aField[ UR_FI_DEC ] := 0 UR_SUPER_ADDFIELD( nWA, aField ) NEXT nResult ...
by digicad
Sun Apr 29, 2007 8:25 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: New AdoRDD (free)
Replies: 203
Views: 104564
Previous

Return to advanced search