Alpha Video Training
Results 1 to 5 of 5

Thread: <%a5 %> question

  1. #1
    "Certified" Alphaholic
    Real Name
    Gregg Schmidt
    Join Date
    Mar 2001
    Location
    Milwaukee
    Posts
    1,389

    Default <%a5 %> question

    How do I get this to display on multiple lines ?

    Code:
    	<%a5? "Welcome back "+alltrim(session.tmp_user_first_name)+space(1)+alltrim(session.tmp_user_last_name)+crlf()
    	? convert_type(now(),"C") %>
    The help to stop me from banging my head against the desk will be greatly appreciated.

    Gregg

  2. #2
    Alpha Software Employee Lenny Forziati's Avatar
    Real Name
    Lenny Forziati
    Join Date
    Nov 2001
    Location
    Alpha Software
    Posts
    4,695

    Default Re: <%a5 %> question

    HTML collapses all white space down to just a single space, so crlf() is just shown as a space when displayed in a browser. Use <br /> to get an HTML line break.

    Lenny Forziati
    Vice President, Internet Products and Technical Services
    Alpha Software Corporation

  3. #3
    "Certified" Alphaholic
    Real Name
    Gregg Schmidt
    Join Date
    Mar 2001
    Location
    Milwaukee
    Posts
    1,389

    Default Re: <%a5 %> question

    ohoh...that really broke it.

  4. #4
    "Certified" Alphaholic
    Real Name
    Gregg Schmidt
    Join Date
    Mar 2001
    Location
    Milwaukee
    Posts
    1,389

    Default Re: <%a5 %> question

    ok...just as quick, it works.

    Code:
    <%a5 ?  "Welcome back "+alltrim(session.tmp_user_first_name)+space(1)+alltrim(session.tmp_user_last_name)+"<br />"+convert_type(now(),"C")
    %>

  5. #5
    Member totallycovered's Avatar
    Real Name
    Derek Schaefer
    Join Date
    Jun 2010
    Location
    Orlando, FL
    Posts
    121

    Default Re: <%a5 %> question

    Thanks. Here is what I did, which is basically put the <br> outside of the a5 code:
    ...
    Client: <%A5 ? session.clientname %><br>
    Company/Location: <%A5 ? session.companyname %>
    ...

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •