This project is read-only.

Problem with display image insted of point.

Mar 8, 2013 at 10:04 AM
Edited Mar 8, 2013 at 10:06 AM
Hi all
I have problem again.

I use code below(see line 2.) to display image insted of point.

ct = sfDepth.Categories.Add("d3")
ct.Expression = "[HIGHT] = 20 "
ct.DrawingOptions.PointType = MapWinGIS.tkPointSymbolType.ptSymbolPicture
ct.DrawingOptions.Picture = Img3
sfDepth.Categories.ApplyExpressions()

It's work for me.

In line 2 when I use
ct.Expression = "[COLOR] = green "
it's not work .

I know that fieldtype of [HIGHT] is integer but field [COLOR] is string.

How can I do ???

ps. I see link below but I cant do.
http://www.mapwindow.org/documentation/mapwingis4.8/_minimal_distance_8cs-example.html#a18
http://www.mapwindow.org/documentation/mapwingis4.8/_select_by_distance_8cs-example.html#a6
http://www.mapwindow.org/documentation/mapwingis4.8/_point_icons_8cs-example.html#a17
Mar 8, 2013 at 2:03 PM
Try this:

ct.Expression = "[COLOR] = \"green\""
Mar 11, 2013 at 3:12 AM
Hi heste015

It's not work !!!
I am use VB.NET 2010 + Mapwingis4.8

How can I do ??? Please.
Mar 11, 2013 at 4:34 AM
Hi all
I found how to solve it.
In vb.net have to use double quote (") instede of backslash().
Then in vb.net have to use "[COLOR] = ""green""" .
Mar 11, 2013 at 1:27 PM
Ah, I see. I should have paid more attention to the syntax of your code. I was thinking C# :)

Glad you got it working.
Brad