Language function, Language function -14 – Rockwell Automation FactoryTalk View Machine Edition Users Guide User Manual

Page 492

Advertising
background image

F

ACTORY

T

ALK

V

IEW

M

ACHINE

E

DITION

U

SER

S

G

UIDE

23-14

• •

For more information about setting up security for your application, see Chapter 11.

For an example of using the CurrentUserHasCode(x) function, see page 11-17. For
examples of using the CurrentUserName( ) function, see page 11-17.

Language function

The language function shows you which language your application is currently using.

You can show the current language in a string display, or use it in expressions to generate
language-specific messages for your users.

The RFC1766 name is a standard way of representing a language using the format:
languagecode-Country/RegionCode

where languagecode is a lowercase two-letter code and Country/RegionCode is an
uppercase two-letter code.

For example, U.S. English is en-US.

For more information about setting up languages for your application, see Chapter 12. For
a list of RFC1766 names, see Appendix F.

CurrentUserHasCode
(Security Code Letters)

True (1) if any of the specified security codes have been assigned
to the user; false (0) if not.

If checking multiple security codes, do not type a space between
the security code letters.

For example: CurrentUserHasCode(ABP) returns the value 1 if the
user has been assigned one or more of the specified codes.

CurrentUserHasGroup(“Group
Name”
)

True (1) if the current user is assigned to the specified group
configured in FactoryTalk Directory; false (0) if not.

This function is only supported in 8.0 and later versions of
FactoryTalk ME applications.

The group name must be enclosed with double quotes.

For example, CurrentUserHasGroup(“Group A”) returns the value
1 if the user has been assigned to Group A.

This function

Returns this value

CurrentLanguage( )

RFC1766 name of the current run-time language.

This function

Returns this value

Advertising