🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.interbase.sql
Article #11261

Re: Variant types for Interbase data types

#11261
From: Bill Todd
Date: Sun, 01 Dec 2002 20:45
26 lines
1976 bytes
Assuming you are using Delphi, 

V := IBDataSet1.FieldByName('SomeField').Value;

will give you the value of any field as a variant.

On Sun, 1 Dec 2002 13:10:35 -0500, "Edward Diener"
<eddielee@tropicsoft.com> wrote:

>What are the equivalent variant types for the Interbase data types ? Some of
>these I can guess, particular the numeric, float, and character, but how are
>the DATE, TIME, and TIMESTAMP stored in Variants and what are the equivalent
>Variant types ?
>
>I want to take a Variant value and use its output streaming ability to
>create values for an SQL INSERT or UPDATE statement. As far as I can see
>this will work properly for INTEGER, SMALLINT, FLOAT, DOUBLE PRECISION,
>NUMERIC, DECIMAL, CHAR, and VARCHAR but I do not think it will work for the
>DATE, TIME, and TIMESTAMP values without using low-level isc_ functions that
>convert these values in Variants to a form which SQL recognizes.
>


--
Bill (TeamB)
(TeamB cannot respond to questions received via email)
Technical Details
Message-ID: <s5tkuuklumb7k0o2tdo46fjujjtpf2v998@4ax.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.news2me.com!arclight.uoregon.edu!logbridge.uoregon.edu!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <3dea4ff3$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 114a0e,4b82b358170a5247
X-Google-Attributes: gid114a0e,public
X-Google-ArrivalTime: 2002-12-01 12:56:06 PST
From: Bill Todd <bill@notthis.dbginc.com>
Newsgroups: borland.public.interbase.sql
Subject: Re: Variant types for Interbase data types
Date: Sun, 01 Dec 2002 13:45:43 -0700
Message-ID: <s5tkuuklumb7k0o2tdo46fjujjtpf2v998@4ax.com>
References: <3dea4ff3$1@newsgroups.borland.com>
X-Newsreader: Forte Agent 1.91/32.564
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 216.207.211.30
X-Trace: newsgroups.borland.com 1038775545 216.207.211.30 (1 Dec 2002 12:45:45 -0800)
Lines: 26
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.news2me.com!arclight.uoregon.edu!logbridge.uoregon.edu!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail