PA_GetStructureName

4D - Documentation   Français   English   German   4D Plugin API, Command Theme List   4D Plugin API, Command Alphabetical List   Back   Previous   Next

version 2003


PA_GetStructureName (structName)

ParameterTypeDescription
structNamechar *Pointer to a char buffer
Name of the structure

Description

The routine PA_GetStructureName fills the data pointed to by structName with the name of the current structure.

NOTE

structName can contain up to 255 characters.

Be sure to leave enough room for the path. It is a good habit to always use 255 length strings (declared as Str255 under MacOS or char[256] under Windows).

Example

Creating a name for a private file name (only the file name, not the full path).


   char name[256];

   PA_GetStructName( name );
   strcat( name, "_Prefs");

See Also

PA_GetDataName, PA_GetLogName, PA_GetStructureFullPath.

Error Handling

PA_GetLastError always returns eER_NoErr


4D - Documentation   Français   English   German   4D Plugin API, Command Theme List   4D Plugin API, Command Alphabetical List   Back   Previous   Next