Special

Introducing the “Welcome to Xojo” Bundle!

New to Xojo and looking for guidance? We've put together a terrific bundle to welcome you! Xojo Bundle

This bundle includes six back issues of the magazine -- all of year 21 in printed book and digital formats -- plus a one-year subscription (beginning with 22.1) so you'll be learning all about Xojo for the next year. It's the perfect way to get started programming with Xojo. And you save as much as $35 over the non-bundle price!

This offer is only available for a limited time as supplies are limited, so hurry today and order this special bundle before the offer goes away!

Article Preview


Buy Now

Issue 19.5 ('Xojo Business Solution')
Instant purchase and download via GumRoad!

COLUMN

JavaScript in Xojo

Running JavaScript in your Xojo apps

Issue: 19.5 (September/October 2021)
Author: Stefanie Juchmes
Author Bio: Stefanie studied computer science at the university in Bonn. She came in touch with Xojo due to the work of her brother-in-law and got a junior developer position in early 2019 at Monkeybread Software.
Article Description: No description available.
Article Length (in bytes): 7,377
Starting Page Number: 90
Article Number: 19509
Resource File(s):

Download Icon project19509.zip Updated: 2021-08-31 23:29:26

Related Web Link(s):

http://www.qslnet.de/member1/dg1xpz/programm/jscript/euklid.html

Excerpt of article text...

In this article I show how you can use JavaScript in your Xojo applications. If you have a problem that you want to solve, you don't have to reinvent the wheel again and again. Perhaps someone has already found a solution to this problem and shared the solution on the Internet. So start a search engine and try your luck.

In this example, we want to implement the Euclidean algorithm. This algorithm determines the greatest common divisor of two numbers. Sure, you could program this directly in Xojo, but this example shows how you can use the JavaScript functions from the MBS plugins.

We can find the algorithm in JavaScript on this web page:

http://www.qslnet.de/member1/dg1xpz/programm/jscript/euklid.html

...End of Excerpt. Please purchase the magazine to read the full article.