XojoScript

An interesting question posed on TOF

is there any way to inject code into a control’s events at runtime?
Or, is there a way to create a function or sub procedure and create its methods, parameters, and insert code at runtime?

The consensus is, to alter compiled code – no. Which I agree with.

The suggestion was to investigate Xojoscript – which I also agree with.… Read the rest

SVG for Xojo

There are a few Xojo coded SVG handlers

Most do a minimal level of SVG abut dont handle lots of extra fancy bits. Like proper clip path handling, defs with later uses sections, rotation, scaling, gradient fills and several others.

I’ve been lucky enough to get my hands on a VERY VERY VERY early test version of an SVG plugin.… Read the rest

Numbers 2022

Since the last numbers post Xojo has moved a lot of cases to an”archived” status which I believe is a lot like “we’re not spending time on this unless you say its still relevant”. As well they removed several “open” statuses like Reviewed.

Direct comparisons to my last numbers post are more difficult with these changes.… Read the rest

Automating adding comments

In Xojo I often need to add in a comment about when I modified something or what I was working on
And the comment needs to be in a particular format – and it needs the current date & time as part of the comment
And, I want to be able to insert these EASILY into whatever code I’m working on right where the insertion point is

To do this I came up with this IDE Script that I saved in my Scripts dir next to the IDE

Dim stripped As String
stripped = DoShellCommand("echo ""// Updated `/bin/date ""+%Y-%m-%d %H:%M:%S %Z""` -- NJP"" | /usr/bin/tr -C -d ""[:print:]"" | /usr/bin/pbcopy -Prefer txt")

DoCommand("Paste")

this will make use of the DoShellCommand to get the unix shell to write a line with the current date in it, copy that to the clipboard, and then paste it right where the insertion point is

You can modify the unix shell commands used to do just about whatever else you want

Archived cases to be reopened

Posting this list here so its publicly known these exist & should be reopened
I’d post this list on TOF as well if I could

http://feedback.xojo.com/case/55562
http://feedback.xojo.com/case/55777
http://feedback.xojo.com/case/56094
http://feedback.xojo.com/case/56923
http://feedback.xojo.com/case/55319
http://feedback.xojo.com/case/57381
http://feedback.xojo.com/case/57380
http://feedback.xojo.com/case/56113
http://feedback.xojo.com/case/57125
http://feedback.xojo.com/case/56765
http://feedback.xojo.com/case/56233
http://feedback.xojo.com/case/57500

if you have your own list add to the thread on INN


Why you should subscribe to feedback cases

One of the criteria Xojo uses is number of voters (or subscribers) to judge how important a case is

Its been repeated that

I’m told it’s not that important to Xojo users or else they would have voted for it. So I’m going to rally the troops here and ask you to vote for it.

Because of how they rate importance it is important that you subscribe to bugs, not just read the case and hope Xojo does something about it.

Multiple return types dream

Suppose you want to do something like a set of preferences that are a simple key/value pairing.

A dictionary seems a great choice. Its keys can be any type and the values any type because both are variants.

So far so good.

Now you can do something like

dim i as integer = PrefsDict.Value("keyForIntegerValuedPreference")

And all seems great !… Read the rest