🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.vdbase.data.sql
Article #626

Re: Lookup Tables

#626
From: Carl White
Date: Tue, 22 Sep 1998 00:00
29 lines
1618 bytes
OK.  I no longer get the error.  I thought I checked but I missed
"descending".  Oh well.  At least now I can resume playing with the code.

Thanks,
Carl

Ken Mayer [TeamB] wrote:

> Carl White <whitecw@earthlink.net> wrote:
>
> >In VdB5 I used the LOOKUP() function.  I gather that instead of this
> >function in VdB7 I should be able to use the lookupSQL.  But after
> >studying and experimenting with the documentation and example in the
> >help file language reference, I'm stumped.
> >
> >I'm using the following code in the Combobox ONCHANGE event:
> >        select desc, type FROM typetbl
> >but I get a database engine error: Invalid use of keyword desc,
>
> This is a SQL error -- DESC is a reserved word (short for
> "descending"). Don't name a field "DESC". In Visual dBASE 7 tables,
> you can actually name the field "description" and get away with it ...
>
> Ken
> ---
> Ken Mayer [TeamB]
> Golden Stag Productions
> http://www.mindspring.com/~hirschv/homepage.htm
> http://www.mindspring.com/~hirschv/dbase/dbase.htm
Technical Details
Message-ID: <36086931.2E44453F@earthlink.net>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <36085545.4B537BC6@earthlink.net> <36085951.10883288@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: ff5a1,4b901113c5db6356
X-Google-Attributes: gidff5a1,public
From: Carl White <whitecw@earthlink.net>
Subject: Re: Lookup Tables
Date: 1998/09/22
Message-ID: <36086931.2E44453F@earthlink.net>
X-Deja-AN: 393869674
Content-Transfer-Encoding: 7bit
References: <36085545.4B537BC6@earthlink.net> <36085951.10883288@forums.borland.com>
Content-Type: text/plain; charset=us-ascii
Organization: Another Netscape Collabra Server User
Mime-Version: 1.0
Newsgroups: borland.public.vdbase.data.sql