Search found 108 matches

by jornmo
Sunday 17th September 2017 9:32am
Forum: General
Topic: JSON files
Replies: 16
Views: 148

Re: JSON files

I think the "Collection" could do with a ".Keys" as well as ".Key" function.... ?
Agree 8-)
by jornmo
Sunday 17th September 2017 9:31am
Forum: General
Topic: JSON files
Replies: 16
Views: 148

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)
by jornmo
Saturday 16th September 2017 4:41pm
Forum: General
Topic: JSON files
Replies: 16
Views: 148

Re: JSON files

Your code works but the 'TypeOf (v)' is never 'True' so is not called.
I suppose that's because your JSON file does not produce collections inside a collection, as with stevedee?!
by jornmo
Friday 15th September 2017 6:08pm
Forum: General
Topic: JSON files
Replies: 16
Views: 148

Re: JSON files

I can't get much from the Jornmo example. I tried the following
Try replacing:
If v Is Collection Then
With:
If TypeOf(v) = gb.Object Then
by jornmo
Thursday 14th September 2017 3:48pm
Forum: Lounge
Topic: We've got source code highlighting!
Replies: 1
Views: 312

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.
by jornmo
Thursday 14th September 2017 1:19pm
Forum: General
Topic: JSON files
Replies: 16
Views: 148

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 actually. A ...
by jornmo
Tuesday 12th September 2017 1:33pm
Forum: General
Topic: Program start
Replies: 19
Views: 269

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.
by jornmo
Monday 11th September 2017 2:12pm
Forum: General
Topic: Program start
Replies: 19
Views: 269

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).
by jornmo
Friday 08th September 2017 2:23pm
Forum: General
Topic: Program start
Replies: 19
Views: 269

Re: Program start

For example:
Public Sub Form_Open()
  
  Dim siCount As Short
  
  FMain.Show
  
  For sicount = 1 To 6
    Button1.text = Str(siCount)
    Wait 0.1
  Next
  
  Button1.text = Rand(1, 6)
  
    
End
But, why?
by jornmo
Thursday 31st August 2017 6:56pm
Forum: General
Topic: Program start
Replies: 19
Views: 269

Re: Program start

But, its still more of a hack than a proper understanding of the real problem. I think it has to do with in what order Gambas arranges the controls on the form. It might be that for some reason that is not clear, your subs are called in a different order than expected. You can try using breakpoints ...