[Gambas-devel] Release of gambas 1.9.34

Ron Onstenk ronstk at ...124...
Wed Jul 19 23:29:09 CEST 2006


On Wednesday 19 July 2006 13:08, Daniel Campos wrote:
> In fact there's a Stock class...
> 
> 2006/7/18, Fabien Bodard <sirfabien at ...176...>:
> >

Nice, but how to use it?

Maybe in the gnome/gtk world it is known for developers in C/C++
But how to expect simple mind kde/qt users using gambas while C/C++
is to cryptic for them are able to use it.

Mostly programmers know very well how things are related and
how it (should) work, in there speciality environment.
Like me with a norton commander clone on a z80 based TRS80.
I do understand exactly what uncommented calls doing in that 
program but the simple gambas user can have a very had time 
to follow the source of the IDE.
Of course it is optimized and the parts more then once are 
transfered to a Sub/Function.

A good help is when users can open the called/used class aside 
the code they are inspecting. 
I mean view them together without switching editors because that 
distract them from the sofar understanding of the current part. 

Same problem with XML and pdf.
The pdf example does simply do not work here.
The object/class is unknown or expecting object xyz but got integer.
With XML I did also not have success. 
A working/updated example for the current version of gambas would be nice.
I'm not able to create it because I do not have a clue how the
object construction of pdf/xml is implemented.

For the project I'm working on I wished to use XML.
no luck
For the printing/email the bill I wanted to use the pdf part.
no luck
The gb.form.db is not usable, (at least for me). 
I can't simple put the controls on a form.  
When I put a combobox/listbox on a form and try to fill them
in the form _new event the click/select events are fired, 
just like the user has chosen something. 
How to preset a value during new without the click/select event?

The fact you say 'In fact there's a Stock class' is telling enough.
Yes I have seen the 'Stock' class too.

Internal help and website say:
  Stock (gb.qt)

  Symbols
  This class is static.
  This class acts like a read-only array.
???????
'read-only' array
At our repair centre we have also a stock.
It is filled with resistors, diodes, IC, and all those stuff in your PC.
But what does this stock contain?
This page say's effective nothing so why look futher.
I know what 'read-only' is there for no need to follow link 
to read what read-only' is.


But I follow it, curious what to find there

  Stock (gb.qt)

  Syntax
  DIM hPicture AS Picture
  hPicture = Stock [ Key AS String ]

??????? is every thing called 'read-only' this?


OK Stock looks as array by the '[' and ']'.
But Key ?
If it is readonly then somewhere gambas must have prepared it with content. 
Correct me when i'm wrong, maybe cups or samba does it :) 

How do I know that key if I'm not able to add items to STOCK[].
Pleas remember, I'm a simple mind person.
I have learned already now that readonly is
  DIM hPicture AS Picture
  hPicture = Stock [ Key AS String ]
So when there is somewhere told it is 'read-only' I understand it is this.


More information about the Devel mailing list