Search found 25 matches
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...
...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...
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...
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...
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...
- Saturday 17th June 2017 10:32am
- Forum: Lounge
- Topic: Shouting about Gambas ONE on Diaspora
- Replies: 4
- Views: 205
...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...
- Thursday 15th June 2017 9:55am
- Forum: General
- Topic: Gambas3 view 5" 800x480 Display Problem
- Replies: 5
- Views: 282
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...
- Saturday 20th May 2017 8:58am
- Forum: Lounge
- Topic: Why am I so useless at proof reading?
- Replies: 8
- Views: 372
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.