Thread: TI BASIC help
View Single Post
Old Mar 20th, 2005, 11:58 PM   #5
davidguygc
Programmer
 
Join Date: Mar 2005
Location: Lubbock, TX
Posts: 30
Rep Power: 0 davidguygc is on a distinguished road
OK
Dialog
Title  "The Ultimate Pre-Cal Program"
DropDown  "Calculate:",{"Area of „","Comp Angles","Degree»Radian","Grade","Find Quadrant","sin, cos, etc.","Distance"},feat
EndDlog

Determining feature 
If feat=0 Then
Goto  quit
ElseIf feat=1 Then
Goto  „a
ElseIf feat=2 Then
Goto  comang
ElseIf feat=3 Then
Goto  dtr
ElseIf feat=4 Then
Goto  grade
ElseIf feat=5 Then
Goto  quad
ElseIf feat=6 Then
Goto  sct
ElseIf feat=7 Then
Goto  dist
EndIf

but if you hit the ESC button, it doesnt give a number to the variable, and it continues on to the Ifs, and it is still undefined so it crashes, I have on other programs, set feat to 0 after the goto so it will have the
If feat=0 Then
Goto Quit 
EndIf
but if I want to retain the previous selection, I can't use it, which makes me want to know if there is some sort of NULL feature I can put into the coding
davidguygc is offline   Reply With Quote