New topic: appending integer to textarea?
<http://forums.realsoftware.com/viewtopic.php?t=30454> Page 1 of 1 [ 1 post ] Previous topic | Next topic Author Message RogerJoensson Post subject: appending integer to textarea?Posted: Tue Oct 13, 2009 4:50 am Joined: Tue Oct 13, 2009 4:21 am Posts: 1 Hi, I am completely new to real basic and my question below may seem really silly. I do not find it very, very hard to follow the examples of the userguide or the book "beginning real basic", but as soon as I am trying to do something on my own, that is not described step by step, I find it very hard to find the info needed in the Language Reference. I used GFA-basic long way back and seldom had any problems figuring out how to do stuff with the help of the manual. I also did a fair bit of assembler for PIC-chips. In Real basic especially the simple stuff feels hard to grasp, especially the syntax is a guessing in every direction. I hope it is just me, learning a new culture, or something. So I am now exploring RealBasic systematically by making tiny programs. For some reason I always seem to try something really simple that I can not get to work and I can not find the info that I need despite long hours... MY CURREN PROBLEM: I made a counter, counting to 10. I would like it to print the numbers to a textarea, but I do no wan't the next number to overwrite the previous one. 1. I would like the result to be 12345678910. (With text I can use appendtext, but that does not seem to work with numbers...) 2. Do I have to convert the numbers to strings. How do I do that? 3. If I would like it to print each number on a new line, what do I do? Dim counter as integer = 0 Do counter=counter+1 TextArea1.text=str(counter) //Textarea1.appendtext("hello") writes hello ten times in a row, but what to do with numbers? If counter=10 Then Exit End if Loop I know my question is far beyond basic. Please bare with me. -The strange thing is that I managed to make a rough stopmotion program in just two hours (with the help of the fabulous camcapture plugin). It was not so complicated as the plugin did most of the work, but it feels really strange that i could get that working, when I can not even print numbers to a textarea (without overwriting). Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 1 post ] -- Over 1500 classes with 29000 functions in one REALbasic plug-in collection. The Monkeybread Software Realbasic Plugin v9.3. http://www.monkeybreadsoftware.de/realbasic/plugins.shtml [email protected]
