Variable Conversion

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a variable named blnAnswer that is a flag in a subprocedure called ValidateEntries() set to true and tripped to false if something fails. When the variable comes out of the subprocedure and everything has passed it is true, but when it gets passed to the calc function it turns to false on the DimblnAnswer as Boolean = ValidateEntries() although the subprocedure is true. We bypassed the assignment and ran the code with just the subroutine. What is going on??
 
* =?Utf-8?B?VHJhY2Vy?= said:
I have a variable named blnAnswer that is a flag in a subprocedure
called ValidateEntries() set to true and tripped to false if something
fails. When the variable comes out of the subprocedure and everything
has passed it is true, but when it gets passed to the calc function it
turns to false on the DimblnAnswer as Boolean = ValidateEntries()

Please post short, but complete code. Maybe you are creating a new
variable and never assign its value to the other variable, but that's
hard to say without code.
 
Back
Top