Re: boolean localization problem
- From: "Alex K. Angelopoulos" <alex(dot) k(dot again)angelopoulos(at)gmail.com>
- Date: Mon, 22 Jun 2009 10:22:20 -0400
"Paul Randall" <paulr901@xxxxxxxxxxxx> wrote in message news:#MQ2Pka8JHA.1252@xxxxxxxxxxxxxxxxxxxxxxx
(snipped discussion about rendering values to string by WScript.Echo and Msgbox)
Maybe not, unless I'm missing the point.
Result = 1
Expected = 1
WScript.Echo Len(Result = Expected) & vbCrLf & Result = Expected & vbCrLf & _
Len(CStr( Result = Expected )) & vbCrLf & CStr( Result = Expected )
WScript.Echo Len(Result = Expected) & vbCrLf & (Result = Expected) & vbCrLf & _
Len(CStr( Result = Expected )) & vbCrLf & CStr( Result = Expected )
(Result = Expected) is not rendered the same as Result = Expected
Output of the first statement is the same wrong output whether Result and Expected are the same or different or even undefinded.
Use Typename( ...... ) around that first statement and you may see what's happening. The problem is that the values aren't associated as you expect them to be, due to order of precedence. I get False/0 as output, since technically it's a test of whether two different strings are identical.
.
- Follow-Ups:
- Re: boolean localization problem
- From: Paul Randall
- Re: boolean localization problem
- References:
- boolean localization problem
- From: Heinz
- Re: boolean localization problem
- From: Alex K. Angelopoulos
- Re: boolean localization problem
- From: ekkehard.horner
- Re: boolean localization problem
- From: Alex K. Angelopoulos
- Re: boolean localization problem
- From: ekkehard.horner
- Re: boolean localization problem
- From: Alex K. Angelopoulos
- Re: boolean localization problem
- From: ekkehard.horner
- Re: boolean localization problem
- From: Paul Randall
- boolean localization problem
- Prev by Date: Alert Script required
- Next by Date: Re: Calling a VBScript from Access
- Previous by thread: Re: boolean localization problem
- Next by thread: Re: boolean localization problem
- Index(es):
Relevant Pages
|