🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.next.programmer
Article #1052

Re: DBKit API questions

#1052
From: Jenny Doll
Date: Thu, 03 Sep 1992 05:55
20 lines
1214 bytes
Help DBKit Gods!

I have a field in a Sybase database that is a long int representing date&time
(result of time() function).  Assuming I have an object or C functions that can
convert between this format and human-readable date and time formats, how can I:

(1) Create a DBTable view that will either:
  (A) Display & edit both the date and time in separate columns, or else 
      if I can't split 1 Sybase field into 2 DBKit attributes, then I'd 
      settle for:
  (B) Display & edit the date portion of the field

(2) Use 1 or 2 form objects to edit the human readable date and time

Obviously the data format needs to be converted from a longint to strings when
retrieving data from the database and back to a longint when putting the data
back.


Thanks, ...Michael Brill
Technical Details
Message-ID: <+alnfk#.yikes@netcom.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!decwrl!csus.edu!netcom.com!yikes
References: <4851@rosie.NeXT.COM> <4863@rosie.NeXT.COM>

Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.next.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!decwrl!csus.edu!netcom.com!yikes
From: yikes@netcom.com (Jenny Doll)
Subject: Re: DBKit API questions
Message-ID: <+alnfk#.yikes@netcom.com>
Date: Thu, 03 Sep 92 05:55:36 GMT
Organization: Netcom - Online Communication Services  (408 241-9760 guest) 
References: <4851@rosie.NeXT.COM> <4863@rosie.NeXT.COM>
Keywords: DBKit, MiniExamples
Lines: 20