Update cookies preferences
Promotic

Oct - function of language VBScript

Description:
Returns a string that represents the octal value of a number.
In the PROMOTIC system it is better to use the PmFormat object, see The usage of Radix for formatting numbers into octal form.
Syntax:
String Oct(Long number)
Parameters:
number(Long) Any valid numeric expression.
Note:
If number is not already a integer, then it is rounded to the nearest integer before being evaluated.
If number is function returns
Null Null
Empty Zero (0)
Any other number up to 11 octal characters

Octal numbers can be entered directly by preceding numbers in the proper range with &O. For example, &O10 is the octal notation for decimal 8.
Example:
VBScriptSelect and copy to clipboard

Dim sOct
sOct = Oct(4)   ' Returns "4"
sOct = Oct(10)   ' Returns "10"
sOct = Oct(459)   ' Returns "713"
PROMOTIC 9.0.31 SCADA system documentation MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r.o.