Página 1 de 1

Index While

Publicado: Mar Jun 20, 2006 11:22 am
por Aguiar Costa
Hello !
How do i do an Index While command using DbfDataset ? Or just a simple index
?
I have an open Dataset (ADS+NTX) with 1 or 2 index files in aIdxFiles
property. How do i create and add a new index file ?
I read long time ago that the use of "index while" was not a good
programming techinic. So what is the alternative ?
TIA.
Aguiar !!!

Index While

Publicado: Mar Jun 20, 2006 12:43 pm
por ignacio
Aguiar,
oDbfDataSet:Select()
INDEX ON ....
For common index creation you may use the method AddTag()
> I read long time ago that the use of "index while" was not a good
> programming techinic. So what is the alternative ?
Why not? I have never used it, ,but is the same as the "for" clause but
stops when the condition is not met. Just be cautious on setting the
appropiate Tag first and use the SUBINDEX clause.
Regards,
"Aguiar" <aguiar.costa@sisbit.pt> escribió en el mensaje
news:4497be52$[email=1@ozsrvnegro.ozlan.local...]1@ozsrvnegro.ozlan.local...[/email]
> Hello !
>
> How do i do an Index While command using DbfDataset ? Or just a simple
> index ?
> I have an open Dataset (ADS+NTX) with 1 or 2 index files in aIdxFiles
> property. How do i create and add a new index file ?
> I read long time ago that the use of "index while" was not a good
> programming techinic. So what is the alternative ?
> TIA.
> Aguiar !!!
>
>

Index While

Publicado: Mar Jun 20, 2006 12:43 pm
por NoName
Aguiar,
oDbfDataSet:Select()
INDEX ON ....
For common index creation you may use the method AddTag()
> I read long time ago that the use of "index while" was not a good
> programming techinic. So what is the alternative ?
Why not? I have never used it, ,but is the same as the "for" clause but
stops when the condition is not met. Just be cautious on setting the
appropiate Tag first and use the SUBINDEX clause.
Regards,
"Aguiar" <aguiar.costa@sisbit.pt> escribió en el mensaje
news:4497be52$[email=1@ozsrvnegro.ozlan.local...]1@ozsrvnegro.ozlan.local...[/email]
> Hello !
>
> How do i do an Index While command using DbfDataset ? Or just a simple
> index ?
> I have an open Dataset (ADS+NTX) with 1 or 2 index files in aIdxFiles
> property. How do i create and add a new index file ?
> I read long time ago that the use of "index while" was not a good
> programming techinic. So what is the alternative ?
> TIA.
> Aguiar !!!
>
>

Index While

Publicado: Mar Jun 20, 2006 1:12 pm
por Aguiar Costa
Thanks Ignacio.
Regards
Aguiar !!!
"Ignacio Ortiz de Zúñiga" <NoName@xailer.com> escreveu na mensagem
news:4497d145$[email=1@ozsrvnegro.ozlan.local...]1@ozsrvnegro.ozlan.local...[/email]
> Aguiar,
>
> oDbfDataSet:Select()
>
> INDEX ON ....
>
> For common index creation you may use the method AddTag()
>
>> I read long time ago that the use of "index while" was not a good
>> programming techinic. So what is the alternative ?
>
> Why not? I have never used it, ,but is the same as the "for" clause but
> stops when the condition is not met. Just be cautious on setting the
> appropiate Tag first and use the SUBINDEX clause.
>
> Regards,
>
> "Aguiar" <aguiar.costa@sisbit.pt> escribió en el mensaje
> news:4497be52$[email=1@ozsrvnegro.ozlan.local...]1@ozsrvnegro.ozlan.local...[/email]
>> Hello !
>>
>> How do i do an Index While command using DbfDataset ? Or just a simple
>> index ?
>> I have an open Dataset (ADS+NTX) with 1 or 2 index files in aIdxFiles
>> property. How do i create and add a new index file ?
>> I read long time ago that the use of "index while" was not a good
>> programming techinic. So what is the alternative ?
>> TIA.
>> Aguiar !!!
>>
>>
>
>
>

Index While

Publicado: Mar Jun 20, 2006 1:12 pm
por Aguiar Costa
Thanks Ignacio.
Regards
Aguiar !!!
"Ignacio Ortiz de Zúñiga" <NoName@xailer.com> escreveu na mensagem
news:4497d145$[email=1@ozsrvnegro.ozlan.local...]1@ozsrvnegro.ozlan.local...[/email]
> Aguiar,
>
> oDbfDataSet:Select()
>
> INDEX ON ....
>
> For common index creation you may use the method AddTag()
>
>> I read long time ago that the use of "index while" was not a good
>> programming techinic. So what is the alternative ?
>
> Why not? I have never used it, ,but is the same as the "for" clause but
> stops when the condition is not met. Just be cautious on setting the
> appropiate Tag first and use the SUBINDEX clause.
>
> Regards,
>
> "Aguiar" <aguiar.costa@sisbit.pt> escribió en el mensaje
> news:4497be52$[email=1@ozsrvnegro.ozlan.local...]1@ozsrvnegro.ozlan.local...[/email]
>> Hello !
>>
>> How do i do an Index While command using DbfDataset ? Or just a simple
>> index ?
>> I have an open Dataset (ADS+NTX) with 1 or 2 index files in aIdxFiles
>> property. How do i create and add a new index file ?
>> I read long time ago that the use of "index while" was not a good
>> programming techinic. So what is the alternative ?
>> TIA.
>> Aguiar !!!
>>
>>
>
>
>