Re: How to change the value of Boolean variable?
- From: "MikeD" <nobody@xxxxxxxxxxx>
- Date: Sun, 23 Oct 2005 13:46:39 -0400
"Hal Rosser" <hmrosser@xxxxxxxxxxxxx> wrote in message
news:ZCP6f.2345$NJ.1987@xxxxxxxxxxxxxxxxxxxxxxxxx
>
> "Jack" <replyto@newsgroup> wrote in message
> news:e5jLtB$1FHA.3856@xxxxxxxxxxxxxxxxxxxxxxx
>> dim MyVar as Boolean
>> dim lpString as String
>>
>> lpString = "True"
>> myVar = lpString
>>
>> My vbasic5 dos not object that and assigns True value to myVar.
>>
>> Is this correct way, or it is wrong?
>> Your thoughts please,
>> Jack
>
> When you put quotes around the word True, you're making a String.
> Dim myVar as Boolean
> myVar = True
> (Just leave off the quotes)
You're missing the point of his question. <g>
--
Mike
Microsoft MVP Visual Basic
.
- Follow-Ups:
- Re: How to change the value of Boolean variable?
- From: Hal Rosser
- Re: How to change the value of Boolean variable?
- References:
- How to change the value of Boolean variable?
- From: Jack
- Re: How to change the value of Boolean variable?
- From: Hal Rosser
- How to change the value of Boolean variable?
- Prev by Date: Re: Outlook Automation Problem
- Next by Date: Re: Errors
- Previous by thread: Re: How to change the value of Boolean variable?
- Next by thread: Re: How to change the value of Boolean variable?
- Index(es):
Relevant Pages
|