Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Xbase Codebase > Re: Trying to C...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 2 Topic 278 of 310
Post > Topic >>

Re: Trying to Create an Index Tag using DefineTag function

by patrick <patrick_dohogne@[EMAIL PROTECTED] > Apr 23, 2007 at 11:41 AM

On Apr 23, 10:03 am, patrick <patrick_doho...@[EMAIL PROTECTED]
> wrote:
> (Codebase newbie)
>
> I am trying to create an index tag on an existing Fox dbf file:
> ICITEM05.DBF.  ICITEM05 .DBF has a current CDX index file associated
> to it.
>
> Here's the code, using the DefineTag function:
>    tblIcitem.Close;
>    tblIcitem.Exclusive := exTrue;
>    tblIcitem.Open;
>    tblIcitem.DefineTag('ItemTag', 'ITEM', '', False, False);
>
> the valid expression: 'ITEM' is a valid field in the ICITEM05.DBF
> file.
>
> What am I doing wrong?
>
> TIA--patrick

I solved this myself.  Here's the code:
   tblIcitem.Close;
   tblIcitem.Exclusive := exTrue;
   tblIcitem.Open;
   tblIcitem.DefineIndexStart;
   tblIcitem.DefineTag('AvgCost', 'str(avgcost,15,5)', '', False,
False);
   tblIcitem.CreateIndex('ICITEM05b.CDX');
   tblIcitem.Close;

--patrick
 




 2 Posts in Topic:
Trying to Create an Index Tag using DefineTag function
patrick <patrick_dohog  2007-04-23 08:03:50 
Re: Trying to Create an Index Tag using DefineTag function
patrick <patrick_dohog  2007-04-23 11:41:58 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Nov 22 10:54:39 CST 2008.