บทความ

กำลังแสดงโพสต์จาก มกราคม, 2009

substr

รูปแบบของการ substr substr ( 'abcdef' , 1 ); // bcdef substr ( 'abcdef' , 1 , 3 ); // bcd substr ( 'abcdef' , 0 , 4 ); // abcd substr ( 'abcdef' , 0 , 8 ); // abcdef substr ( 'abcdef' , - 1 , 1 ); // f

คำนวณอายุ

age = DateDiff(DateInterval.Year, CDate(birthday), Now.Date, Microsoft.VisualBasic.FirstDayOfWeek.Monday, FirstWeekOfYear.Jan1)

split คือ คำสั่งตัดคำ

Dim splitfilename As String Dim DocumentNamesplit As String splitfilename = DocumentName.Split(CChar("\")) 'คำสั่งที่ใช้ในการตัดชื่อ part "\" คือสิ่งที่ต้องการที่จะตัด DocumentNamesplit = splitfilename(splitfilename.Length - 1) 'ส่วนนี้เป็นส่วนที่เหลือแต่ชื่อหลังจากการตัด Part แล้ว