"Cannot convert number to string"

by Docfxit (Login Docfxit)
R

I'm getting an error with this combination during compile.

"Cannot convert number to string" on the if statement.

DIM debugflag AS STRING

debugflag = "Onn"

IF debugflag = "Onn"

What is the proper syntax?

Thanks,

Docfxit

Posted on Dec 7, 2011, 1:40 PM

Respond to this message   

Return to Index


Response TitleAuthor and Date
IF can only use a numerical value that way. on Dec 7
 If that's the case this should work?Docfxit on Dec 7
  * THEN what?... on Dec 7
   I figured it outDocfxit on Dec 7
    * It didn't need SHARED because it isn't in a SUB. Worked 4 me on Dec 7
Convert number to a stringTheunis on Dec 28
 Re: Convert number to a stringTheunis on Dec 28