Thanks,

There was the problem...

I have an other question...

I need to create a temporary layer where I want to put only some features
cloned and modified
from an other one. What is the most efficient way to achive this goal ?
( My initial solution was something like this )

...

templi.Type = 6
templi.AddParameter "Features", InitialLayer.AllFeatures
templi.AddParameter "Name", "selections"
Set templ = oMapx.Layers.Add(templi)

...



Regards,

Michel Van Asten



-----Message d'origine-----
De: Philip Waight [mailto:[EMAIL PROTECTED]]
Envoy�: mardi 24 septembre 2002 0:03
�: Michel Van Asten
Objet: Re: MI-L Mapx highlighting


Michel,
I think your method is fine except that the line "l.overridestyle = true"
will cause all your individual feature updates to be ignored. Fix by setting
this to FALSE.
Phil.

----- Original Message -----
From: "Michel Van Asten" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, September 23, 2002 7:12 PM
Subject: MI-L Mapx highlighting


> Hi,
>
> Probably a stupid question...
> I need to display more than one selection at the same time one the map
>  with different colors )
> I also do not want to use a thematics ( for some reason to long to
> explain ).
> Some I want to to do something like the code below. But when I execute the
> following code
> the colors are not modifyed... Why ????
>
>
> Dim f As Feature
>     Dim fn As Feature
>
>
>     Dim li As New LayerInfo
>     Dim l As Layer
>
>     Map1.Layers
>
>     li.Type = miLayerInfoTypeTab
>     li.AddParameter "FileSpec", "C:\temp\B_PC4_mod.TAB"
>     li.AddParameter "Name", "postal"
>
>
>
>     Set l = Map1.Layers.Add(li)
>
>
>     l.Editable = True
>
>
>     l.KeyField = "Pc4_Code"
>     l.OverrideStyle = True
>     For Each f In l.AllFeatures
>         If f.KeyValue = "5660" Then
>             f.Style.PickRegion
>             f.Update True
>             Exit For
>         End If
>     Next f
>
> Regards,
>
> Michel Van Asten
>
>
>
> ---------------------------------------------------------------------
> List hosting provided by Directions Magazine | www.directionsmag.com |
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> Message number: 3193
>




---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 3216

Reply via email to