Re: TIB: Storing an expr w/o evaluating it (for TI-92)


[Prev][Next][Index][Thread]

Re: TIB: Storing an expr w/o evaluating it (for TI-92)




What I want to do is precisely to use a program like the one you proposed,
but I want that newvar=x+3 even if x already exist (in example if x=2, I
don't want the calc to use this info when doing expr("x+3"))
----- Original Message -----
From: Miles Raymond <m_rayman@bigfoot.com>
To: <ti-basic@lists.ticalc.org>
Sent: Wednesday, January 05, 2000 5:41 AM
Subject: Re: TIB: Storing an expr w/o evaluating it (for TI-92)


>
> I don't know if I understand you correctly, but you could do something
like
> this on the 89/92/+
>
> :INP()
> :Prgm
> :Local arp
> ...
> :2->x
> ...
> :InputStr "Input?",arp
> :expr(arp)->newvar
> ...
> :EndPrgm
>
> So if arp="x+3" then newvar=5 and the arp var will not exist when you
break
> or exit your program.
>
> -Miles Raymond      EML: m_rayman@bigfoot.com
> ICQ: 13217756       IRC: Killer2        AIM: kilier2
> http://www.bigfoot.com/~m_rayman
>
> ----- Original Message -----
> From: "Jeremie Knusel" <elendur@freesurf.ch>
> To: <ti-basic@lists.ticalc.org>
> Sent: Tuesday, January 04, 2000 10:43 AM
> Subject: Re: TIB: Storing an expr w/o evaluating it (for TI-92)
>
> > Well, it would work if the variable "x" doesn't exist, but if it exists,
> the
> > conversion will evaluate it.
> >
> > ----- Original Message -----
> > From: The Godfather <HOPPEAL@fs1.usa.k12.mi.us>
> > To: <ti-basic@lists.ticalc.org>
> > Sent: Tuesday, January 04, 2000 5:28 PM
> > Subject: Re: TIB: Storing an expr w/o evaluating it (for TI-92)
> >
> > > On 4 Jan 00, at 14:38, Jeremie Knusel wrote:
> > >
> > > > i.e: The variable x contains the value 2
> > > > I request from the user an expr to store in the variable var.
> > > > If the user enters x+3, 5 will be stored, instead of x+3. How can I
do
> > to store the exp
> > > r x+3?
> > > > Of course I could store it as a string, but my program have to make
a
> > difference
> > > between expressions and strings. What I could do is requesting a
special
> > character
> > > in the beginning of the string (i.e: if the string begins with "->",
> then
> > I know that the
> > > user want the rest to be considered as an expr), but the program must
be
> > able to
> > > use the destination variable in another arithmetics, without
converting
> > it.
> > > > The only way I found is to creating a temp folder, to store the
> variable
> > in it, to copy
> > >  the variable with the copyvar insrtuction and to delete the temp
> folder.
> > Is there a
> > > better way?
> > > >
> > > > Thanks and sorry for the bad English
> > > > Jeremie Knusel
> > >
> > > I don't know, because I don't have a TI-92, but I think conversion
> > > could be the best way to do it.
> > >
> > > They say one has to be good in this business.  Well I'm better.
> > >
> > > -The Godfather
>
>



Follow-Ups: References: