Q & A

These are questions that have been emailed to me ....

Q:  
Will you show us the Red scripts ?
A:  I have not released scripts yet as I hope to use them to do a series of 'youtube' videos on building a Red app.

Q: Your focus seems to be on Red and Rebol  GUI  level  programming ?
A:  Yes, that's what I like to do, well for now anyway.

Q: i am impressed with what can be done with these programming languages. What next ?
A:  I retire in a few weeks time, so should have much more time to look at them.

Q: Do'nt you think the programs you wrote on your site are quite trivial  ?
A:  Yes, of course they are, they are just for fun, and a way to test what can be done at the gui level with the particular languages. 

Q:  I'm new to programming - do you have any  more red examples. ?
A:  More script examples will come from me soon .... Try these: 
                                              http://redprogramming.com/Getting%20Started.html
                                              http://redprogramming.com/Short%20Red%20Code%20Examples.html

Q:  I have a Rebol script and files, how can i make an exe ?
A:  Its easy to package files into an exe, I'll email you the instructions .

Q: You seem to know about Red and Rebol - I need more examples that work with both.
A:  Will be showing more Red gui level examples soon.

Q: As a new programmer there's not many useful Red code examples, the Red documentation has no code samples.
A: I know - It took me some time to work things out - things are moving forward, I will try to put together some useful examples .... See my page: Example Scripts

Q: I can interpret your examples fine, but when I try to compile, I get a runtime error or access violation ?  I'm using the Ride editor.
A: Yes, you have to put  'needs: view'  in the Red header,  i.e. Red [needs: view]  - See the examples now I have added it.

Q: Correct me if I am wrong, but i think you shell rebol-view-278-3.exe from inside your compiled red programs. I am in desperate need to do this, but can't find examples on the internet, can you help me with calling executable's from within windows from a Red script.
A: Yes, I did exactly that ....
go here: https://github.com/red/red  then click  'clone or download' then click 'download zip' - then from within the 'red master.zip' copy the system folder to your Red script folder.   

then compile and run this:

Red [needs: view]
#include %system/library/call/call.red  
view [
button "Call 1" [call "notepad"]
button "Call 2" [call "explorer"]
]

let me know how you get on ....

Q: I am new to this, i found your example code helpful, can we see  the source code for your red  programs in your apps page ?
A: There are a couple of reasons why I hav'nt included the scripts for my Apps. Firstly as I have already explained on here, I want to use them for a YouTube series. Secondly, I had to improvise quite a bit for sound etc. so I believe the scripts would more confuse newbie programmers rather than help. just keep watching here and on the Red site, there's lots more to come. Take a look here: Example Scripts

Q: I can compile from the Ride editor , but  when i run the exe, it always displays the console window behind my view window, Is it possible to stop this ?
A: The ride editor is perfect for developing your program .... When you want to compile the finished exe: Go to your Red folder where your script and the Red exe is .... Open a 'Command Window' by holding the 'Shift' key and right clicking, then from the menu choose 'Open command Window Here' .... At the command prompt type:  red-060 -c -t Windows myscript.red  .... Where myscript.red is your script.

Q: Is there an easy way to play sounds using the Red language. I know you did this by calling the Rebol interpreter from within a Red exe, but is'nt there an easier way ?
A: Apparently a sound library binding is possible, but i've never seen one that works.
Until Red gets its own sound the best way is to use 'Call' from your Red script. And there's a few ways to do it: Calling and using the Rebol interpreter, Calling and using powershell, Calling a vbs script. - All will work but are a bit messy. I'll see if I can create some sort of simple sound engine to make it all a bit more straight forward.

Q: Hey, love the Rebol quiz, its great fun for evenings in.  I like Rebol. Do you plan any more Rebol Apps and examples ?
A: Rebol is a joy to use and i hope to look at it more soon. But I seem to be getting more interest in the Red language, Something i did'nt expect at this stage in its development, but because of this i need to spend some time looking at it and seeing what I can come up with. 

Q: Hi Alan, hope i'm not pestering you to much, like what you're doing. I saw your Iphone/ipad apps, very nice, but why are you so interested in Red ?
A: Ok, In my opinion Red is the way to write apps. all of this nonsense that the big players use (you know who i'm talking about),  and yes I use them, but what utter pieces of crap they are. over bloated resource hungry, file dependant .... 
All Red needs to do is address the needs of mobile developers, i.e. ios, android, windows mobile .... then it will be invincible .... 

Q: Hi, I emailed you a few times. nice site and programs. Will you be adding any more programs, with source code if possible.
A: Yes, have some new ones to be added soon. Also looking at some Red 3d, but that's a little while away yet.

Q: Hello Alan, I have done a little programming using  Microsoft Small Basic, I tried your apps and code examples using the Red language and it seems a lot can be done with less code and less resources - Would you recommend it to a new programmer ?
A: Yes I can recommend it. I believe It is the way all programming will be in the future.

Q: Hi, I've been trying to get sound in Red using the SDL bindings, but no joy - Do you have any ideas ?.
A: I can't get them to work either. For now, if you want sound the easiest way is to use 'CALL' - see my sound engine page.

Q: Hi, been looking on your great site, there's so much to try out, hoping for anything new for Rebol or Red programming, Please show some more examples. 
A: Sure, I've been on holiday, will be adding more stuff soon ....

Q: Hi, Alan,
just enjoyed your Red samples. I was wondering if you could supply a more advanced sample, such as a window with a tab-panel(and a few tabs).
A: Sure, just added a 'tab-panel' example on my 'Red Programming' page, will be adding more over the next few weeks.

Q: Hello, I tried your VB game, very nice. Are you still working with VB?  and will you show more VB examples?  - You dont seem to be adding any VB things.
A: I used to do a lot with Visual Basic, but recently have become more interested in other things, I may remove the VB page from my site soon. But there are plenty of resources to be found for VB programming.

Q: Hello, The AutoRed program looks interesting, could I have the source?  Thanks in advance.
A: Thanks for your interest, I will add the source on my site later today.

Q: Hi Alan, I'm Sandra, I chatted with you a few times, Could you give me a few tips on Collision Detection in Red ? - documentation is still limited and I try not to bother the developers to much.
A: Hello Sandra, yes they have a lot to do, I always try to work things out myself and only ask them as a last resort. 
For collision detection, You should be looking at:  within?  and/or  overlap? 
i.e.  if overlap? a b [print "Collided"]   ;; where a and b are your colliding faces.
Let me know how you get on.

Q: Hi Alan, thanks for the message on the google forum, your programmers guide and your examples pages are excellent. was ready to give up, but it got me going with red again, Lots to work on. 
A: No problem, just keep going, It is an awesome programming language, I have some new apps i'm working on, all built with Red. Keep watching.

Q: Hi , I have to say this site is so user friendly.  I love the Red sections, all shown in a different way to other sites, You seem to be interested in helping new coders ? 
A: Sure, I've recently been doing some teaching - schools and colleges, I found that there's a different way that novice programmers see things, and that's why i do things the way i do.  A lot of schools and colleges here in the UK are pushing 'Python' - and that's good,   but I've been showing some of them 'Red' and they get it, they know how quick Red can be to create something usable. 
Anyway, Keep looking.

Q: Hey you, just to say i am loving your site, plenty of interesting stuff to look at. Keep up the good work. 
A: Thanks for looking.

Q: Hello Alan, Nice site. I like that new Red mp3 player, so simple  - Anything new in the pipeline ? - regards. Dave.
A: Thanks Dave - Plenty more  to come soon, just keep looking.

Q: Hi, I found your page with red gui examples. I'm interested in more complex applications like your red ed editor. Is code for it publicly available ?   If not could you tell me how can I create view with active maximise button.  
A: Thanks for looking.  I did not release the code for my more complex apps as I thought it might be more confusing than helpful to novice programmers. But might tidy it up and post later. 
Here's how to resize/max a view: 
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Red [needs: 'view]
view/flags [size 400x300 title "Max and resize"] 'resize
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Q: Hello, you do not get involved with many of the Red community and discussion groups. hope you do not mind me asking, but why do you not get involved with them.  congratulations on  an awesome website btw.
A: Thanks, glad you like my site. As for getting involved, I like to work alone, for me part of the buz is to work things out for myself. If I'm really stuck I will ask, but I mostly just like to try to understand it on my own. 

Q: Hello, I was going through some of your code examples and found one that gives an error. I'm new to programming, so it's possible I did something wrong.  Thanks for the great Red tutorials.
Red [needs: 'view]
view [field 100x30  hint "Enter some text"]
A: Hi, yes 'hint' is new, it needs the latest build. Try using the latest automated build.                           regards ....
Alan.

Q: Hi, I tried your apps, just brilliant, I mean great work, please show us more.  
A: Thanks, plenty more to come. Just keep looking.

Q: Hi, How can I send one or more keystrokes to an active window as if they were typed at the keyboard. 
A: Sure, A good one, I added the answer here:  http://www.mycode4fun.co.uk/example-scripts

Q: The keys go thu and calculations take place. but I get this in the red console window;
*** Script Error: delete has no value
*** Where: act
Other than that it works. Thank you.
A:The error is because 'delete' is very new . You need the latest automated build and it will work.