Skip to Content
author's profile photo Former Member
Former Member

How to use substring in ITS(HTML file)

Hai,

I am modifying d_searchhelp.html file in agate. I want a use a substring function this file. So I used the below code.

newclassname=~searchhelpcontrolname;

oldclassname=newclassname.substring(0,8);

^ ^ ^

This is the error i got when i use this HTML file in searchhelp.

@ ...\templates\system\dm\msiexplorer\d_searchhelp.html (263,42): error : syntax error : '('

@ ...\templates\system\dm\msiexplorer\d_searchhelp.html (263,44): error : syntax error : ','

@ ...\templates\system\dm\msiexplorer\d_searchhelp.html (263,46): error : syntax error : ')'

Please let me know how to use substring.

Thanks & Regards,

H.K.Hayath Basha

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on Nov 29, 2007 at 11:05 AM

    Hello H.K.Hayath Basha,

    please see the HTML Business documentation on <http://help.sap.com/saphelp_nw04/helpdata/en/5f/1fb5174aee11d189740000e8322d00/frameset.htm>:

    string strSub (in string string, in int position, in int length)

    With regards,

    TJ

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 30, 2007 at 05:49 AM

    Hai,

    Thanks for the link.

    Regards,

    H.K.Hayath Basha.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.