Results 1 to 4 of 4

Thread: coding is fine,but i did not understood how it works

Threaded View

  1. #1
    Join Date
    Nov 2008
    Location
    Hyderabad
    Age
    26
    Posts
    56
    Rep Power
    9

    Default coding is fine,but i did not understood how it works

    reversing of string, output is comming correct.

    FUNCTION rev RETURNS CHAR(INPUT ll AS CHAR).
    IF LENGTH(ll) = 1 THEN
    RETURN ll.
    ELSE
    DO:

    RETURN rev(SUBSTRING(ll,2)) + SUBSTRING(ll,1,1).
    END.
    END.
    DISP rev("shireesh").


    can any one explain me how it works.
    Last edited by shireeshn; 2 Oct 2009 at 10:50 PM.

Similar Threads

  1. BEGINS how does it works??
    By remcoCaesar in forum Development
    Replies: 2
    Last Post: 2 Sep 2009, 12:49 AM
  2. X-coding in UTF-8
    By piotrk in forum Roundtable TSMS
    Replies: 0
    Last Post: 7 Apr 2004, 12:50 AM
  3. ODBC ASP and the works!!! HELP!!! PLEASE!!!
    By murphsl in forum SQL-92
    Replies: 5
    Last Post: 1 Jul 2002, 04:11 PM
  4. How this relationship works?
    By J V in forum QAD's MFG/PRO
    Replies: 2
    Last Post: 1 Nov 2001, 04:07 PM

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