Search found 518 matches
Re: USA
To me, the guns are really not the problem; the people are. There's plenty of weapons in Canada as well, but far less gun-violence... Well, Canada is not great in the gun-deaths league tables. They have a similar number of guns per capita to European countries like France & Germany, and slightl...
- Wednesday 27th September 2017 10:45am
- Forum: General
- Topic: Gambas sqlite
- Replies: 7
- Views: 9624
Re: Gambas sqlite
Thats a big question, and I don't know how much you know about Gambas & Sqlite, but you will need to include the gb.db component and if you want to use Data Bound controls gb.db.form. This is the simplest code I can think of to get you started; Create a new project and add a textArea to the Form...
- Friday 22nd September 2017 9:25am
- Forum: General
- Topic: Did you know?
- Replies: 91
- Views: 424195
Re: Did you know?
In Form view:- - If you select the width property of a control, the up/down arrows increase/reduce the width. - If you select the height property of a control, the up/down arrows increase/reduce the height. - If you select the X property of a control, the up/down arrows move the control right/left. ...
- Friday 15th September 2017 9:40am
- Forum: General
- Topic: JSON files
- Replies: 24
- Views: 25480
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 intege...
- Thursday 14th September 2017 9:24pm
- Forum: General
- Topic: JSON files
- Replies: 24
- Views: 25480
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...
- Thursday 14th September 2017 2:43pm
- Forum: General
- Topic: JSON files
- Replies: 24
- Views: 25480
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[...
- Wednesday 13th September 2017 4:55pm
- Forum: General
- Topic: JSON files
- Replies: 24
- Views: 25480
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...
- Tuesday 12th September 2017 8:50pm
- Forum: General
- Topic: JSON files
- Replies: 24
- Views: 25480
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.Leng...
- Monday 24th July 2017 8:20am
- Forum: Web
- Topic: Online Gambas Play Ground
- Replies: 3
- Views: 10800
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
Docs in the wiki: http://gambaswiki.org/wiki/playground
- Saturday 17th June 2017 10:32am
- Forum: Lounge
- Topic: Shouting about Gambas ONE on Diaspora
- Replies: 4
- Views: 9412
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...