@Trim

@TRIM 將移除前置空格或後置空格。

DTP 類型:

可以將 @TRIM 指派給成員多個成員字串 或是密碼 類型的 DTP。

語法:

@TRIM(String)

參數:

參數 描述
String 設計時期提示或文字

範例:

[TRIM_ST]=@TRIM([String1])

其中:

  • [TRIM_ST] 是非勾選提示之字串 類型的 DTP。

  • [String1] 是勾選提示之字串 類型的 DTP。

假設參數如下:

字串:"This is a test of leading and trailing spaces"

此參數在文字的前後有空格。將顯示為:

String1 =       this is a test of leading and trailing spaces