ArcMap tagging Method

Source: Internet
Author: User

ArcMap tagging Method

In the tag settings of ArcMAP, there is an expression function. The advanced functions in IT support VBScript and JavaScript scripts. The following is an example.

The format of the content in the corresponding [text] field is Q #-3 #-1A1 (# + indicates the upper right corner, #-indicates the lower right corner ).CodeAs follows:

Function findlabel ([text])
Dim M, N, P
Dim m_text, super_text, sub_text
P = instr (1, [text], "#", 1)
If P> 0 then
M_text = left ([text] P-1)
M = instr (1, [text], "#-", 1)
N = instr (1, [text], "# +", 1)
If M <n then
Sub_text = mid ([text], M + 2, n-m-2)
Super_text = mid ([text], n + 2)
Else
Sub_text = mid ([text], M + 2)
Super_text = mid ([text], n + 2, m-n-2)
End if
Findlabel = m_text & "<sup>" & super_text & "</sup>" & "<sub>" & sub_text & "</sub>"
Else
Findlabel = [text]
End if
End Function

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.