asim wrote:
if a declare a variale say
Dim Flag
and assing it to true a boolean value
Flag = True
and if i try to concatinate it with another string like
mystr="<my-str>" & Flag & "</my-str>"
and if the machine is non english the mystr will contain something like
<my-str>that language characters</my-str>
what should i do to get True in mystr what ever the Language of windows is.
I had hoped setting Response.LCID would solve that but it doesn't, maybe
the best is to write a function solving the problem
Function ToBooleanString (value)
Dim b
b = CBool(value)
If b Then
ToBooleanString = "True"
Else
ToBooleanString = "False"
End If
End Function
Dim Flag
Flag = True
Response.Write ToBooleanString(Flag) & "<br>"
Flag = Not(Flag)
Response.Write ToBooleanString(Flag) & "<br>"
--
Martin Honnen
http://JavaScript.FAQTs.com/