<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wikidot="http://www.wikidot.com/rss-namespace">

	<channel>
		<title>Domain error when outputting a space (solved)</title>
		<link>http://tibasicdev.wikidot.com/forum/t-13946812/domain-error-when-outputting-a-space-solved</link>
		<description>Posts in the discussion thread &quot;Domain error when outputting a space (solved)&quot; - so, I&#039;m writing my own version of pokemon on my calculator and I&#039;m getting a domain error for no reason (I have posted the lbl that im getting the error under as the entire program is over 1000 lines)</description>
				<copyright></copyright>
		<lastBuildDate>Sun, 10 May 2026 23:29:13 +0000</lastBuildDate>
		
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-13946812#post-4857824</guid>
				<title>Re: Domain error when outputting a space</title>
				<link>http://tibasicdev.wikidot.com/forum/t-13946812/domain-error-when-outputting-a-space-solved#post-4857824</link>
				<description></description>
				<pubDate>Thu, 31 Dec 2020 00:53:12 +0000</pubDate>
				<wikidot:authorName>Edspeedy</wikidot:authorName>				<wikidot:authorUserId>6934993</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Thank you, this has solved the problem and I have finished with the whole system. the problem was this line:</p> <div class="code"> <pre><code>Output(O,3,⌊TEAM(O)</code></pre></div> <br /> which I changed to this: <div class="code"> <pre><code>For(O,10(Q-1)+1,min(10Q,dim(⌊TEAM)) Output(I,3,⌊TEAM(O)) I+1→I End</code></pre></div> <br /> And now it works great. Thank you to every who helped :)
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-13946812#post-4855458</guid>
				<title>Re: Domain error when outputting a space</title>
				<link>http://tibasicdev.wikidot.com/forum/t-13946812/domain-error-when-outputting-a-space-solved#post-4855458</link>
				<description></description>
				<pubDate>Mon, 28 Dec 2020 03:59:02 +0000</pubDate>
								<wikidot:authorUserId>3338172</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>If you're trying to code a program meant for a CSE or a CE on an 83&#8230; then it won't work.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-13946812#post-4855032</guid>
				<title>Re: Domain error when outputting a space</title>
				<link>http://tibasicdev.wikidot.com/forum/t-13946812/domain-error-when-outputting-a-space-solved#post-4855032</link>
				<description></description>
				<pubDate>Sun, 27 Dec 2020 14:01:38 +0000</pubDate>
				<wikidot:authorName>CalcNerd</wikidot:authorName>				<wikidot:authorUserId>6321217</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I think I know why when you have more than 10 in the dimensions that you are having problems. You are using a For Loop to list out what is in LTeam at O. If O is 11, the calculator doesn't have enough screen space to show it, and it would give you a domain error. I hope this helps!</p> <p>If you need to have more than 10 in the dimensions you could just have it move over X-wise allowing for enough room for the text.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-13946812#post-4852377</guid>
				<title>Re: Domain error when outputting a space</title>
				<link>http://tibasicdev.wikidot.com/forum/t-13946812/domain-error-when-outputting-a-space-solved#post-4852377</link>
				<description></description>
				<pubDate>Thu, 24 Dec 2020 02:55:42 +0000</pubDate>
				<wikidot:authorName>Edspeedy</wikidot:authorName>				<wikidot:authorUserId>6934993</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>so I have fixed this error by doing this instead:</p> <div class="code"> <pre><code>If V≠W Then Output(W,5,&quot;&lt; For(O,1,10 If O≠W Output(O,5,&quot; &quot;) End W→V End</code></pre></div> <br /> But I have run into the same issue with this other block: <div class="code"> <pre><code>If P=26 and dim(⌊TEAM)&gt;10Q Then Q+1→Q For(O,10(Q-1)+1,min(10Q,dim(⌊TEAM)) Output(O,3,⌊TEAM(O) End End</code></pre></div> <br /> Any ideas on how to fix it?
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-13946812#post-4850455</guid>
				<title>Re: Domain error when outputting a space</title>
				<link>http://tibasicdev.wikidot.com/forum/t-13946812/domain-error-when-outputting-a-space-solved#post-4850455</link>
				<description></description>
				<pubDate>Mon, 21 Dec 2020 22:36:16 +0000</pubDate>
								<wikidot:authorUserId>3338172</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>If I were you, I'd put the Then command on the <tt>If V≠W</tt>:</p> <div class="code"> <pre><code>If V≠W:Then</code></pre></div> <p>V or W would only have an error if the value is not an integer, less then 1, or greater than 8 (or 10, depending on your model)</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-13946812#post-4849652</guid>
				<title>Re: Domain error when outputting a space</title>
				<link>http://tibasicdev.wikidot.com/forum/t-13946812/domain-error-when-outputting-a-space-solved#post-4849652</link>
				<description></description>
				<pubDate>Sun, 20 Dec 2020 20:44:05 +0000</pubDate>
				<wikidot:authorName>Edspeedy</wikidot:authorName>				<wikidot:authorUserId>6934993</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>The extra &quot;End&quot; wasn't really doing anything and when I got rid of it the problem persisted. The error I get is a domain error not a dimension error. The only time I've seen a domain error before is when I try to output something outside of the screen (ex. Output(1,99,&quot;text&quot;)). but in this case I'm trying to output a space at V (which is your last position) with Output(V,4,&quot; &quot;) and I'm getting an error. It is also worth noting that this error only occurs when the dimensions of ⌊TEAM are greater than or equal to 10. (I've also removed the &quot;End&quot; statement as you suggested)<br /> The error is happening here</p> <div class="code"> <pre><code>If V≠W Then Output(W,4,&quot;&lt; Output(V,4,&quot; &quot;) W→V End</code></pre></div> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-13946812#post-4849198</guid>
				<title>Re: Domain error when outputting a space</title>
				<link>http://tibasicdev.wikidot.com/forum/t-13946812/domain-error-when-outputting-a-space-solved#post-4849198</link>
				<description></description>
				<pubDate>Sun, 20 Dec 2020 07:17:29 +0000</pubDate>
				<wikidot:authorName>Trenly</wikidot:authorName>				<wikidot:authorUserId>1905506</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>You don’t need an <a href="http://tibasicdev.wikidot.com/end">End</a> when you have a single-line <a href="http://tibasicdev.wikidot.com/if">If</a> statement:</p> <div class="code"> <pre><code>//your code has this Single-line if statement If A=3 Goto GH End</code></pre></div> <br /> As for the Dim error, If the list has 0 elements or does t exist, it will throw that error. The <a href="http://tibasicdev.wikidot.com/errors">errors</a> page might be useful to learn more about all the possible causes of a Dim error
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-13946812#post-4849015</guid>
				<title>Domain error when outputting a space</title>
				<link>http://tibasicdev.wikidot.com/forum/t-13946812/domain-error-when-outputting-a-space-solved#post-4849015</link>
				<description></description>
				<pubDate>Sun, 20 Dec 2020 02:46:13 +0000</pubDate>
				<wikidot:authorName>Edspeedy</wikidot:authorName>				<wikidot:authorUserId>6934993</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I'm writing my own version of pokemon on my calculator and I'm getting a domain error for no reason (i have posted the lbl that im getting the error under as the entire program is over 1000 lines). I would recommend copying the code and running it on your calculator to help figure out what's going on as its not very well organized. The error happens on line 52 when you select swap (in the menu), and try to switch two numbers (with enter and +) and Lteam has more than 10 numbers. There is also another error on line when trying to turn the page when Lteam has more than 10 numbers (with buttons ← and →)<br /> (This was made for the ti84-CE on TI connect CE so some of the syntax might be a little different)</p> <div class="code"> <pre><code>Lbl TS ClrHome Disp &quot;SWAP? - 1 Disp &quot;INFO? - 2 Disp &quot;Quit? - 3 Input A If A=3 Goto GH If A=1 Then ClrHome 1→O For(O,1,6 Output(O,1,O Output(O,2,&quot;. End If dim(⌊TEAM)≤10 Then For(O,1,dim(⌊TEAM Output(O,3,⌊TEAM(O End Else For(O,1,10 Output(O,3,⌊TEAM(O End Output(10,6,&quot;&gt;&gt;&quot; End 9→V 1→U 1→D 1→W 1→V 1→Q &quot;Q is page number Output(W,4,&quot;&lt; While 1=1 getKey→P If P=34 1+W→W If W=min(dim(⌊TEAM),10)+1 1→W If P=25 W-1→W If W=0 min(dim(⌊TEAM),10→W If P=45 Goto GH If V≠W Then Output(W,4,&quot;&lt; Output(V,4,&quot; W→V End If P=26 and dim(⌊TEAM)&gt;10Q Then Q+1→Q For(O,10(Q-1)+1,min(10Q,dim(⌊TEAM)) Output(O,3,⌊TEAM(O End End If P=24 and Q&gt;1 Then Q-1→Q For(O,10(Q-1)+1,10Q Output(O,3,⌊TEAM(O) End End If P=105 Then V→S Output(V,5,&quot;&lt; End If P=95 Then ⌊TEAM(V)→T ⌊TEAM(S)→⌊TEAM(V) T→⌊TEAM(S) For(V,1,min(dim(⌊TEAM),10 Output(V,5,&quot; &quot;) Output(V,3,⌊TEAM(V End End End End If A=2 Then 1→Q Goto IF End</code></pre></div> 
				 	]]>
				</content:encoded>							</item>
				</channel>
</rss>