Visual Guard Class Library Documentation

Securise your dynamic objects

Securise your dynamic objects

Introduction

This class lets you secure your dynamic objects.

 

Dynamic objects are objects that are not visible in the Visual-Guard "Property Action" editor's treeview. In general, these objects are created by writing code and stored in an object list. Because they do not have a direct reference in the object, you cannot select them from the treeview.

Example:

By using VGExpression, you can select and modify a "Label" property such as these #this.Controls['mylabel'].Visible = false

Requirements

To use dynamic objects you must have Visual-Guard version 2.8.

Specifications

Usage

  1. Open a VGRepository

  2. Open an application

  3. Open a permission

  4. Create or edit a "Property Action"

  5. Go to "Select the component and edit the properties"

  6. Click "Add Expression"

  7. Submit your VGExpression

  8. Click "Finish"

VGExpression Type

Modifying a property of a dynamic object

To do this your property must have a get function in write mode. Your VGExpression is made up of two parts: The first is the target, the second is the value.

Example:

 

Calling an object method

You can call a method via a dynamic action.

Example:

Restrictions

See also: