Jump to content



Photo
- - - - -

StrToExp Bug


  • Please log in to reply
4 replies to this topic

#1 CrimsonCasio

CrimsonCasio

    UCF Ambassador

  • [Legends]
  • PipPipPipPipPipPipPipPipPipPip
  • 3579 posts
  • Gender:Male
  • Location:USA
  • Interests:Claculators, Stephen King, Video Games, Calculators, Programming, Calculators, Reading, Calculators... hmm, what else... Ah! Calculators!

  • Calculators:
    Algebra FX2.0, CFX 9850Ga+, Classpad 300

Posted 13 December 2003 - 06:01 PM

I think this is a bug, but I need someone to tell me if it happens on their calc too (someone whit rom version 1.20 and someone with 1.00 would be nice). here it is:

StrToExp("{1,2,\"bob\"}")=>var

it should put {1,2,"bob"} in var but its giving me an error, can someone confirm its not just me?

#2 Lovecasio

Lovecasio

    Casio Freak

  • Members
  • PipPipPipPip
  • 242 posts
  • Location:Hochiminh city Vietnam
  • Interests:Organic chemistry.<br />Pharmacy

  • Calculators:
    fx 570 MS, Casio AFX 2.0+, ClassPad 300

Posted 16 December 2003 - 01:41 AM

Hi.
I dont know much about string command. But I think the StrToExp means change the string to expression. As you wrote in the code, if the ClassPad can do, it will return the LIST type, not an expression. So far, the comma cannot be contained in the expression.
Do you agree? :rolleyes:

#3 CrimsonCasio

CrimsonCasio

    UCF Ambassador

  • [Legends]
  • PipPipPipPipPipPipPipPipPipPip
  • 3579 posts
  • Gender:Male
  • Location:USA
  • Interests:Claculators, Stephen King, Video Games, Calculators, Programming, Calculators, Reading, Calculators... hmm, what else... Ah! Calculators!

  • Calculators:
    Algebra FX2.0, CFX 9850Ga+, Classpad 300

Posted 16 December 2003 - 05:14 PM

Hi.
I dont know much about string command. But I think the StrToExp means change the string to expression. As you wrote in the code, if the ClassPad can do, it will return the LIST type, not an expression. So far, the comma cannot be contained in the expression.
Do you agree?  :rolleyes:

no, an expresion can be just about anything, I've almost got it to the point of executing code :) , try it without the string in it and you can see it work.

#4 Lovecasio

Lovecasio

    Casio Freak

  • Members
  • PipPipPipPip
  • 242 posts
  • Location:Hochiminh city Vietnam
  • Interests:Organic chemistry.<br />Pharmacy

  • Calculators:
    fx 570 MS, Casio AFX 2.0+, ClassPad 300

Posted 18 December 2003 - 05:09 AM

Yes. I see. Thanks for giving me new knowledge about ClassPad. :)
May be that is a bug. Classpad cannot change "string in string" like your code.
I think we could use this instead:
StrToExp({1,2,x})=>a
"bob"=>a3
Is it OK :greengrin:

#5 CrimsonCasio

CrimsonCasio

    UCF Ambassador

  • [Legends]
  • PipPipPipPipPipPipPipPipPipPip
  • 3579 posts
  • Gender:Male
  • Location:USA
  • Interests:Claculators, Stephen King, Video Games, Calculators, Programming, Calculators, Reading, Calculators... hmm, what else... Ah! Calculators!

  • Calculators:
    Algebra FX2.0, CFX 9850Ga+, Classpad 300

Posted 18 December 2003 - 05:58 AM

yes, but that wont work for my purposes... unfortunatley list is limiting my encryption program to strings only, everything else is unreliable.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users