Danijel Tkalcec [RTC]
25.02.2007 16:02:48 Registered user |
Hi Malcolm,
please replace the "RTC_DB2FIELD_TYPE" constant from the rtcDBTypes unit with...
const RTC_DB2FIELD_TYPE: array[TFieldType] of TRtcFieldTypes = ( ft_Unknown, ft_String, ft_Smallint, ft_Integer, ft_Word, ft_Boolean, ft_Float, ft_Currency, ft_BCD, ft_Date, ft_Time, ft_DateTime, ft_Bytes, ft_VarBytes, ft_AutoInc, ft_Blob, ft_Memo, ft_Graphic, ft_FmtMemo, ft_ParadoxOle, ft_DBaseOle, ft_TypedBinary, ft_Cursor, ft_FixedChar, ft_WideString, ft_Largeint, ft_ADT, ft_Array, ft_Reference, ft_DataSet {$IFNDEF IDE_0} ,ft_OraBlob, ft_OraClob, ft_Variant, ft_Interface, ft_IDispatch,ft_Guid {$IFNDEF IDE_1} , ft_TimeStamp, ft_FMTBcd {$IFDEF IDE_2006up} , ft_WideString, ft_WideString, ft_TimeStamp, ft_Variant {$ENDIF} {$ENDIF} {$ENDIF} );
Regards, Danijel
|
Glynn Owen [RTC]
25.02.2007 17:06:41 Registered user |
Hi Malcolm -
Thank you for uncovering this problem - and thank you, Danijel, for providing a solution so quickly.
I hope you find this article of some use in coming to grips with the realities of programming for access to remote databases using the RTC SDK. Unfortunately, it won't do much for the project you mentioned in your other post because it it does not return its results in an html form. I intend to write additional articles and examples around the "accessing remote databases" concept, and had planned to address this issue sometime in the next few weeks. Keep an eye on the "Articles and Case Studies" forum and you will see this Real Soon Now. This week, I will be showing a method for doing remote updates of individual records.
One thing you should try on your own is writing a replacement for the ADO_DM module of my example. Your replacement should use NexusDB components to do what needs to be done to implement the IDBDemo interface you can see in the SrvrDM module. I'm sure it wouldn't be very different from what I've done in the ADO_DM module.
Regards, Glynn
|