-
-
Notifications
You must be signed in to change notification settings - Fork 344
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Alexey
committed
Jun 22, 2024
1 parent
f483e65
commit fcfd551
Showing
1 changed file
with
4 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,12 +4,11 @@ | |
* | ||
* Data validation is a feature of Excel which allows you to restrict the data | ||
* that a user enters in a cell and to display help and warning messages. It | ||
* also allows you to restrict input to values in a drop down list. | ||
* also allows you to restrict input to values in a dropdown list. | ||
* | ||
* Copyright 2014-2021, John McNamara, [email protected] | ||
*/ | ||
|
||
|
||
#include "xlsxwriter.h" | ||
|
||
/* | ||
|
@@ -152,7 +151,7 @@ int main() { | |
*/ | ||
worksheet_write_string(worksheet, | ||
CELL("A13"), | ||
"Select a value from a drop down list", | ||
"Select a value from a dropdown list", | ||
NULL); | ||
|
||
const char *list[] = {"open", "high", "close", NULL}; | ||
|
@@ -168,7 +167,7 @@ int main() { | |
*/ | ||
worksheet_write_string(worksheet, | ||
CELL("A15"), | ||
"Select a value from a drop down list (using a cell range)", | ||
"Select a value from a dropdown list (using a cell range)", | ||
NULL); | ||
|
||
data_validation->validate = LXW_VALIDATION_TYPE_LIST_FORMULA; | ||
|
@@ -207,7 +206,7 @@ int main() { | |
lxw_datetime datetime3 = {0, 0, 0, 6, 0, 0}; | ||
lxw_datetime datetime4 = {0, 0, 0, 12, 0, 0}; | ||
|
||
data_validation->validate = LXW_VALIDATION_TYPE_DATE; | ||
data_validation->validate = LXW_VALIDATION_TYPE_TIME; | ||
data_validation->criteria = LXW_VALIDATION_CRITERIA_BETWEEN; | ||
data_validation->minimum_datetime = datetime3; | ||
data_validation->maximum_datetime = datetime4; | ||
|