Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #11943

Re: OK, I'm sorry, but what am I doing wrong/missing?

From Stefano Costagli <stea@libero.it>
Newsgroups comp.lang.clipper.visual-objects
Subject Re: OK, I'm sorry, but what am I doing wrong/missing?
Date 2018-09-18 12:07 +0200
Organization Aioe.org NNTP Server
Message-ID <pnqiok$1r35$1@gioia.aioe.org> (permalink)
References <54797b21-7920-4c52-9ff9-9f886bbdcd36@googlegroups.com> <pnq9pt$1b0a$1@gioia.aioe.org> <25747c8d-b643-4d71-b2ff-d08b0eef8120@googlegroups.com> <93930f24-4e9a-4b0c-9ea7-58b1fdde8bad@googlegroups.com> <9366718d-1756-4f17-a5d9-8bf0aca119ed@googlegroups.com>

Show all headers | View raw


Jeff,

try this:
LOCAL cCurDir AS STRING
LOCAL cDBFile AS STRING

cCurDir := CurDrive() + ":\" + CurDir( ) + "\"
cDBFile := cCurDir + "client.dbf"

...

hth
Stefano


On 18-Sep-18 11:07 AM, Jeff Rollo wrote:
> Hi Robert,
> 
> Yes all three of those files are in the programs install directory.
> 
> The following vode produced these results, but still no file.
> 
> 		AAdd(aDBF, {"ClCode", "C", 10, 0})
> 		AAdd(aDBF, {"ClName", "C", 100, 0})
> 		AAdd(aDBF, {"ClAdd1", "C", 100, 0})
> 		AAdd(aDBF, {"ClAdd2", "C", 100, 0})
> 		AAdd(aDBF, {"ClState", "C", 3, 0})
> 		AAdd(aDBF, {"ClSuburb", "C", 50, 0})
> 		AAdd(aDBF, {"ClPhone", "N", 10, 0})
> 		AAdd(aDBF, {"ClPcode", "N", 4, 0})
> 		AAdd(aDBF, {"ClABN", "C", 20, 0})
> 		AAdd(aDBF, {"ClEmail", "C", 100, 0})
> 		AAdd(aDBF, {"ClComments", "M", 10, 0})
> ??		DBCREATE("Client.dbf", aDBF, "DBFCDX")    //T
> //	   oDB:Create(CurDir(), aDBF, "DBFCDX")
> 	   oServer := CLIENT{self}
> 
> ??	   oServer:CreateIndex("Client", "CLCode",,.T.)          //T
> ??	   oServer:CreateOrder("CLName", "Client", "ClName")     //T
> ??	   oServer:CreateOrder("ClState", "Client", "ClState")   //T
> ??	   oServer:CreateOrder("CLCodeName", "Client", (AllTrim(CLIENT->ClCode) + " " + AllTrim(CLIENT->ClName)))     //F
> ??	   oServer:CreateOrder("CLPcode", "Client", "ClPCode")   //T
> 	
> 
> I have noticed that CurDir is NOT putting the c:\ in front of the path, could that be it?
> 

Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

OK, I'm sorry, but what am I doing wrong/missing? Jeff Rollo <jrollo64@gmail.com> - 2018-09-17 23:48 -0700
  Re: OK, I'm sorry, but what am I doing wrong/missing? Stefano Costagli <stea@libero.it> - 2018-09-18 09:34 +0200
    Re: OK, I'm sorry, but what am I doing wrong/missing? Jeff Rollo <jrollo64@gmail.com> - 2018-09-18 00:58 -0700
      Re: OK, I'm sorry, but what am I doing wrong/missing? Robert van der Hulst <rjvanderhulst@gmail.com> - 2018-09-18 01:54 -0700
        Re: OK, I'm sorry, but what am I doing wrong/missing? Jeff Rollo <jrollo64@gmail.com> - 2018-09-18 02:07 -0700
          Re: OK, I'm sorry, but what am I doing wrong/missing? Stefano Costagli <stea@libero.it> - 2018-09-18 12:07 +0200
          Re: OK, I'm sorry, but what am I doing wrong/missing? Robert van der Hulst <rjvanderhulst@gmail.com> - 2018-09-18 03:10 -0700
            Re: OK, I'm sorry, but what am I doing wrong/missing? Franz Rachbauer <office@rachbauer.org> - 2018-09-18 12:34 +0200
              Re: OK, I'm sorry, but what am I doing wrong/missing? Jeff Rollo <jrollo64@gmail.com> - 2018-09-18 04:23 -0700
                Re: OK, I'm sorry, but what am I doing wrong/missing? Mathias <mathias.hakansson@consultec.se> - 2018-09-18 04:57 -0700
              Re: OK, I'm sorry, but what am I doing wrong/missing? Jeff Rollo <jrollo64@gmail.com> - 2018-09-18 04:27 -0700
                Re: OK, I'm sorry, but what am I doing wrong/missing? Franz Rachbauer <office@rachbauer.org> - 2018-09-18 14:00 +0200
                Re: OK, I'm sorry, but what am I doing wrong/missing? Jeff Rollo <jrollo64@gmail.com> - 2018-09-18 05:05 -0700
                Re: OK, I'm sorry, but what am I doing wrong/missing? Jeff Rollo <jrollo64@gmail.com> - 2018-09-18 05:06 -0700
                Re: OK, I'm sorry, but what am I doing wrong/missing? Leo_Bond <l.bond@bk.ru> - 2018-09-18 05:37 -0700
                Re: OK, I'm sorry, but what am I doing wrong/missing? "Wolfgang Riedmann" <wriedmann@gmail.com> - 2018-09-18 16:18 +0200
                Re: OK, I'm sorry, but what am I doing wrong/missing? dlzc <dlzc1@cox.net> - 2018-09-18 06:48 -0700
  Re: OK, I'm sorry, but what am I doing wrong/missing? Mathias <mathias.hakansson@consultec.se> - 2018-09-19 04:43 -0700
    Re: OK, I'm sorry, but what am I doing wrong/missing? Mathias <mathias.hakansson@consultec.se> - 2018-09-19 05:03 -0700
    Re: OK, I'm sorry, but what am I doing wrong/missing? Jeff Rollo <jrollo64@gmail.com> - 2018-09-19 05:20 -0700
      Re: OK, I'm sorry, but what am I doing wrong/missing? "Jamal" <noooospam@example.com> - 2018-09-19 13:36 -0400
        Re: OK, I'm sorry, but what am I doing wrong/missing? Jeff Rollo <jrollo64@gmail.com> - 2018-09-19 15:42 -0700
      Re: OK, I'm sorry, but what am I doing wrong/missing? Mathias <mathias.hakansson@consultec.se> - 2018-09-20 02:46 -0700
  Re: OK, I'm sorry, but what am I doing wrong/missing? Sherlock <sherlock@sherlock.com.au> - 2018-09-19 05:24 -0700

csiph-web