Hi, i want to use substring function in my ASP page , please tell me what is the right syntax, following is the my code, but i am facing a error, please check this code. <% Dim strVar Dim strVar1 strVar="saqib" strVar1=substring(strVar,1,3) response.write strVar1 %> Thanks, Bye.
In this case, use Left function: <% Dim strVar Dim strVar1 strVar="saqib" strVar1=Left(strVar,3) response.write strVar1 %> Code (markup): It will display saq. See examples of Left(), Right() and Mid() functions.