Create  Edit  Diff  FrontPage  Index  Search  Changes  History  Source  RSS  wikifarm  Login

MapScript.Ja - classObj.setExpression Diff

  • Added parts are displayed like this.
  • Deleted parts are displayed like this.

!!classObj.setExpression メソッド

!!!説明
式を設定する。
public int setExpression(
   string expression
);

Public Function setExpression(ByVal expression As String) As Integer

!!!サンプル
!!!!コード
Dim _map As mapObj = New mapObj("")
Dim _layer As layerObj = New layerObj(_map)
Dim _class As classObj = New classObj(_layer)
Dim intRet As Integer

intRet = _class.setExpression("ID")
Debug.WriteLine("Retuen:" & intRet.ToString & "," & _class.getExpressionString)
→結果 Retuen:0,"ID"
!!!!マップファイル
    CLASS
      EXPRESSION "ID"
      METADATA
      END
    END
!!!参照
[[classObj メンバ]] | [[(global) 名前空間|http://wiki.fdiary.net/MapScriptJa]]