Archive: WriteINIBool?


WriteINIBool?
How can I write a boolean to a ini file?

The only thing I could find in the docs was this: "4.9.2.13 WriteINIStr"

but that's for strings ! what about bool?

WriteINIBool $TEMP\something.ini section1 something True


Why you cann't use WriteIniStr?


Just write 0 or 1. In real programming languages booleans are nothing more than 0 False or 1 True.

You could also write the string "True" or "False", or even better write ${True} or ${False} and add these defines into your script:

!define True 1
!define False 0

-Stu