Quantcast
Channel: MicroStation Programming Forum - Recent Threads
Viewing all articles
Browse latest Browse all 7260

RE: Scancriteria fence and selection set

$
0
0

[quote user="blumax57"]Else oEl.Level.Name = "z_profondita"[/quote]

Barry is correct.  Your statement attempts to assign the value "z_profondita" to the element.  That's possibly why you see the error Il nome del livello e doppio.

You can, by the way, use a Select Case statement to test string values...

Select Case oEl.Level.Name
Case "ril_quote"
  numbercase = 2
Case "z_profondita"
  numbercase = 3
Case Else
  Debug.Print "Unrecognised level name"
  numbercase = -1
End Select

Viewing all articles
Browse latest Browse all 7260

Trending Articles