BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How do I convert AS/400 Packed fields into data-aware compon

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi As400
View previous topic :: View next topic  
Author Message
Mel Boulds
Guest





PostPosted: Wed Oct 22, 2003 8:22 am    Post subject: How do I convert AS/400 Packed fields into data-aware compon Reply with quote




Using Delphi 5, I am trying to create an application which integrates two systems. To do this I have to access our AS/400 DB. I have a problem when data is stored on the AS/400 as Packed or Zoned data types. The Delphi components that I have simply return [Bytes]. How can I convert these into readable data within say a DBGrid component? When browsing the data using SQL Explorer the data appears to be okay, however pasting the same query into the TADOQuery component gives me the problems outlined above. I have even imported the Client Access ActiveX and attempted to use the Get_Bytes routine within the TPackedConverter component without success.
Back to top
David
Guest





PostPosted: Thu Oct 23, 2003 8:30 am    Post subject: Re: How do I convert AS/400 Packed fields into data-aware co Reply with quote




Mel Boulds <mel.boulds (AT) ricoh-rpl (DOT) com> wrote

Quote:

Using Delphi 5, I am trying to create an application which integrates two
systems. To do this I have to access our AS/400 DB. I have a problem when

data is stored on the AS/400 as Packed or Zoned data types. The Delphi
components that I have simply return [Bytes]. How can I convert these into
readable data within say a DBGrid component? When browsing the data using
SQL Explorer the data appears to be okay, however pasting the same query
into the TADOQuery component gives me the problems outlined above. I have
even imported the Client Access ActiveX and attempted to use the Get_Bytes
routine within the TPackedConverter component without success.

Hi,
I have had terrible problems with Zoned and gave up.
However, I use tfloatfield with packed with complete success. Note: we are
using systemobjects delphi400 components though, but odbc from delphi 1 days
was the same.
David



Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi As400 All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.