Article View: borland.public.vdbase.data.sql
Article #460Re: VARIABLE PATH IN THE SQL
From: Geoff S. Wass
Date: Mon, 30 Nov 1998 00:00
Date: Mon, 30 Nov 1998 00:00
35 lines
1644 bytes
1644 bytes
Lawrence, First off, avoid using PUBLIC variables in your VdB programs. It is especially unnecessary in VdB 7.01. If you really really need to have something that is "public", you can assign a custom property to the _app, such as _app.myPublicThing="Hello, world!" To answer your questions, you do not need to use macros. The .sql property is a string. Using your examples, you could do this: " select * from [&mpath]\itemf.dbf" would become: " select * from " + mpath + "\itemf.dbf" If you think any item in the path will contain spaces, then you will have to have quotes around the full path name you are creating with something like this (I have used brackets for clarity): [ select * from "] + mpath + [\itemf.dbf"] -- Geoff Wass Kuala Lumpur, Malaysia == In news groups use a reply (not e-mail) so all can help and learn! == == Report Inprise/Borland bugs... == http://www.inprise.com/devsupport/bugs/bug_reports.html == dBASE Archives http://forumsearch.borland.com:88/ == or http://www.dejanews.com == Alan Katz's Visual dBASE Magazine http://www.ksoftinc.com/vdb/
Technical Details
Message-ID:
<3662381E.19A01421@ibm.net>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<36622949.50148114@forums.inprise.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: ff5a1,dc1e185199e9f1db X-Google-Attributes: gidff5a1,public From: "Geoff S. Wass" <gswass@ibm.net> Subject: Re: VARIABLE PATH IN THE SQL Date: 1998/11/30 Message-ID: <3662381E.19A01421@ibm.net> X-Deja-AN: 417000919 Content-Transfer-Encoding: 7bit References: <36622949.50148114@forums.inprise.com> Content-Type: text/plain; charset=us-ascii Organization: Noordindarus Consultancy Sdn. Bhd. Mime-Version: 1.0 Newsgroups: borland.public.vdbase.data.sql