Viva Clipper !

__mvExist()

Advertisements

Template

Function

Name

__mvExist()

Category

API

Subcategory

Variable management

Oneliner

Determine if a given name is a PUBLIC or PRIVATE memory variable

Syntax

      __mvExist( <cVarName> )  --> <lVariableExist>

Arguments

<cVarName> – string that specifies the name of variable to check

Returns

__mvExist() return TRUE (.T.) if a MEMVAR named <cVarName> exist.

Description

This function determine if a PUBLIC or PRIVATE variable with the name <cVarName> exist or not.

Examples

      LOCAL   TheLocal
      STATIC  TheStatic
      PUBLIC  ThePublic
      PRIVATE ThePrivate
      ? __mvExist( "NotExist"   )        // .F.
      ? __mvExist( "TheLocal"   )        // .F.
      ? __mvExist( "TheStatic"  )        // .F.
      ? __mvExist( "ThePublic"  )        // .T.
      ? __mvExist( "ThePrivate" )        // .T.

Compliance

Harbour

Seealso

MEMVAR, PRIVATE, PUBLIC

Files

Library is core

Advertisements

Advertisements