Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Grumpfish Library 3.2 - <b>memedit()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
MEMEDIT()

    MEMEDIT() permits easy editing of memo fields.  The syntax is:

    MEMEDIT(<mfield>, [<top>, <left>, <bottom>, <right>, <msg>])

    Required Parameter

    <mfield> is a character string representing the name of the memo
    field to be edited.

    Optional Parameters

    <top>, <left>, <bottom>, <right> are all numeric expressions
    representing the box coordinates (top, left, bottom, right,
    respectively).  Default box coordinates are 5, 10, 19, 69.

    <msg> is a character string to be centered at the top of your box.

    The active keys during MEMEDIT are exactly the same as those in the
    Clipper function MEMOEDIT().  Please refer to your manual for more
    specifics.

    Sample usage

    USE Letters                                       
    MEMEDIT('text', 10, 20, 15, 59, '< Edit Letter >')
    RETURN                                            

    Clipper 5.0 Notes

    a) If you use MEMEDIT() to edit local or static variables, you MUST
       pass them by reference rather than in quotes.  For example:

       MEMEDIT(@localvar, 0, 0, 24, 79)

    b) You can now pass a new parameter, <editit>:

       MEMEDIT(<cfield> [,<top>,<left>,<bottom>,<right>,<msg>,<editit>])

       <editit> is a logical indicating whether or not the memo is to be
       edited or merely viewed.  You can explicitly pass .F. if you want
       the memo to be view only.  Passing .T., or ignoring this
       parameter, will result in the memo being editable as usual.
       (Thanks to Matt Amis!)

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson