แชร์ผ่าน


Replacer.ReplaceText

วากยสัมพันธ์

Replacer.ReplaceText(text as nullable text, old as text, new as text) as nullable text

ประมาณ

แทนที่ข้อความ old ใน text ต้นฉบับด้วยข้อความ new ฟังก์ชันตัวแทนที่นี้สามารถใช้ได้ใน List.ReplaceValue และ Table.ReplaceValue

ตัวอย่างที่ 1

แทนที่ข้อความ "hE" ด้วย "He" ในสตริง "hEllo world"

การใช้งาน

Replacer.ReplaceText("hEllo world", "hE", "He")

ผลลัพธ์ของ

"Hello world"