Examples for 2025 R1?

Greetings, Folks - I am trying to bring up a SerialConnection on 2025R1. When I go to the SerialConnection help, it says that most of the example code is from

Examples/Communication/Hardware/Serial/Line State Change Tester

But my installation (MacOS Sonoma) has no Examples folder. I have to go back to 2019R3.2 to find one and, yes, that example app is there. Why are there no examples with 2025R1? What is someone to do if they don’t have an earlier example folder that contains pertinent examples? With the rapidity of changes, how do I know that that 2019 example set still applies in 2025?

2023R3.1 does not have an examples folder, either!

Many thanks
Jim Wagner

The recent examples are downloaded from the internet, there is no Examples folder but you create a new project, select Examples and the IDE connect to the internet to download the latest available examples.

Edit: I think the examples are being this way for a couple of years now (or more).

OK, that works, but the format of writing it out as if a file path sure suggests otherwise. Thanks.

Is there a simple way to make a local copy of the example tree? There ARE times when (gasp) I have no internet access!

You can download them from:
https://documentation.xojo.com/_examples/xojoexamples.zip
Around 100MB zip file.
Folders with modification date of June 18, 2025. So it looks like Xojo updates the zip from time to time.

Thank you, again!

Jim

Thank you, Jim and Alberto, I missed this. Have now looked at them.

Is there an easy way to convert all the example projects from binary to text, so that I can quickly search through them for specific language features?

For instance, I want to look for the word “thread”.

Using the IDE you can search for “thread” like this:

at the right you will see some information about the kind and description for that example.

@AlbertoD
The IDE searches only in the titles. I think that @Mike_Linacre1 wants to search within the projects for the word “thread”.

Hello @Mike_Linacre1

I think you would have to open the examples and save them as Text so that you can search.

@PaulS yes, I’m just showing what search can be done without saving everything to text.

As these are just example projects, I don’t think you can find several that use “thread” besides the ones you can find following what I did. But you never know.

My guess is they are small/short enough to put on the title what the example is about.

Some text editors can search the binary format. And search the entires folder at once. That at least narrows down which examples use that term and can be opened and searched in the IDE. On Windows, I use Notepad++ to search an entire folder and spit out the file names that contain the term.

You can use Arbed to search through the binaries and view the code without opening the projects in the IDE.

1 Like

@Jared_Feder
+1 for Arbed.