Skip to content

39 search results for "API 2.0"

Var, Dim or both?

API 2.0 added Var as an alias for Dim. Var is more recognized by coders from other languages and that’s great. Easily readable code is the goal, so I use both.

Comments closed

DatabaseRow Changes

As part of API 2.0, the DatabaseRow class was introduced alongside RowSet and DatabaseColumn. These three classes replace DatabaseRecord, RecordSet and DatabaseField respectively.

Comments closed

New Desktop Controls

Xojo 2021 Release 3 Xojo introduces a new set of Desktop controls. Each of these controls replaces its original control counterpart and is prefixed with Desktop. For example, Window is now DesktopWindow and TextField is now DesktopTextField. The driving logic behind these new controls is that they allow us to make their event names match the Web and Mobile versions. In addition, the new controls gave us the opportunity to make some other changes to various methods that would have been problematic to make in the existing controls. Desktop controls now are a much closer match in terms of API to their Web and Mobile equivalents. These new controls make more code work without changes when you move from one project type to another.

Comments closed

Updated Tutorial: Active Words

This post was originally published in 2018 and has been updated to use Xojo API 2.0.

Follow this tutorial to create active, aka clickable, words in the text of a TextArea control in your Xojo projects. Learn to use the Object-oriented Delegate design pattern to dynamically change how your app reacts when the user clicks on those active words. Best of all, this project is cross-platform, so you can use it for macOS, Windows and Linux!

Comments closed

Update: ipify for Xojo

There are plenty of times when your Xojo apps might need to know the public or external IP address is, and there are a lot of web sites or services that you can use with Xojo to find that. I found ipify to be easy to use

Comments closed

Updated: Make Your Own Classes Iterables

In programming, iterators are the mechanisms that allow us to run through all the items of a collection without needing to know in advance how many of them compose that collection. To do this, we can use the commands For Each… Next in Xojo. What are the main differences when comparing For Each… Next with the conventional For… Next? See how the For Each… Next loop iterates every item associated with the object. It’s a more concise, stylish and Object-Oriented (OOP) way of doing things when compared with the classic For… Next loop.

Comments closed

2020: A Year of Change

Despite the uncertainty, 2020 has been a terrific year for Xojo by nearly every measure. We will continue to plan and be hopeful for the future and we look forward to seeing you in person at XDC London in October 2021. Best wishes to everyone for a happy and healthy 2021.

Comments closed