Returns an integer representing the data type of a value: number = 1; text = 2; logical value = 4; error value = 16; array = 64; compound data = 128.
Name | Type | Description |
arg1 | any | Can be any value. |
builder.CreateFile("xlsx"); var oWorksheet = Api.GetActiveSheet(); var oFunction = Api.GetWorksheetFunction(); oWorksheet.GetRange("A1").SetValue(oFunction.TYPE(255)); oWorksheet.GetRange("A2").SetValue(oFunction.TYPE(true)); oWorksheet.GetRange("A3").SetValue(oFunction.TYPE("Online Office")); builder.SaveFile("xlsx", "TYPE.xlsx"); builder.CloseFile();