Difference between revisions of "Documentation/How Tos/Calc: INFO function"
From Apache OpenOffice Wiki
< Documentation | How Tos
m |
m |
||
| Line 14: | Line 14: | ||
: <tt>'''type'''</tt> is a text string which determines the type of information to return: | : <tt>'''type'''</tt> is a text string which determines the type of information to return: | ||
| − | + | {| border="1" cellpadding="10" cellspacing="10" align="left" | |
| − | {| border=" | ||
|-valign="top" | |-valign="top" | ||
| − | | | + | !type||information returned |
| − | |information returned | ||
| − | |||
|-valign="top" | |-valign="top" | ||
| − | |"<tt>'''osversion'''</tt>" | + | |"<tt>'''osversion'''</tt>"||Always "<tt>'''Windows (32-bit) NT 5.01'''</tt>", for compatibility reasons. |
| − | |Always "<tt>'''Windows (32-bit) NT 5.01'''</tt>", for compatibility reasons. | ||
| − | |||
|-valign="top" | |-valign="top" | ||
| − | |"<tt>'''system'''</tt>" | + | |"<tt>'''system'''</tt>"||The type of the operating system:<br/>"<tt>'''WNT'''</tt>" for Microsoft Windows |
| − | |The type of the operating system:<br/>"<tt>'''WNT'''</tt>" for Microsoft Windows | + | "<tt>'''LINUX'''</tt>" for Linux<br/>"<tt>'''SOLARIS'''</tt>" for Solaris. |
| − | |||
|-valign="top" | |-valign="top" | ||
| − | |"<tt>'''release'''</tt>" | + | |"<tt>'''release'''</tt>"||The product release identifier, for example "<tt>'''680m9(Build:9238)'''</tt>". |
| − | |The product release identifier, for example "<tt>'''680m9(Build:9238)'''</tt>". | ||
| − | |||
|-valign="top" | |-valign="top" | ||
| − | |"<tt>'''numfile'''</tt>" | + | |"<tt>'''numfile'''</tt>"||Always <tt>'''1'''</tt>, for compatibility reasons. |
| − | |Always <tt>'''1'''</tt>, for compatibility reasons. | ||
| − | |||
|-valign="top" | |-valign="top" | ||
| − | |"<tt>'''recalc'''</tt>" | + | |"<tt>'''recalc'''</tt>"||The current formula recalculation mode, either "<tt>'''Automatic'''</tt>" or "<tt>'''Manual'''</tt>", |
| − | |The current formula recalculation mode, either "<tt>'''Automatic'''</tt>" or "<tt>'''Manual'''</tt>", or the equivalent in your language ( | + | or the equivalent in your language ({{menu|Tools|Options|Language Settings|Language}}). |
|} | |} | ||
| − | + | ||
<br style="clear:both;" /> | <br style="clear:both;" /> | ||
Latest revision as of 12:07, 2 February 2024
INFO
Returns information about the current working environment.
Syntax:
INFO(type)
- type is a text string which determines the type of information to return:
| type | information returned |
|---|---|
| "osversion" | Always "Windows (32-bit) NT 5.01", for compatibility reasons. |
| "system" | The type of the operating system: "WNT" for Microsoft Windows "LINUX" for Linux |
| "release" | The product release identifier, for example "680m9(Build:9238)". |
| "numfile" | Always 1, for compatibility reasons. |
| "recalc" | The current formula recalculation mode, either "Automatic" or "Manual",
or the equivalent in your language (Tools → Options → Language Settings → Language). |
Example:
INFO("system")
- returns WNT on a Windows system, or other text on other operating systems as above.
See Also