Skip to content

Category: Learning

Oh, Say Can You C?

There is a “bug” here, can you spot it?

dim s as string = "abc" + chrb(0) + "def"
dim c as cstring = s
if s = c then
  msgbox "Yay our software works as we expected!!!!"
else
  msgbox "BOOOOOO!!!!"
end if
Comments closed

Guest Post: Managing Database Schema Control Over Multiple Versions

Wayne Golding has been a Xojo developer since 2005. He operates two IT companies, a Network/Systems services co & DRNine11 an offsite backup & DR co. Though he primarily uses Xojo for internal management systems and utilities, Wayne’s hobby is robotics where he uses Xojo to communicate with Arduino devices.

When distributing applications with a database component you will undoubtedly upgrade your database schema as your application matures. So how do you manage the schema within your application?

Comments closed

Shadowing: You can’t always get what you want (or expect)

Shadowing is when a subclass defines a constant, property or enumeration (almost anything that is not an event or a method) that has the same name as a constant, property or enumeration (but not an event or a method) in the superclass. Generally the best rule is avoid using the same names for constants, properties and enumerations that the superclass has already used.

Comments closed

It’s 10 o’clock. Do you know where your time zone is ?

If you’ve worked with times and dates you know how much fun they can be especially when you deal with different time zones, differing Daylight savings time rules, if they observe DST and all the other intricacies tracking dates and times bring up.

And very often you need to save data to a database. So how do you store the data in your database so you can properly deal with it? And does your chosen database make that easy?

Comments closed

Can You Catch?

This came up recently on the forums and I thought it good to share. Do you see what is wrong with the following code?

Function foo() As FolderItem
  try
    beep
  catch NilObjectException
    return nil
  end try
End Function
Comments closed

Guest Post: Xojo Networking by Eric Gibbon

Eric Gibbon has been a Xojo developer since 1999. When not heading up the Birmingham, UK Xojo User Group, you can find Eric at MacTasks.com where he offers consulting services and develops bespoke multi-platform multi-user databases for Mac, PC and the Web using Xojo.

Last year work wasn’t going so well, and I was feeling down. I had lost my “Xojo mojo”. As a freelance developer it can be hard to do everything you need to and it is easy to get bogged down. Sometimes you need a fresh injection of ideas and opinions, to see what other developers are doing and how they do it.

Comments closed