__mvExist()

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

2 responses to “__mvExist()

  1. Pingback: Harbour Internal Functions | Viva Clipper !

  2. Pingback: Variable Management Functions | Viva Clipper !

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

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