🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.vdbase.forms
Article #121

Index composed.

#121
From: Andrea
Date: Fri, 19 Mar 1999 00:00
40 lines
1448 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: <7csp0c$acb8@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 15bdfb,5faeb8c413dee9a0,start
X-Google-Attributes: gid15bdfb,public
From: "Andrea" <calciotel@lunet.it>
Subject: Index composed.
Date: 1999/03/19
Message-ID: <7csp0c$acb8@forums.borland.com>
X-Deja-AN: 456382323
Organization: Another Netscape Collabra Server User
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Newsgroups: borland.public.vdbase.forms