NAME=GetModified
AUTHOR=
ITEM=function GetModified(handle$, prevContents$)
DESCRIPTION=Function returns 1, if the text control specified by handle$ is modified, otherwise 0. The programmer must provide a string to hold the contents of a control in the main code.
OUTSIDE CODE=

function GetModified(handle$, prevContents$)
    'Arguments:
        'handle$ - handle of a text window, textbox or texteditor
        'prevContents$ - providing a string for control contents is the programmer's
        'task. Just associate a string for each text control but don't modify it
        'outside the function
    'Returns non-zero (1), if contents have been modified
    #handle$, "!contents? temp$"
    if temp$ <> prevContents$ then GetModified = 1
end function
