When i'm trying to use replace or trim function getting following error
Microsoft VBScript compilation (0x800A03EE)
Expected ')'
/codepost.asp, line 14, column 25
sMyString = trim(My_Array[1])
Microsoft VBScript compilation (0x800A03EE)
Expected ')'
/codepost.asp, line 14, column 25
sMyString = trim(My_Array[1])
Code:
dim value
value = ("Value1, Value2")
Dim My_Array
redim My_Array(2)
My_Array=split(value,",")
sMyString = Replace(My_Array[1]," ", "")
sMyString = trim(My_Array[1])
Comment