Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/ap/apgettextres.html on line 1

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/ap/apgettextres.html on line 1

Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/ap/apgettextres.html on line 8

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/ap/apgettextres.html on line 8

ApGetTextRes()

Get a translated text string from a widget database

Synopsis:

#include <Ap.h>

char *ApGetTextRes( ApDBase_t const *db,
                    char const *name );

Arguments:

dbase
A pointer to a widget database that you opened with either ApOpenDBase() or ApOpenDBaseFile().
name
The instance name of the text string that you want to translate.

Library:

Ap

Description:

ApGetTextRes() extracts the translated text string from the database identified by db using name as the widget instance name identifier.

Returns:

The translated text string if successful, NULL if not found, or name or db if invalid.

Examples:

ApDBase_t *mydbase;
char  *string;

mydbase = ApOpenDBase( ABM_mypicture);
string = ApGetTextRes( mydbase, "msg1" );

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

ApGetImageRes(), ApOpenDBase(), ApOpenDBaseFile()

Accessing PhAB Modules from Code and International Language Support chapters of the Photon Programmer's Guide


Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/ap/apgettextres.html on line 127

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/ap/apgettextres.html on line 127