Author | Comment |
wnh11 Marine Posted: 21 Feb 2005 08:54 GMT Total Posts: 24 | I'm making a program on my titanium with a dropdown menu, and when I enter the phrase:DropDown "Choose a Number",{"One","Two","Three"},x in the program editor screen and run the program I get an error message that says "Error: Dimension". What am I doing wrong? Sorry, this question might seem a little dumb because im still a n00b on the titanium. |
allynfolksjr Administrator
Posted: 21 Feb 2005 09:59 GMT Total Posts: 1892 | You need the dropdown within a Dialog Block, copy and pasted from the manual because I'm lazy:
:Dialog :Title "This is a Dialog Box" :Request "Your name",str1 :Dropdown "Month you were born",seq(string(i(i,1,12),Var1 :EndDlog
|
wnh11 Marine Posted: 21 Feb 2005 10:50 GMT Total Posts: 24 | I already entered the command in a dialog box. |
TI Freak Probe Posted: 21 Feb 2005 10:52 GMT Total Posts: Edit | Did you give it a title? |
wnh11 Marine Posted: 21 Feb 2005 11:08 GMT Total Posts: 24 | Yes, it has a title. Also, I am not using a string with this menu. |
TI Freak Probe Posted: 21 Feb 2005 11:16 GMT Total Posts: Edit | Can you post the exact code please? That will help us help you... Everything between Dialog, End Dialog, if this is where the problems are taking place...
[Edited by TI Freak on 21-Feb-05 20:17] |
wnh11 Marine Posted: 21 Feb 2005 12:08 GMT Total Posts: 24 | Here is the code :Dialog :Title "Number" :Dropdown "Pick a Number",{"One","Two","Three"},x :EndDlog Edit: This is weird, I didn't put in those emoticons. Those two words are dialog and dropdown.
Edit (allynfolksjr): Use the <tt> tag to display code, just edit your post to see what I did.
[Edited by allynfolksjr on 21-Feb-05 21:21] |
TI Freak Probe Posted: 21 Feb 2005 12:36 GMT Total Posts: Edit | Dialog Title "LCARS v 1.0" Text "By: Daniel Thorneycroft" DropDown "Please choose:",{"Begin","About","Quit"},a EndDlog
This is what I used in my Lcars program for the 89. Maybe you have to have text before the DropDown box... Try and put in text before the drop down, and see if that changes anything.
[Edited by TI Freak on 21-Feb-05 21:39] |
wnh11 Marine Posted: 21 Feb 2005 13:21 GMT Total Posts: 24 | Thanks. That did it. It seems weird that you'd have to have text with it, though. |
TI Freak Probe Posted: 21 Feb 2005 13:30 GMT Total Posts: Edit | No problem. I agree with you on that, but we have to work with what we are given... |