home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.visual.basic      MS Visual Basic discussions, NOT dot-net      10,840 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 9,272 of 10,840   
   newsgroups to All   
   Re: Newbie -- vbscript error   
   10 Mar 05 20:22:08   
   
   XPost: comp.lang.basic.visual, alt.comp.lang.vbscript, comp.lang   
   basic.visual.misc   
   From: saugusjim@comcast.net   
      
   you forgot the line continuation mark "_"   
      
   >    tempnum = tempnum + CInt( "&H" + Mid(value1, loopit, 1)) +  _   
   > <=========== here   
   > CInt("&H"+ Mid(value2, loopit, 1))   
      
      
    wrote in message   
   news:1109277553.919064.132240@g14g2000cwa.googlegroups.com...   
   > Hi,   
   >   
   > I having a type mismatch error in a vbscript code.   
   >   
   > The code is as follows:   
   >   
   > +++++   
   >   
   >    tempnum = 0   
   >    value1 = "B6564716" 'all hex symbols i.e 0 to F   
   >    value2 = "5A5D70DD"   
   >   
   >    For loopit = Len(value1) To 1 Step -1   
   >   
   >    tempnum = tempnum + CInt( "&H" + Mid(value1, loopit, 1)) +   
   > CInt("&H"+ Mid(value2, loopit, 1))   
   >   
   >   
   >        valueans = Hex(tempnum Mod 16) + valueans   
   >        tempnum = Int(tempnum / 16)   
   >    Next   
   >   
   > +++++   
   >   
   > The error I am getting is: Type mismatch: 'CInt'   
   >   
   > Where am I going wrong??   
   >   
   > Any ideas?   
   >   
   > Thanks.   
   > Regards,   
   > Siddharam   
   >   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca