Writing Information to a form
  • JeffGrant
    Posts:32
    Joined:Thu Sep 20, 2018 3:38 pm
    Location:Sydney Australia
    Writing Information to a form

    by JeffGrant » Tue May 14, 2019 5:41 pm

    Hi, with this code which sits behind a field in a printable account statement, what function can i use to take the echo comments and write them to the printable statement. Thanks


    DECLARE STRET Type Character
    DECLARE AUXKEY1 TYPE CHARACTER
    OpenTable("c:\capital\firstcal\CUAUX000")
    AUXKEY1:=CUSTREC->CUSCODE
    CUAUX000->(FIND(AUXKEY1,,TRUE))
    STRET:= GETFIELD("APPRET","CUAUX000")
    CLOSETABLE()
    If Stret = "Yes" .OR. Stret = "yes"
    echo("Credit App Returned")
    elseif Stret = "No" .OR. Stret = "no"
    echo("No Credit App returned")
    else
    echo("Garbage in the field")
    endif
  • COBS Tech Support
    Posts:683
    Joined:Fri Sep 09, 2005 8:23 am

    Re: Writing Information to a form

    by COBS Tech Support » Tue Jun 11, 2019 11:53 am

    If the script is embedded behind a field object on a form template, then all you need to do is use the Return command. I.e.,

    Code: Select all

    If X
       Return "Print this text on the page"
    Else
      Return "Otherwise print this text"
    Endif

Who is online

Users browsing this forum: No registered users and 1 guest