OriginPro 2021 (64-bit) Beta 4 9.8.0.138
Windows 7 Pro x64 SP1
Greetings!
I want to set custom date format for a worksheet column and try to understand an example from https://www.originlab.com/doc/LabTalk/ref/Wks-Col-obj#Set_Custom_Date_FormatCustom_Date_FormatDate_Format.2C_Customization:
// Surround non-date characters in specifier by single quotes:
wks.col2.SetFormat(4, 22, yyyy'.'MM'.'dd);
Here subformat is set to 22, but the same page above tells:
quote:
Subformat options as listed in the Display drop-down list of the Worksheet Column Format dialog box (in the Origin GUI, select Format pull-down menu, then select Column ... option to open this dialog). To get the appropriate number of the option you want, simply count down from the top of the list of Display options. Make sure the desired Format has been selected first.
Here is my Display drop-down list:

The Custom Display option has a serial number (from top to bottom) of 24, but not 22.
Does the online help stay behind the Origin development or here is some different logic?
---
Andrey