__mvGet()

Template

Function

Name

__mvGet()

Category

API

Subcategory

Variable management

Oneliner

This function returns value of memory variable

Syntax

      __mvGet( <cVarName> )  --> <xVar>

Arguments

<cVarName> – string that specifies the name of variable

Returns

<xVar> The value of variable

Description

This function returns the value of PRIVATE or PUBLIC variable if this variable exists otherwise it generates a runtime error. The variable is specified by its name passed as the function parameter.

Examples

      FUNCTION MemVarBlock( cMemvar )
         RETURN {| x | ;
            iif( PCount() == 0, ;
               __mvGet( cMemvar ), ;
               __mvPut( cMemvar, x ) ) }

Compliance

Harbour

Seealso

__mvPut()

Files

Library is core

2 responses to “__mvGet()

  1. Pingback: Harbour Internal Functions | Viva Clipper !

  2. Pingback: Variable Management Functions | Viva Clipper !

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.