Quite often I receive emails from people asking me how to do something or other in REALbasic. I don't mind getting these questions -- I enjoy helping people to learn. But I find myself giving out the same examples to people over and over again. So instead of losing these projects on my harddrive, or not having access to them when I'm not at the office and someone emails me at home, I'm making a little repository of the most commonly sought-after sample projects.

All of the projects you see here are things that I've created at one point in time to test some REALbasic functionality. They're not endorsed by REAL Software, they tend to lack proper commenting, and typically aren't the prettiest user interfaces I've ever designed. So if you don't mind these issues, you're welcome to download, modify and use anything you see here.

Enjoy!

Serial Port Test.rb
Horrible UI, but tons of functionality. This shows you nearly everything you can do with a REALbasic serial control. I use this for testing the serial functionality, so it may not compile in every version of REALbasic, but it should compile in 5.5 and up.

Socket Speed Test.rb
This handy little application demonstrates how to send a file over the network as fast as possible. I use it as the benchmark for how fast REALbasic TCP sockets can transfer data. Last time I checked, it's about 6.5 MB/sec on our internal network. This project also checks to make sure none of the data is corrupted during the transfer by means of hashing.

FileXfer.rbp
Here's another file transfer example, except this one doesn't do all the extra timing and verifications that the Socket Speed Test does. It still uses the same "fast file transfer" concepts though, and comes with a lot of comments.

SynchronousSocketExample.rb
I wrote this as an example of how to synchronously download a web page (before we had an HTTPSocket built into the product). It's a good example of how to use a TCPSocket in a synchronous manner.