Infrastructure Map Server Forum
Welcome to Autodesk’s Infrastructure Map Server Forums. Share your knowledge, ask questions, and explore popular Infrastructure Map Server topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

What exactly does Mapguide mean by Null

1 REPLY 1
Reply
Message 1 of 2
Anonymous
202 Views, 1 Reply

What exactly does Mapguide mean by Null

I am developing an appication via the API using client side VBScript. My app
invloves redlining and I must therefore test for existence of my redline
layer.

I am trying to test a variable which stores the layer object using the
IsNull(), IsObject() and IsEmpty() functions in VB. Whether an object exists
or not I always get the same results as follows:

IsNull():False
IsObject():True
IsEmpty(): False

I can verify the contents of the variable by writing it to the screen where
it returns [object] or [null] as I would expect, but none of the VB
functions identify null appropriately. Is there a new concept of a null
object that Microsoft are unaware of ??

Any ideas what is happening ?

Thanks,

Gary
1 REPLY 1
Message 2 of 2
Anonymous
in reply to: Anonymous

Use this to check for existence of Your redline layer:

If map.getMapLayer("YourLayerName") is Nothing then
myLayer = map.createLayer("redline", "YourLayerName")
End If


--
Krasnokutski Andrey
Russia, Yaroslavl
mailto:avk@kamisever.ru

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report