Article View: borland.public.vdbase.data.sql
Article #56Index composed
From: Andrea
Date: Fri, 19 Mar 1999 00:00
Date: Fri, 19 Mar 1999 00:00
40 lines
1449 bytes
1449 bytes
Hi,
How i can do for create an index on 2 filelds of a table; the first fields
is LONG type (userID) and the second fields is CHARATER type (nameID).
This for display in a grid the name of a type of user in alfabetic order in
a ralation 1-N with the table father that contains the various types of
userID.
es.
this.QUERY1 = new QUERY()
this.QUERY1.parent = this
with (this.QUERY1)
left = 19
top = 0.5
database = form.database1
sql = 'select * from "typeusers.dbf"'
active = true
endwith
with (this.QUERY1.rowset)
indexName = "USERTYPE"
endwith
this.QUERY2 = new QUERY()
this.QUERY2.parent = this
with (this.QUERY2)
left = 24
top = 0.5
database = form.database1
sql = 'select * from "users.dbf" '
active = true
endwith
with (this.QUERY2.rowset)
indexName = "USERID"
masterRowset = parent.parent.query1.rowset
masterFields = "USERID"
endwith
Thank's.
Andrea.
Technical Details
Message-ID:
<7csov0$acc11@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: ff5a1,2c61bb8d2edf0b15,start X-Google-Attributes: gidff5a1,public From: "Andrea" <calciotel@lunet.it> Subject: Index composed Date: 1999/03/19 Message-ID: <7csov0$acc11@forums.borland.com> X-Deja-AN: 456382322 Organization: Another Netscape Collabra Server User X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Newsgroups: borland.public.vdbase.data.sql