Added September 2025
tab(-10, AG_LANGUAGE); lang$; chr(127);
AG_LANGUAGE (116) queries or sets the ATE / Windows client LDF LANGUAGE setting. It is equivalent to the existing MX_LANGUAGE function but applies to the ATE or Windows client rather than the machine on which the application is running.
If the lang$ parameter is empty, it will send back the current language name in the keyboard buffer. Otherwise it will change the current language to the specified value$ and return nothing in the keyboard buffer.
Example
? TAB(-10, AG_LANGUAGE); chr(127); ! query
input "", LANG$ ! return name of current language
? TAB(-10, AG_LANGUAGE); LANG$; chr(127);
! set (no response to this operation)
The LANG$ parameter may be just the name (e.g. ENGLSH or SPANSH), in which case it will look in the usual places for the LDF file of that name. Or you may specify a complete filespec (relative to the client).
The only way to determine if the set operation worked is to follow it with a query.