data types question

Results 1 to 3 of 3

Thread: data types question

  1. #1
    Join Date
    Dec 1969

    Default data types question

    bit embaressing this one....<BR><BR>I have a variable (strmyVar) that contains a string (which is "1"). I want to add one to it but I get a type mismath whatever way I try<BR><BR>Have tried to convert th string<BR><BR>i.e. myresult = CInt(strMyVar) + 1<BR><BR>but no joy there<BR><BR>have tried strMyVar + 1<BR><BR>but no joy.<BR><BR>If i do<BR><BR>Response.Write varType(strMyVar) then it displays 8 i.e. a string<BR><BR>what is the problem?

  2. #2
    Join Date
    Dec 1969

    Default RE: data types question

    appologies....I am a muppet and had made a school boy error

  3. #3
    miss piggy Guest

    Default ok kermit!! <eop>


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts