can't Convert delphi's dataset to lazaruses dataset. lazarus / 16-Databases ---------------------------------------------------------------------- wylton · 2014-10-21 10:50 i have changed TFieldType in db.pas for  TFieldType = (ftUnknown, ftString, ftSmallint, ftInteger, ftWord, // 0..4       ftBoolean, ftFloat, ftCurrency, ftBCD, ftDate, ftTime, ftDateTime, // 5..11       ftBytes, ftVarBytes,  ftAutoInc, ftBlob, ftMemo, ftGraphic, ftFmtMemo, // 12..18       ftParadoxOle, ftDBaseOle, ftTypedBinary, ftCursor, ftFixedChar, ftWideString, // 19..24       ftLargeint, ftADT, ftArray, ftReference, ftDataSet, ftOraBlob, ftOraClob, // 25..31       ftVariant, ftInterface, ftIDispatch, ftGuid, ftTimeStamp, ftFMTBcd, // 32..37       ftFixedWideChar, ftWideMemo, ftOraTimeStamp, ftOraInterval, // 38..41       ftLongWord, ftShortint, ftByte, ftExtended, ftConnection, ftParams, ftStream, //42..48       ftTimeStampOffset, ftObject, ftSingle); //49..51 but i always get ord(high( TFieldType))=39. how can i to do? ---------------------------------------------------------------------- taazz · 2014-10-21 11:07 you probably need to run "make all" for fpc since the db.pas comes with fpc not lazarus. ---------------------------------------------------------------------- BigChimp · 2014-10-21 11:49 So what is the exact change and why do you need it? If it's useful for others, please feel free to file a feature request in the bugtracker ---------------------------------------------------------------------- wylton · 2014-10-21 13:00 Quote from: taazz on October 21, 2014, 01:07:20 pmyou probably need to run "make all" for fpc since the db.pas comes with fpc not lazarus. how can i recompile fpc in windows?  I can't find out in web . ---------------------------------------------------------------------- wylton · 2014-10-21 13:03 Quote from: BigChimp on October 21, 2014, 01:49:15 pmSo what is the exact change and why do you need it? If it's useful for others, please feel free to file a feature request in the bugtracker I have  dataserver  with delphi . i do client with lazarus . and TFieldtype is different. ---------------------------------------------------------------------- BigChimp · 2014-10-21 13:04 Look at the installation instructions on the fpc site (don't know where they are exactly) or in your FPC directory. There are also instructions on http://wiki.lazarus.freepascal.org/Installing_Lazarus You need to have the fpc sources and a bootstrap compiler (fpc 2.6.4) taazz is right: you'd then do make all/make install. See the instructions. ---------------------------------------------------------------------- BigChimp · 2014-10-21 13:06 Quote from: wylton on October 21, 2014, 03:03:56 pmI have  dataserver  with delphi . i do client with lazarus . and TFieldtype is different. And presumably you added new datatypes at the end or something? Ah well, never mind... ---------------------------------------------------------------------- marcov · 2014-10-21 13:12 Quote from: BigChimp on October 21, 2014, 03:04:44 pmLook at the installation instructions on the fpc site (don't know where they are exactly) or in your FPC directory. Afaik since FPC distributes binary in general, the building is not one button-press like Lazarus. The buildfaq (link on the FPC docs webpage) is the closest I guess, but a bit more geared towards development (build trunk yourself), and not messing in existing distributions. Lazarus will also need a (full) recompile after FPC is built btw. ---------------------------------------------------------------------- u2o · 2014-10-21 14:02 Hi! If change: Code: [Select]{$mode objfpc}{$H+} with Code: [Select]{$mode delphi} Maybe works? Info: http://www.freepascal.org/docs- html/prog/progap4.html#progse62.html ---------------------------------------------------------------------- rvk · 2014-10-21 14:15 Quote from: wylton on October 21, 2014, 03:03:56 pmI have  dataserver  with delphi . i do client with lazarus . and TFieldtype is different. Just adding FieldTypes to TFieldType won't help you very much with this. There is a lot of code in db.pas (and others) which you would need to change (and add) to take advantage of those new types. You've taken this fragment from DB.PAS in Delphi so if you look in there you'll see it's used a lot more then just the type-definition. Maybe if you specify what server en what fields you have trouble with... we could help you determine the problem and try to fix it.