This is an archived, read-only copy of the United-TI subforum , including posts and topic from May 2003 to April 2012. If you would like to discuss any of the topics in this forum, you can visit Cemetech's TI-BASIC subforum. Some of these topics may also be directly-linked to active Cemetech topics. If you are a Cemetech member with a linked United-TI account, you can link United-TI topics here with your current Cemetech topics.

This forum is locked: you cannot post, reply to, or edit topics. 68k Calculator Basic => TI-BASIC
Author Message
sexybear979


Newbie


Joined: 27 Mar 2006
Posts: 28

Posted: 28 Mar 2006 04:44:46 pm    Post subject:

When I type in for example,
for ydel,1,99
delvar #("y"&ydel)
endfor

sometimes it works and deletes my graph screen, other times it says "indirection string is not a valid variable name."

It's enough to make a programmer shoot himself in the head. What do I do?


Last edited by Guest on 28 Mar 2006 09:47:43 pm; edited 1 time in total
Back to top
IAmACalculator
In a state of quasi-hiatus


Know-It-All


Joined: 21 Oct 2005
Posts: 1571

Posted: 28 Mar 2006 05:49:44 pm    Post subject:

Try

Code:
for ydel,1,99
#("Y"&ydel)->x
DelVar #x
endfor

I've found that works more often.
Back to top
DarkerLine
ceci n'est pas une |


Super Elite (Last Title)


Joined: 04 Nov 2003
Posts: 8328

Posted: 28 Mar 2006 08:12:28 pm    Post subject:

You need to use DelVar #("y"&string(ydel)).
Back to top
sexybear979


Newbie


Joined: 27 Mar 2006
Posts: 28

Posted: 29 Mar 2006 02:48:20 pm    Post subject:

Oh so then it's probably just datatyping errors
Back to top
Display posts from previous:   
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
    »
» View previous topic :: View next topic  
Page 1 of 1 » All times are UTC - 5 Hours

 

Advertisement