VB .NET 규칙에 따라 공식 또는 함수를 정의할 수 있습니다. 자세한 정보는 http://msdn.microsoft.com/vbasic을 참고하십시오.
공식 컨트롤을 사용하여 값을 더하고, 빼고, 곱하고, 나누는 작업을 수행할 수 있습니다.
일부 샘플 공식:
result="The FID is " & {FID}& "."
result = Me.ConnectionTools.LngValue("select count(*) from <table> where column=" & LngValue("parent_fid"))
if Me.GeometryAvailable then result="Geometry available" Me.ForeColor="" Me.BackColor="" else result="No Geometry available" Me.ForeColor="white" 'These are HTML colors ! Me.BackColor="red" end if
함수를 두 번 호출하는 것을 방지하기 위해 임시 변수 c가 사용됩니다.
dim c as integer c = me.DocumentCount if c=0 then result="No Documents available" Me.BackColor="" else result=c & " Document(s) available" Me.BackColor="red" end if
Result = {HEIGHT} + 20 Result = {HEIGHT} * 20 Result = {HEIGHT} / 20 Result = {HEIGHT} – 20
Result = {HEIGHT_1} + {HEIGHT_2} *10 Result = {attribute name1} * {attribute name3} *10
result = {TEXT1} & {TEXT2}
머리말과 꼬리말 추가
result = "Approx. " & {AREA} & "m2"
result = "MH " & {FID}
Dim d As Date Dim t As System.TimeSpan d = Me.Value("maintenance_next_date") t = d.Subtract(now) result=t.Days