Skip to main content

1E SDK

Storage.Check

Method

Check

Module

Storage

Library

Core

Action

Tests the existence of a user defined persistent storage table.

Parameters

Name (string): The name of the persistent storage table. Case is not significant.

Return values

Name (string): The table's name if the storage table exists in persistent storage, else nothing.

Example

@storageName = SELECT "LoggedInAudit" AS Name;
@found = Storage.Check(Name:@storageName);
IF (@found)
    @currentEntries = Storage.Get(Name:@storageName);
ENDIF;

Platforms

  • Windows

  • Linux

  • MacOS

Notes

This method can be used with the SCALE evaluate statement to abandon processing if the persistent storage table is not present.