Unable to disable indexing

Ruslan Zasukhin sunshine at public.kherson.ua
Mon Nov 28 15:08:35 CST 2005


On 11/28/05 6:01 AM, "Ed Kleban" <Ed at Kleban.com> wrote:

Hi Ed,

> Should I be able to disable indexing?

Yes of course.
 
> Execution of the following code results in an "Indexing still enabled"
> failure.

>   // Disable indexing while filling the table
>   spanSrcIdField = LTblSrcSpan.fSpanObRef
>   spanSrcIdField.IsIndexed = false
>   spanSrcIdField.IsUnique = false
   
>   #if DebugBuild then
>     if spanSrcIdField.IsUnique then
>       fail( here, "Unique still set" )
>     elseif spanSrcIdField.isIndexed then
>       fail( here, "Indexing still enabled" )
>     end
>   #endif

Try change order 

>   spanSrcIdField.IsUnique = false
>   spanSrcIdField.IsIndexed = false

Or better just remove line with Unique flag

>   spanSrcIdField.IsIndexed = false

Valentina 2 allow this. And later when you set indexing ON,
Valentina will just use unique flag.


-- 
Best regards,

Ruslan Zasukhin
VP Engineering and New Technology
Paradigma Software, Inc

Valentina - Joining Worlds of Information
http://www.paradigmasoft.com

[I feel the need: the need for speed]




More information about the Valentina mailing list