Search found 25 matches

by stevedee
Friday 15th September 2017 9:40am
Forum: General
Topic: JSON files
Replies: 16
Views: 143

Re: JSON files

Reading my last post again this morning, I realise something is not quite right with my explanation. Although the Cars example appears to work, the variable "Make" should be an integer, not a string. The reason it appears to work as a string is that Gambas just quietly converts each integer into a s...
by stevedee
Thursday 14th September 2017 9:24pm
Forum: General
Topic: JSON files
Replies: 16
Views: 143

Re: JSON files

...Your solution worked but confused me as I have only ever enumerated with the variable after 'Each' not with the variable after 'In' e.g. For Each ciBitcoin In cBitcoin Print ciBitcoin .Key Next But you worked with ciBitcoin, it works but I can't work out the logic here. For Each ciBitcoin In cBi...
by stevedee
Thursday 14th September 2017 2:43pm
Forum: General
Topic: JSON files
Replies: 16
Views: 143

Re: JSON files

Yes, I discussed it with #3 son last night (he is doing Computer Science at Uni, but does not code in Gambas) and this morning I came up with this:- Shell "wget -O - https://www.cryptocompare.com/api/data/coinlist/" To sNew cBitcoin = Json.decode(sNew, True) For Each ciBitcoin In cBitcoin["Data"] st...
by stevedee
Wednesday 13th September 2017 4:55pm
Forum: General
Topic: JSON files
Replies: 16
Views: 143

Re: JSON files

The clues are in your first post, but I don't know how much time you have spent playing around with Collections. As your screen shots show, vNew contains a collection of collections. Each trading pair in the collection contains its own collection of data, where the trading pair name is the Key strin...
by stevedee
Tuesday 12th September 2017 8:50pm
Forum: General
Topic: JSON files
Replies: 16
Views: 143

Re: JSON files

Try this:- Public Sub Main() Dim vNew As Variant Dim sNew As String Dim cBitcoin As Collection Dim ciBitcoin As Collection Shell "wget -O - https://poloniex.com/public?command=returnTicker" To sNew vNew = Json.decode(sNew) ''Requires component 'gb.web' cBitcoin = vNew ' Print cBitcoin.Length For Eac...
by stevedee
Monday 24th July 2017 8:20am
Forum: Web
Topic: Online Gambas Play Ground
Replies: 3
Views: 101

Re: Online Gambas Play Ground

This looks like a quick way to check ideas or small sections of code. Its rather like: https://www.w3schools.com/ ...but for Gambas.

Docs in the wiki: http://gambaswiki.org/wiki/playground
by stevedee
Saturday 17th June 2017 10:32am
Forum: Lounge
Topic: Shouting about Gambas ONE on Diaspora
Replies: 4
Views: 205

Re: Shouting about Gambas ONE on Diaspora

...I have two concerning issues: I actually feel more safe leaving my data with facebook than some random guy who has a pod. Its true that all posts and profile data is no safer on a Diaspora pod than it is on the Gambas ONE forum. (...hey, I trust you and cogier with my life!) Unlike Facebook, who...
by stevedee
Friday 16th June 2017 9:30am
Forum: Lounge
Topic: Shouting about Gambas ONE on Diaspora
Replies: 4
Views: 205

Shouting about Gambas ONE on Diaspora

G1_Diaspora.png
G1_Diaspora.png (17.03 KiB) Viewed 205 times
What is Diaspora?
https://captainbodgit.blogspot.co.uk/20 ... ckies.html
by stevedee
Thursday 15th June 2017 9:55am
Forum: General
Topic: Gambas3 view 5" 800x480 Display Problem
Replies: 5
Views: 282

Re: Gambas3 view 5" 800x480 Display Problem

I use [Alt] + [Drag] the appearance still same... I have a Tontec 7 inch display on one of my Raspberry Pi systems. Here are some comments; It is difficult to tell from your screen shot, but I don't think your desktop is completely filling the available display. You should be able to fix this by ed...
by stevedee
Saturday 20th May 2017 8:58am
Forum: Lounge
Topic: Why am I so useless at proof reading?
Replies: 8
Views: 372

Re: Why am I so useless at proof reading?

jornmo wrote:
Friday 19th May 2017 8:34pm
...have you lost your identity...
Nice one jornmo.

When I'm in my man-in-a-hurry mode I just miss things like this. If I'd read it out loud to myself, I may have found it sooner.

So yes, the top line with "identify" works, the line with "identity does not work.