[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 SWPGETSTR() / SWPGETSTRBAS()  Retrieve string sent from child process via SWPSETSTR()
------------------------------------------------------------------------------

 Function : Retrieve string sent from child process via SWPSETSTR()

 Syntax   : cString = SWPGETSTR()

 Return   : A string

 SWPGETSTR() is used within the parent program to retrieve the string set by
 the child program.

 Example:

    // Parent program
    SWPSETPID("PARENT")
    SWPRUNCMD("child",0,"","")
    string = SWPGETSTR()
    ? "The string returned is :", string         // 'Hello'
    * eof parent
    
    // Child program
    if SWPGETPID("PARENT")
       SWPSETSTR("PARENT","Hello")
    endif
    quit
    * eof child

See Also: SWPADDSTR() SWPGETPID() SWPSETPID() SWPSETSTR()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson