I tried to use either a CheckBox or Radio Button to set a
Boolean variable but I get Cast error message with either
when I try to use the Boolean in an IF statement.
How can I use the Check box control to set the Boolean
and not get a cast error later in the code with I try to
use the Boolean in an If statement?
Thanks!
Bob
----------------------------
blnGetAllFolders = RadioButton1
blnGetAllFolders = CheckBox1
....
If blnGetAllFolders Then
....
-----------------------------
Resulting Error message:
An unhandled exception of
type 'System.InvalidCastException' occurred in
microsoft.visualbasic.dll
Additional information: Operator is not valid for Boolean
and RadioButton (or CheckBox).