realbasic-nug
[Top] [All Lists]

Re: Database class fieldschema

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Database class fieldschema
From: Andre Kuiper <a dot kuiper7 at chello dot nl>
Date: Thu, 29 Jun 2006 16:01:11 +0200
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <FD4FF6D3-420E-457D-9DB0-93F55826CBE7 at spaziowww dot net> <44A2671F dot 3050607 at chello dot nl> <F1D5F143-7EAD-47C0-A38C-9040EB203DA0 at great-white-software dot com>
Hi Sergio,

Sorry to have misslead you, (as usual) Norman is right, I am ashamed :-[ .

Andre.

Norman Palardy wrote:

On Jun 28, 2006, at 5:25 AM, Andre Kuiper wrote:

Hi Sergio,

You can use : rs.IdxField(i).Value.Type
where rs is the recordset containing the fieldschema

The returned numbers with the typenames are listed in the LR under Database-Class.
An example you can find here:
http://support.realsoftware.com/feedback/download.php?file=6220&rid=19112

HTH,
Greetings,
Andre

Look up FieldSchema in the LR as part of Database

FieldSchema returns a RecordSet with five fields: ColumnName ( String), FieldType ( Integer), IsPrimary ( Boolean), NotNull ( Boolean), and Length in bytes ( Integer) for Text fields.

FieldType is described in the LR

The method above gives you the RB type for each column in the recordset returned not the type for each column in the database table you got the field schema for
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>