2. Juli 2009 12:48
2. Juli 2009 15:59
CONVERT(decimal(38,20), [DeinQuellFeld])
CAST ([DeinQuellFeld] AS decimal(38,20))
3. Juli 2009 10:49
CONVERT(decimal(38,20), [DeinQuellFeld])
Name ConstValue
Text005 where CONVERT(decimal(38,20), %1)
V_Tabelle := 'merkmalmass';
V_Filter_2 := STRSUBSTNO(Text005,'otg'); //otg ist der Feldname in der SQL Tabelle
V_String := 'SELECT*from '+V_Tabelle+V_Filter_2;
3. Juli 2009 11:13
3. Juli 2009 11:51
3. Juli 2009 11:54
SELECT * from merklammass where CONVERT(decimal(38,20), otg) = DeineZahl
14. Juli 2009 13:35
// -------------------------------------------------
// Field value from ADORecSet read into "FieldValue"
// -------------------------------------------------
FieldName := _Fields.FieldName;
IF FORMAT(ADORecSet.Fields.Item(FieldName).ActualSize) <> FORMAT(0) THEN BEGIN
// ------------------
// Type 131 = NUMERIC
// ------------------
IF ADORecSet.Fields.Item(FieldName).Type = 131 THEN BEGIN
IF ISCLEAR(ADOStream) THEN
CREATE(ADOStream)
ELSE BEGIN
CLEAR(ADOStream);
CREATE(ADOStream);
END;
ADOStream.Open;
ADOStream.WriteText(ADORecSet.Fields.Item(FieldName).Value);
ADOStream.Position := 0;
FieldValue := FORMAT(ADOStream.ReadText);
ADOStream.Close;
// -------------------
// Convert date fields
// -------------------
IF FieldName IN ['NFT_DAT','NFT_MDAT']
THEN BEGIN
DatumText := COPYSTR(FieldValue,7,2) + '.' +
COPYSTR(FieldValue,5,2) + '.' +
COPYSTR(FieldValue,1,4);
IF NOT EVALUATE(InputDate,DatumText) THEN
FRefImport.VALUE := 0D;
FRefImport.VALUE := InputDate;
END;
// ---------------------
// "Decimale" or INTEGER
// ---------------------
//FRefImport.VALUE := COPYSTR(FieldValue,1,FRefImport.LENGTH);
IF FieldName IN ['NFT_FLO4','NFT_FLO5','NFT_FLO6']
THEN BEGIN
EVALUATE(InputDec,FieldValue);
FRefImport.VALUE := InputDec;
END;
27. Juli 2009 14:59