RenameLogo

Use this procedure/function to rename a graphic (LOG).

Syntax

RenameLogo (Graphic, NewName, Section, Form, Group)

Parameter

Description

Graphic

Enter the name of the graphic you want to rename. Graphic names are assigned in Studio.

NewName

Enter the new name for the graphic.

Section

Enter the name of the section that contains the specified graphic. The default is the current section.

Form

Enter the name of the form that contains the section. The default is the current form.

Group

Enter the name of the group to use to locate the specified object. The default is the current group.

The system returns one (1) on success or zero (0) on failure.

This procedure renames the graphic you specify. The Logo procedure, which adds a graphic on the fly, names the new graphic using the name you specify.

If you want a more generic name so you can address the graphic again without knowing the file associated with it, use this procedure after you use the Logo procedure.

You must specify both the Graphic and NewName parameters.

Example

Here are some examples:

Procedure

Result

Explanation

RenameLogo("Log1", "Jane Doe")

1 or 0

Renames Log1 (on the current section, form, and group) to Jane Doe.

RenameLogo("Log1","Jane Doe","IMH1\3", "UpRate")

1 or 0

Renames Log1 (on the 3rd occurrence of the named section, IMH1, on the form, UpRate) to Jane Doe.

See also