Custom page fields count
How to get the number of fields in a custom page.
6 posts
CFStrCpy $0 1
ClearErrors
Read:
ReadINIStr $1 "<ini_path>\<ini_file>" "Field $0" "State"
IfErrors Stop
IntOp $0 $0 + 1
Goto Read
Stop:
IntOp $0 $0 - 1
DetailPrint "Number of fields: $0"