Jun 6, 2012 Replies: 47 Just getting started with BA4 and am very confused. I don't understand many terms and terminology. Have next to no experience with Java though am reasonably proficient with Basic. A friend sent me a YouTube link to getting started and that's been helpful. I was able to get the emulator up and running. When I tried "Hello World" again tonight, I now get a Java FileNotfound error (1.bal) in the emulator. Tried searching the forum but get overwhelmed with results. Are there any threads that just handle getting started newby questions? I tried a bunch of "beginner" & "tutorial" threads but they all seem to quickly evolve into more advanced techniques I am lost before I can even get started. I'm excited about getting started programming for Android. TIA for any help. Swede AOU - Swede's Dock in Lovely Lavallette, NJ - home of Gösta H. Lovgren. Anal Orifi Unwanted Click to expand...
Just getting started with BA4 and am very confused. I don't understand many terms and terminology. Have next to no experience with Java though am reasonably proficient with Basic. A friend sent me a YouTube link to getting started and that's been helpful. I was able to get the emulator up and running. When I tried "Hello World" again tonight, I now get a Java FileNotfound error (1.bal) in the emulator. Tried searching the forum but get overwhelmed with results. Are there any threads that just handle getting started newby questions? I tried a bunch of "beginner" & "tutorial" threads but they all seem to quickly evolve into more advanced techniques I am lost before I can even get started. I'm excited about getting started programming for Android. TIA for any help. Swede AOU - Swede's Dock in Lovely Lavallette, NJ - home of Gösta H. Lovgren. Anal Orifi Unwanted
NJDude Expert Licensed User Longtime User Jun 24, 2012 #41 Hi Swede, The problem you mentioned here: Yet when I run it, none of the buttons work. {sigh} Click to expand... That's because you HAVEN'T created "members", after you add views to your layout, in order to "use" them you have to create members (see attached picture), I have done that for you and added notes to your sample, look at the attached project, by the way, the creation of members is explained on the beginners guide. I hope that clears up your mind Attachments CreateMembers.JPG 47.7 KB · Views: 628 Swede_SampleFixed.zip Swede_SampleFixed.zip 7.9 KB · Views: 501 MembersSample.JPG 36.6 KB · Views: 632
Hi Swede, The problem you mentioned here: Yet when I run it, none of the buttons work. {sigh} Click to expand... That's because you HAVEN'T created "members", after you add views to your layout, in order to "use" them you have to create members (see attached picture), I have done that for you and added notes to your sample, look at the attached project, by the way, the creation of members is explained on the beginners guide. I hope that clears up your mind
klaus Expert Licensed User Longtime User Jun 24, 2012 #42 The problems are: - you haven't set the EventName of the numeric buttons and BS button to btnEvent. - you haven't set the Tag property of btn0 to 0. - the OK button is called btnAction and not btnOK. - be carefull in spelling it's btnAction and not btn_Action, and Btn is not btn. - in the Designer the text of btnAction is OK but should be O K ! Spelling again ! Attached a modified version of your program, I haven't checked everything. Best regards. Attachments Swede_Second_03.zip Swede_Second_03.zip 7.6 KB · Views: 561
The problems are: - you haven't set the EventName of the numeric buttons and BS button to btnEvent. - you haven't set the Tag property of btn0 to 0. - the OK button is called btnAction and not btnOK. - be carefull in spelling it's btnAction and not btn_Action, and Btn is not btn. - in the Designer the text of btnAction is OK but should be O K ! Spelling again ! Attached a modified version of your program, I haven't checked everything. Best regards.
S Swede Member Licensed User Longtime User Jun 25, 2012 #43 klaus said: The problems are: - you haven't set the EventName of the numeric buttons and BS button to btnEvent Click to expand... Done - you haven't set the Tag property of btn0 to 0. Click to expand... Done - the OK button is called btnAction and not btnOK. Click to expand... Done - be carefull in spelling it's btnAction and not btn_Action, and Btn is not btn. Click to expand... Done. I can see where Im going to continue to have trouble with Underscores. I use then A LOT with variables, Sub, Function, etc. Gonna have to be careful with B4. - in the Designer the text of btnAction is OK but should be O K ! Spelling again ! Click to expand... Changed. I presume it's "O K" and not "O K !" Attached a modified version of your program, I haven't checked everything. Click to expand... Your version runs fine. Mine doesn't. I checked each against the other, word for word, many times and they are identical. So what I thought was it MUST be in the Designer settings. Here's the two compared: Here's the error code when I click the O K button: I am not clear on what an "Object" is (I probably know by another name). I *thought" it was declared here Code: Dim btnAction, btn0 As Button I've attached my latest efforts. I REALLY appreciate the efforts you are making, Klause. It's just that no lights are going off for me yet. {really deep sigh} And I promise you, I'm making the effort. There's something I'm just not seeing despite the "lights" you guys are giving me. Attachments Swede_Second_03.zip Swede_Second_03.zip 7.7 KB · Views: 517
klaus said: The problems are: - you haven't set the EventName of the numeric buttons and BS button to btnEvent Click to expand... Done - you haven't set the Tag property of btn0 to 0. Click to expand... Done - the OK button is called btnAction and not btnOK. Click to expand... Done - be carefull in spelling it's btnAction and not btn_Action, and Btn is not btn. Click to expand... Done. I can see where Im going to continue to have trouble with Underscores. I use then A LOT with variables, Sub, Function, etc. Gonna have to be careful with B4. - in the Designer the text of btnAction is OK but should be O K ! Spelling again ! Click to expand... Changed. I presume it's "O K" and not "O K !" Attached a modified version of your program, I haven't checked everything. Click to expand... Your version runs fine. Mine doesn't. I checked each against the other, word for word, many times and they are identical. So what I thought was it MUST be in the Designer settings. Here's the two compared: Here's the error code when I click the O K button: I am not clear on what an "Object" is (I probably know by another name). I *thought" it was declared here Code: Dim btnAction, btn0 As Button I've attached my latest efforts. I REALLY appreciate the efforts you are making, Klause. It's just that no lights are going off for me yet. {really deep sigh} And I promise you, I'm making the effort. There's something I'm just not seeing despite the "lights" you guys are giving me.
S Swede Member Licensed User Longtime User Jun 25, 2012 #44 NJDude said: Hi Swede, The problem you mentioned here: Click to expand... Thanks Dude. I just now saw your post. I spent the last few hours responding to Klaus' suggestions. (see post just above this.) And didn't see yours. I'll get into your stuff probably tomorrow night. Late for me right now, have to be early up in the am {frown}. Hopefully you can clear some smoke away for me. {sigh} Pretty foggy for this old sea dog right now. Thanks.
NJDude said: Hi Swede, The problem you mentioned here: Click to expand... Thanks Dude. I just now saw your post. I spent the last few hours responding to Klaus' suggestions. (see post just above this.) And didn't see yours. I'll get into your stuff probably tomorrow night. Late for me right now, have to be early up in the am {frown}. Hopefully you can clear some smoke away for me. {sigh} Pretty foggy for this old sea dog right now. Thanks.
klaus Expert Licensed User Longtime User Jun 25, 2012 #45 You haven't looked carefully enough: In the designer you define btnAction but in the code you use btn_Action ! And you use btnAction_Click. I changed all to btnAction ! Best regards. Attachments Swede_Second_04.zip Swede_Second_04.zip 7.6 KB · Views: 549
You haven't looked carefully enough: In the designer you define btnAction but in the code you use btn_Action ! And you use btnAction_Click. I changed all to btnAction ! Best regards.
S Swede Member Licensed User Longtime User Jun 26, 2012 #46 klaus said: You haven't looked carefully enough: In the designer you define btnAction but in the code you use btn_Action ! And you use btnAction_Click. I changed all to btnAction ! Best regards. Click to expand... You are absolutely correct, Klaus. It works as advertised now. Note I just corrected my version (removing 3? under_scores). I can see where the u_s is going to be a problem for me, at least until I get used to things. Amazing the difference in what you *see* and what's actually *there*. {geez} Thanks your patience, Klaus. Dude, I didn't get to your stuff yet (caught on the Parkway in that rain (and boy didn't it rain? - 4.5" in my rain gauge in the yard in just about about an hour. Never saw it rain so hard for so long), but will soon, next day or so. Thx all.
klaus said: You haven't looked carefully enough: In the designer you define btnAction but in the code you use btn_Action ! And you use btnAction_Click. I changed all to btnAction ! Best regards. Click to expand... You are absolutely correct, Klaus. It works as advertised now. Note I just corrected my version (removing 3? under_scores). I can see where the u_s is going to be a problem for me, at least until I get used to things. Amazing the difference in what you *see* and what's actually *there*. {geez} Thanks your patience, Klaus. Dude, I didn't get to your stuff yet (caught on the Parkway in that rain (and boy didn't it rain? - 4.5" in my rain gauge in the yard in just about about an hour. Never saw it rain so hard for so long), but will soon, next day or so. Thx all.
NJDude Expert Licensed User Longtime User Jun 26, 2012 #47 Hey Swede, Yeah, don't you worry, a few more samples and you will get it, it's not difficult. That rain was crazy, good thing I was already home when it started.
Hey Swede, Yeah, don't you worry, a few more samples and you will get it, it's not difficult. That rain was crazy, good thing I was already home when it started.
klaus Expert Licensed User Longtime User Jun 26, 2012 #48 The problem weren't the uderscores but the fact that you used two different spellings for the same object. If you had used btn_Action everywhere in the code and in the Designer it would have worked too. I prefer not to use uderscores in names but three characters at the beginning for the object type and in the name 'play' with uppercase characteres and leave the underscores for the separation between the object name and the event name, but everybody has it's habits. Best regards.
The problem weren't the uderscores but the fact that you used two different spellings for the same object. If you had used btn_Action everywhere in the code and in the Designer it would have worked too. I prefer not to use uderscores in names but three characters at the beginning for the object type and in the name 'play' with uppercase characteres and leave the underscores for the separation between the object name and the event name, but everybody has it's habits. Best regards.