Skip to content

Category: Learning

Effortless HTTP Requests in Xojo: Using Curl in Xojo with URLConnection

If you’re familiar with the command-line tool curl, you may wonder how to use curl in Xojo effectively. Curl is a powerful tool for making HTTP requests, but it’s not always the most convenient for working within a graphical application like Xojo. That’s where Xojo’s URLConnection class shines! It provides a simple and elegant way to make HTTP requests directly from your Xojo code, making it easy to use curl in Xojo. In this article, you will learn how to adapt common curl commands to Xojo’s URLConnection. Let’s get started.

Comments closed

Docker, Database Servers and Xojo

There are many ways to develop with Xojo and use Database Servers. You might be working on a multi user Desktop Application that stores data in a Database. Or you’re creating a multi user Xojo Web Application that needed to be scaled up to a couple of running instances – and use a Database for data storage. Or maybe you’ve written a mobile application that connects to a Backend REST API – again possibly written in Xojo (e.g. with the open source Express, or with Xojo Web).

Comments closed

A Beginner’s Guide to Handling Text Files in Xojo

As developers, we often need to work with text files. This could be for reading configuration settings, parsing log files, or generating reports. Text files are a common part of software development, and knowing how to access and manipulate them is important for building strong and flexible Xojo applications. In this article, we will make use the key Xojo classes and techniques for working with text files. We will start by looking at how to read the contents of text files using the TextInputStream class. You will learn how to read an entire file into a string and how to process the file line-by-line.

1 Comment

Avoiding Memory Leaks with WeakRef

This is not that common of an issue, but it happens – when searching for memory leaks, remember to check any cross-referenced objects. Cross-referenced objects are, well, just that, objects that need to reference each other. For example, when “ClassA” needs to know about “ClassB”, and “ClassB” needs to know about “ClassA”. Continue reading to see how this can cause memory leaks in your projects and how to use Xojo’s WeakRef to fix it.

Comments closed

Using Xojo and GitHub

Now that Xojo Lite includes support for saving projects in version control format, it seems like a good time to revisit how you can use Xojo with GitHub, the popular online Git hosting service.

Comments closed

Android Design Extensions 2.5 for Xojo 2024r1 +

The first Xojo version in 2024 is ready and so it’s time again for an update of the Android Design Extensions, which are now available in version 2.5. This version runs for all Xojo versions from 2024r1 upwards and offers over 70 new declares. The focus of this release was on the integration of pictures in controls, such as MobileButton, MobileDateTimePicker, MobileTextFields, MobileSlider etc.

Comments closed

Popovers for Xojo Desktop, Web and iOS

Starting with Xojo 2024r1 there’s a new Window type in Xojo’s UI/UX bag: Popovers. Popovers are kind of a Modal window with a more transient behavior and associated with a Parent control. A Popover will display the chosen content or layout, the same as when you design the user interface of a window or a Container control that will be included as part of another more complex design or displayed at runtime.

Comments closed