การสลับคำจาก ตัวแรกให้ไปอยู่ตัวสุดท้าย และตัวสุดท้ายมาอยู่ตัวแรก ด้วย ฟังก์ชัน StrReverse

1. StrReverse() สลับคำ กลับคำ


Syntax
InStrRev(ByVal StringCheck As String, ByVal StringMatch As String, Optional ByVal Start As Integer)

Example

Dim test_word As String
test_word = "I Love Thailand"
 

' need  dnaliahT evoL I

Dim word As Integer =  StrReverse(test_word)   'dnaliahT evoL I

จากฟังก์ชันนี้จะเห็นได้ว่า ตัวอักษรจะสลับตำแหน่งกัน จากหน้ามือเป็นหลังมือ