Search found 220 matches
- Wednesday 27th September 2017 12:24pm
- Forum: General
- Topic: Start up function in library
- Replies: 5
- Views: 7237
Re: Start up function in library
You cannot use _new if the library is static. A module is a static class, i.e. it cannot be created, only accessed directly. If you put the library code in a class file, you can create objects out of it, and this is where _new comes in. As the new object is created, you can have it initialise the co...
- Tuesday 26th September 2017 5:30pm
- Forum: General
- Topic: Start up function in library
- Replies: 5
- Views: 7237
Re: Start up function in library
What exactly do you mean by a "start up function"? A function that is run when the library is accessed? In that case, if it is an object, you can utilize the constructor, _new().
- Sunday 17th September 2017 9:32am
- Forum: General
- Topic: JSON files
- Replies: 24
- Views: 23022
Re: JSON files
AgreeI think the "Collection" could do with a ".Keys" as well as ".Key" function.... ?
- Sunday 17th September 2017 9:31am
- Forum: General
- Topic: JSON files
- Replies: 24
- Views: 23022
Re: JSON files
If you tick "Do not automatically parse URLs" below the posting form, the URL's will display properly inside the code highlighter. (I will sooner or later need to make the plugin skip parsing automatically)
- Saturday 16th September 2017 4:41pm
- Forum: General
- Topic: JSON files
- Replies: 24
- Views: 23022
Re: JSON files
I suppose that's because your JSON file does not produce collections inside a collection, as with stevedee?!Your code works but the 'TypeOf (v)' is never 'True' so is not called.
- Friday 15th September 2017 6:08pm
- Forum: General
- Topic: JSON files
- Replies: 24
- Views: 23022
Re: JSON files
Try replacing:I can't get much from the Jornmo example. I tried the following
If v Is Collection Then
With:If TypeOf(v) = gb.Object Then
- Thursday 14th September 2017 3:48pm
- Forum: Lounge
- Topic: We've got source code highlighting!
- Replies: 2
- Views: 52065
Re: We've got source code highlighting!
In order to be able to have plain text URLs inside code, and not have them parsed by the forum and turned into HTML, remember to tick off "Do not automatically parse URLs", below the editor, before posting.
- Thursday 14th September 2017 1:19pm
- Forum: General
- Topic: JSON files
- Replies: 24
- Views: 23022
Re: JSON files
As an additional exercise, I spent an hour or two this morning trying to do the same thing with: "https://www.cryptocompare.com/api/data/coinlist/" This collection includes a mixture of strings and collections, and I can't think how to deal with this. I think that should be pretty easy ac...
- Tuesday 12th September 2017 1:33pm
- Forum: General
- Topic: Program start
- Replies: 19
- Views: 19553
Re: Program start
No, in this example it will not, and that is how it is supposed to be. But, the drawing of you puzzle game form is a bit different from this, and should to my understanding not need a timer, as I have shown with my own code.
- Monday 11th September 2017 2:12pm
- Forum: General
- Topic: Program start
- Replies: 19
- Views: 19553
Re: Program start
Still, this hack was not necessary in the example I made for you, so either there's a bug somewhere, or there's something funny in the way you construct your form (that I cannot see).