CODE 函數

Applies To
SharePoint Server 2019 SharePoint Server 2016 SharePoint Server 2013 SharePoint Server 2013 Enterprise SharePoint Foundation 2010 SharePoint Server 2010 Windows SharePoint Services 3.0

傳回文字字串中第一個字元的字碼。 傳回的代碼會對應至您電腦所使用的字元集。

語法

CODE (文字)

文字 是您想要文字字串中第一個字元的代碼的文字。

範例

公式 描述 (結果)
=CODE("A") 顯示 A (65) 的代碼
=CODE("!") 顯示 ! 的字碼 (33)