Article Preview
Buy Now
COLUMN
A New Way to Date
Exploring API 2.0
Issue: 17.6 (November/December 2019)
Author: Marc Zeedar
Author Bio: Marc taught himself programming in high school when he bought his first computer but had no money for software. He's had fun learning ever since.
Article Description: No description available.
Article Length (in bytes): 11,760
Starting Page Number: 90
Article Number: 17608
Resource File(s):
project17608.zip Updated: 2019-11-01 12:16:10
Related Link(s): None
Excerpt of article text...
Things are changing with Xojo, as API 2.0 is here (in 2019 release 2) and that means new toys for us to play with. (It's better to think of it in that positive way rather than, "Oh boy, more work for me to fix all my projects!")
API 2.0 is an interesting beast. It has new features, but they're done in such a way that they don't interfere or change the way you've been working. The goal is to make the Xojo language more consistent, predictable, and easier to learn. For us old fogies, it's change, but for everyone else it's progress.
There's a lot of grammatical change to the Xojo syntax, such as windows that use
Opening
events instead ofOpen
, to better describe what's really happening (the window isn't actually opened yet, but it's in the process of opening).Similarly,
pushButtons
now have aPressed
event when they've been clicked. Arrays have added lots of new syntax, such asaddRow
instead ofappend
, andlastRowIndex
instead ofuBound
. Most of this is minor and won't change your coding.You can read more about these changes in the Xojo User Guide:
https://docs.xojo.com/UserGuide:Moving
To API_2.0
...End of Excerpt. Please purchase the magazine to read the full article.