RE: Determining the type of active index

2007-01-16 Thread John J. Mihaljevic
I just re-read my post and am not sure I was clear enough in the question I'm asking here, so lemme try again: I realize vartype() will tell me if a field is numeric, character, etc., but what can I do to determine what type an index tag is? For example: Number N(5) Name C(25) ZipN(5) Ind

Re: Determining the type of active index

2007-01-16 Thread Paul Newton
John Check out KEY() and SYS(14) John J. Mihaljevic wrote: > Hi all, > > I've got a Search box on my form that will let the user search the active > table based upon whatever the current sort order is (the currently active > index tag). For example, my Customers table. > > I want them to be able

RE: Determining the type of active index

2007-01-16 Thread Dave Crozier
John, Check out Sys(14). However, always remember though that there is no such thing as a "Numeric" index as all the data you index on is converted to a character expression before it is indexed. Hence you can seek on a character key even though you created the index as a "numerical index" See Ex

Re: Determining the type of active index

2007-01-17 Thread MB Software Solutions
Dave Crozier wrote: > John, > Check out Sys(14). > > However, always remember though that there is no such thing as a "Numeric" > index as all the data you index on is converted to a character expression > before it is indexed. Hence you can seek on a character key even though you > created the ind

Re: Determining the type of active index

2007-01-17 Thread Ted Roche
On 1/17/07, Dave Crozier <[EMAIL PROTECTED]> wrote: > > However, always remember though that there is no such thing as a "Numeric" > index as all the data you index on is converted to a character expression > before it is indexed. Hence you can seek on a character key even though you > created the

Re: Determining the type of active index

2007-01-17 Thread Malcolm Greene
Ted, > I know that was true back in the FoxBase days, but aren't integer indexes > smaller than other types because they are packing integers rather than > converting them to strings? There's also the new(?) binary indexes in VFP 9 that are even smaller/faster in some scenarios. Malcolm ___

Re: Determining the type of active index

2007-01-17 Thread Eugene Vital
Ted Roche wrote: > On 1/17/07, Dave Crozier <[EMAIL PROTECTED]> wrote: > >> However, always remember though that there is no such thing as a "Numeric" >> index as all the data you index on is converted to a character expression >> before it is indexed. Hence you can seek on a character key even

RE: Determining the type of active index

2007-01-17 Thread Dave Crozier
@leafe.com Subject: Re: Determining the type of active index On 1/17/07, Dave Crozier <[EMAIL PROTECTED]> wrote: > > However, always remember though that there is no such thing as a "Numeric" > index as all the data you index on is converted to a character expression > befor

Re: Determining the type of active index

2007-01-18 Thread MB Software Solutions
Malcolm Greene wrote: > There's also the new(?) binary indexes in VFP 9 that are even > smaller/faster in some scenarios. > Besides an index on DELETED( ), why would you use a binary index? An example please? -- Michael J. Babcock, MCP MB Software Solutions, LLC http://mbsoftwaresolutions.

Re: Determining the type of active index

2007-01-18 Thread Malcolm Greene
Micheal, > Besides an index on DELETED( ), why would you use a binary index? An example > please? Disclosure: I haven't personally used binary indexes. Possible uses: - male vs. female (I recognize this is no longer a binary condition) - test vs. production - active vs. non-active I think t

Re: Determining the type of active index

2007-01-18 Thread MB Software Solutions
Malcolm Greene wrote: > Micheal, > > >> Besides an index on DELETED( ), why would you use a binary index? An >> example please? >> > > Disclosure: I haven't personally used binary indexes. > > Possible uses: > > - male vs. female (I recognize this is no longer a binary condition) > - tes

RE: Determining the type of active index

2007-01-18 Thread Rick Schummer
>>it's for times where the choices are 1/0<< Yes, that is why they are called *Binary* Indexes - . Don't worry, you are not the last person to understand this concept. Rick White Light Computing, Inc. www.whitelightcomputing.com www.rickschummer.com 586.254.2530 - office 586.254.2539 - fax _