🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Changing path to table

#609
From: Gary Gary White
Date: Thu, 17 Sep 1998 00:00
49 lines
1798 bytes
On Thu, 17 Sep 1998 01:41:09 -0400, DALE wrote:

>   I'm using 7....can you point me to documentation that will discuss creating
> the aliases in the app?

The following courtesy of Romain & Jim Sare.

function DeleteAlias(cAliasName)
//Deletes an existing Alias
if type("DbiDeleteAlias") # "FP"
   extern cint DbiDeleteAlias(;
        cHandle,;
        CPTR;
        ) idapi32
endif
return DbiDeleteAlias(null,DBCSToSBCSZ(cAliasName))=0

function CreateAlias(cAliasName,cPath)
//Creates a DBF Alias

if type("DbiAddAlias") # "FP"
   extern cint DbiAddAlias(;
         cHandle,;
         CPTR,;
         CPTR,;
         CPTR,;
         clogical;
         ) idapi32
endif
return DbiAddAlias(null,;
         DBCSToSBCSZ(cAliasName),;
         DBCSToSBCSZ("DBASE"),;
         DBCSToSBCSZ("PATH:" + cPath),;
         TRUE)=0

Function DBCSToSBCSZ(c)
   LOCAL cTemp, x

   cTemp = Replicate(Chr(0), ((Len(c) + 1) / 2) + ((Len(c) + 1) % 2))
   For x = 1 To Len(c)
      cTemp.SetByte(x - 1, Asc(SubStr(c, x)))
   EndFor
   RETURN cTemp


Gary

Some dBASE Stuff at
http://www.AppTools.com/dbase
Technical Details
Message-ID: <36018c98.17891352@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <36002A16.90317001@catsoftware.com> <MPG.106a5e75b520a40c989979@forums.inprise.com> <36007A44.2D18EE8B@catsoftware.com> <36025052.2458935@forums.borland.com> <3600A0F5.40F31771@catsoftware.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: ff5a1,b88683d365487d56
X-Google-Attributes: gidff5a1,public
From: Gary (Gary White)
Subject: Re: Changing path to table
Date: 1998/09/17
Message-ID: <36018c98.17891352@forums.borland.com>
X-Deja-AN: 392203180
Content-Transfer-Encoding: 7bit
References: <36002A16.90317001@catsoftware.com> <MPG.106a5e75b520a40c989979@forums.inprise.com> <36007A44.2D18EE8B@catsoftware.com> <36025052.2458935@forums.borland.com> <3600A0F5.40F31771@catsoftware.com>
Content-Type: text/plain; charset=us-ascii
Organization: Just Me
Mime-Version: 1.0
Reply-To: Gary
Newsgroups: borland.public.vdbase.data.sql