Re: boolean localization problem



"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.

.



Relevant Pages

  • text render size ?
    ... including the String. ... I have found that when rendering a uicontrol, that on my system, ... Using the ui font editor, ... if the characters happen to be relatively thin in proportionate ...
    (comp.soft-sys.matlab)
  • DirectRendering/Nvidia
    ... rendering is somehow disabled. ... server glx vendor string: NVIDIA Corporation ... OpenGL renderer string: GeForce2 MX/AGP/SSE2 ...
    (Fedora)
  • Render html-string / jsp tags
    ... I'm using struts to program a web-based bookmark manager. ... cached version is a blob in the database. ... The action for rendering the ... I'm now wondering how to render this string in a jsp page using the tag ...
    (comp.lang.java.programmer)
  • Re: Speeding it up
    ... The issue is that currently the system indicate that his HW can write 125 string a frame at 60hz. ... >From this you can tell what is the string rendering overhead VS DX rendering a non empty scene. ... > Stephan Schaem wrote: ...
    (microsoft.public.win32.programmer.directx.graphics)
  • Re: UTF-16 encoded HTML
    ... >Since JEditorPane is stuck rendering HTML 3.2, ... You want first to find out if the problem is getting the String ...
    (comp.lang.java.gui)