[Gambas-user] Database Results

2010-09-11 Thread tobias
hello mailing list, i am absolutely new to databases in general and so to databases in gambas, too. i plan to use sqlite3 and in general i am understanding the related stuff part by part but it is very confusing with the different classes and i think this complicates my learning process. but to

Re: [Gambas-user] Database Results

2010-09-11 Thread tobias
ERT INTO test (id, name) VALUES ('1', 'name01')" > hConnection.Exec(SQL) > > Regards, > Ricardo Díaz > > > > 2010/9/11 Tobias Boege > > >> hi, >> >> >>> like that ? >>> >>> For each hresult &g

Re: [Gambas-user] Database Results

2010-09-12 Thread tobias
gt; All depend of the project ... for a little project with 10 to 1 > entry ... sqlite is good enouth. For more take a look to mysql or > postgresql ... i'm agree with richard , postgre is powerfull ... (Both > are good enouth for non professionnal in fact) > > 2010/9/12 Cav

Re: [Gambas-user] Database Results

2010-09-12 Thread tobias
hi, another question about the databases and gambas to the developers: how do i have to imagine exactly the interaction between the (sqlite) driver and my gambas program? what exactly is this 'driver'? is it just a kind of library? (sorry, i'm not so good at this level and i never had to do any

Re: [Gambas-user] Database Results

2010-09-12 Thread tobias
hi, > It's a kind of lbrary ... you select gb.db in thecomponents. > > > then > > private hcon as new connection > > > Publc sub Main() > > hCon.type = "sqlite3" > hCon.Host=user.home &/ "dbpath" > hcon.Name = "mydatabase" > hcon.open > > end > yeah, so this 'kind of library' it l

Re: [Gambas-user] Dim :: Another newbie question

2010-09-13 Thread tobias
hi, > Hi again, > > Local variables are declared with Dim, but, they need to be declared at > top of the Sub procedure? > > Thanks > > ___ > Lic. Daniel Quintero Rojas > > http://www.dquinter.com.mx > ___ > -

Re: [Gambas-user] someshort="xy" returns "Wanted short, got string instead"

2010-09-15 Thread tobias
hi, > I can say, somebyte=ASC("x"), but is it possible to quickly assign a two-byte > string to a typical two-byte short? > > I'm sure this can be done with some lengthy function but (as most > programmers should) I have a need for efficiency. I'm not concerned with > character set mishaps for pe

Re: [Gambas-user] someshort="xy" returns "Wanted short, got string instead"

2010-09-15 Thread tobias
hi, > hi, > >> I can say, somebyte=ASC("x"), but is it possible to quickly assign a two-byte >> string to a typical two-byte short? >> >> I'm sure this can be done with some lengthy function but (as most >> programmers should) I have a need for efficiency. I'm not concerned with >> character set

Re: [Gambas-user] someshort="xy" returns "Wanted short, got string instead"

2010-09-16 Thread tobias
hi, > > tobias-47 wrote: >> i forgot the asc() functions, of course: >> >> PUBLIC FUNCTION GetShort(sWord AS String) AS Short >> >> RETURN Asc(Mid$(sWord, 1, 1)) * 256 + Asc(Mid$(sWord, 2, 1)) >> >> END >> >> or alternative

[Gambas-user] ME.Height and Menus

2010-09-27 Thread tobias
Good evening, i never had to use menues in my programs, but now i have to reproduce a program written in delphi for our ubuntu computers at school, only for education purposes (the program was also written by students, don't worry ;)). this program has a menue and a simple textarea just under i

Re: [Gambas-user] Is it possible to create .DEB packages from Fedora?

2010-09-29 Thread tobias
hi, > I'd like to move to Fedora, but I won't do it without knowing whether I'll > be able to create gambas2 project packages for Debian based distributions. > Is it solved in Fedora? > > Thanks! > > Csaba well, i use ubuntu and if i click on "make installation package", next to executable too

Re: [Gambas-user] Question about some simple code enterin' data

2010-10-14 Thread tobias
pira...@mail.com schrieb: > Hi everyone. > I need to enter numeric data into a previously formatted text field. > The format is 99-99-9, where 9s are any number. > I need to display just the scores so the operator just enters the > numbers. > Please help!! > Thanks in advance. > Pablo. >

Re: [Gambas-user] Question about some simple code enterin' data

2010-10-15 Thread tobias
o manage it. > Hope to be clear with my explanation. > Thanks again. > Wait 4Ur answer. > Pablo. > > > > -Original Message- > From: tobias > To: mailing list for gambas users > Sent: Thu, Oct 14, 2010 3:51 pm > Subject: Re: [Gambas-user] Question abo

Re: [Gambas-user] Question about some simple code enterin' data

2010-10-15 Thread tobias
pira...@mail.com schrieb: EXACTLY EXACTO That's what I need. The function is called input mask. I could not find it in Gambas. -Original Message- From: tobias To: mailing list for gambas users Sent: Fri, Oct 15, 2010 9:26 am Subject: Re: [Gambas-user] Question about some simple

[Gambas-user] SQLite Driver

2010-11-02 Thread tobias
good evening, i have a simple question. in the doc it is said that "The SQLite driver supports the version 3 of SQLite, and falls back to the version 2 driver if needed. See www.sqlite.org for more information. " first, i can't find these "more information"... and i what could be reasons for the

[Gambas-user] SQLite memory database

2010-11-03 Thread tobias
good evening, i have a more sqlite related question: what does it mean in the doc: For SQLite, you can also create and use a database in memory by giving as database name the string ":memory:". (from gambas2 doc, gb.db.connection.name) what is creating a database in memory?? simply a temporary d

Re: [Gambas-user] SQLite memory database

2010-11-03 Thread tobias
tobias schrieb: > good evening, > i have a more sqlite related question: > what does it mean in the doc: For SQLite, you can also create and use a > database in memory by giving as database name the string ":memory:". > (from gambas2 doc, gb.db.connection.name) > &

[Gambas-user] SQL Transaction

2010-11-03 Thread tobias
hi, i have another sql related question: what are the benefits of using a transaction instead of ... using it not? regards, tobi -- The Next 800 Companies to Lead America's Growth: New Video Whitepaper David G. Thomson,

[Gambas-user] Result object

2010-11-15 Thread tobias
hi, i have again another question about the result object... when i do: hResult = hConnection.Edit("table") i get a read/write result, i can move through the elements and edit their fields, e.g. hResult.MoveTo(2) hResult["id"] = 10 right? but where do i have to move to to add one (or more) new e

Re: [Gambas-user] Result object

2010-11-16 Thread tobias
Charlie Reinl schrieb: > Am Montag, den 15.11.2010, 19:56 +0100 schrieb tobias: >> hi, >> i have again another question about the result object... >> when i do: >> hResult = hConnection.Edit("table") >> >> i get a read/write result, i can move th

Re: [Gambas-user] Result object

2010-11-17 Thread tobias
Charlie Reinl schrieb: > Am Dienstag, den 16.11.2010, 21:44 +0100 schrieb tobias: >> Charlie Reinl schrieb: >>> Am Montag, den 15.11.2010, 19:56 +0100 schrieb tobias: >>>> hi, >>>> i have again another question about the result object... >>>

Re: [Gambas-user] Result object

2010-11-17 Thread tobias
Charlie Reinl schrieb: > Am Dienstag, den 16.11.2010, 21:44 +0100 schrieb tobias: >> Charlie Reinl schrieb: >>> Am Montag, den 15.11.2010, 19:56 +0100 schrieb tobias: >>>> hi, >>>> i have again another question about the result object... >>>

Re: [Gambas-user] Result object

2010-11-17 Thread tobias
Benoît Minisini schrieb: >> Charlie Reinl schrieb: >>> Am Dienstag, den 16.11.2010, 21:44 +0100 schrieb tobias: >>>> Charlie Reinl schrieb: >>>>> Am Montag, den 15.11.2010, 19:56 +0100 schrieb tobias: >>>>>> hi, >>>>>

[Gambas-user] Result object, again

2010-11-24 Thread tobias
good evening all, i have another question about my eternal punishment: the result object :-) caveat answered to a former question about results in general: >If you got into the habit of reading all the >records you've selected into memory (or even if the Result object >worked >that way behind

Re: [Gambas-user] Result object, again

2010-11-25 Thread tobias
Benoît Minisini schrieb: >> good evening all, >> i have another question about my eternal punishment: the result object :-) >> >> caveat answered to a former question about results in general: >> >If you got into the habit of reading all the >> >records you've selected into memory (or even if the

[Gambas-user] Primary Key missing?

2010-11-25 Thread tobias
hello, prooving my sqlite code, i have several buttons on a form, whose subs should do the same work in different ways (one just using Exec() method, the other does all work with the gambas objects (editing fields etc.)). after this code: Button2_Click: DIM hResult AS Result hConnectio

Re: [Gambas-user] Primary Key missing?

2010-11-26 Thread tobias
hi, > So I'm wondering whether your Edit might not work better if you were to > try: > > hResult = hConnection.Edit("test", "id=&1", 1) > hResult["name"] = "Adam" > hResult.Update > hResult.Commit > > this gives the same error, i changed the tables creation to hConnection.Exec

Re: [Gambas-user] Primary Key missing?

2010-11-27 Thread tobias
Benoît Minisini schrieb: >> hi, >> >>> So I'm wondering whether your Edit might not work better if you were to >>> >>> try: >>> hResult = hConnection.Edit("test", "id=&1", 1) >>> hResult["name"] = "Adam" >>> hResult.Update >>> hResult.Commit >> this gives the same error, i changed t

Re: [Gambas-user] Primary Key missing?

2010-11-28 Thread tobias
>>> hi, >>> So I'm wondering whether your Edit might not work better if you were to try: hResult = hConnection.Edit("test", "id=&1", 1) hResult["name"] = "Adam" hResult.Update hResult.Commit >>> this gives the same error, i changed the tables creat

[Gambas-user] Connection.Create and .Index

2010-11-29 Thread tobias
hi, i'm confused about the output i get from: PUBLIC SUB test() DIM hResult AS Result 'hConnection is an established Connection, with existing Table "test", Fields "id", db.Serial Primary Key, "name" db.String hResult = hConnection.Create("test") PRINT hResult.Index hResult["nam

Re: [Gambas-user] Connection.Create and .Index

2010-11-29 Thread tobias
Benoît Minisini schrieb: >> hi, >> >> i'm confused about the output i get from: >> >> PUBLIC SUB test() >> >>DIM hResult AS Result >> >>'hConnection is an established Connection, with existing Table >> "test", Fields "id", db.Serial Primary Key, "name" db.String >>hResult = hConnection.

Re: [Gambas-user] Connection.Create and .Index

2010-11-29 Thread tobias
Benoît Minisini schrieb: >>> In creation mode there is only one record in the Result object, the >>> record that will be created. So Result.Index always returns 0. >>> >>> Regards, >> oh... of course! this makes sense! >> and for general unterstanding, i can say that an index in a result is >> some

Re: [Gambas-user] Connection.Create and .Index

2010-11-30 Thread tobias
Benoît Minisini schrieb: >> so how does the driver know where to write a result record to in a >> database? >> >> thanks, >> tobi >> > > Well, do you know what SQL is? > i know that it is a query language to manipulate data in databases, but that doesn't seem to be enough if you can answer my q

Re: [Gambas-user] Connection.Create and .Index

2010-11-30 Thread tobias
Benoît Minisini schrieb: >> Benoît Minisini schrieb: so how does the driver know where to write a result record to in a database? thanks, tobi >>> Well, do you know what SQL is? >> i know that it is a query language to manipulate data in databases, but >> that doesn't seem

[Gambas-user] Connection.Tables

2010-12-05 Thread tobias
hi, i noticed something in my test with Connection.Edit() (sqlite3): i created a table with connection.exec() hConnection.Exec("create table test(id integer primary key, name varchar(10));") then inserted some data hConnection.Exec("insert into test(name) values(\"Aaron\");") hConnection.Exec("in

Re: [Gambas-user] Connection.Tables

2010-12-05 Thread tobias
Benoît Minisini schrieb: >> hi, >> i noticed something in my test with Connection.Edit() (sqlite3): >> i created a table with connection.exec() >> >> hConnection.Exec("create table test(id integer primary key, name >> varchar(10));") >> >> then inserted some data >> hConnection.Exec("insert into te

Re: [Gambas-user] Connection.Tables

2010-12-05 Thread tobias
>> You can't update the primary index of a table once it has been created >> anyway. >> >> I have understood where the bug with primary key comes from. It is just a >> matter of case: write "integer" in upper case, and the database driver will >> detect the primary key! >> >> To understand all

Re: [Gambas-user] Connection.Tables

2010-12-05 Thread tobias
Benoît Minisini schrieb: You can't update the primary index of a table once it has been created anyway. I have understood where the bug with primary key comes from. It is just a matter of case: write "integer" in upper case, and the database driver will detect the prim

Re: [Gambas-user] Connection.Tables

2010-12-06 Thread tobias
t deklarierte Bezeichner wird nur einmal aufgeführt gbc_trans.c:104: Fehler: für jede Funktion in der er auftritt.) make[4]: *** [gbc2-gbc_trans.o] Fehler 1 make[4]: Verlasse Verzeichnis '/home/tobias/2.0/main/gbc

Re: [Gambas-user] Tests against pointers in Gambas3

2011-01-12 Thread tobias
hi, > Hi, > > i study the cases of pointers and i found at this page > http://www.yolinux.com/TUTORIALS/C++MemoryCorruptionAndMemoryLeaks.html > > cases of program crashes from bad usage of pointers. > > i made a test for > Attempting to write to memory already freed. > > ... > > in this exam

[Gambas-user] DataSource.Cancel()

2011-01-15 Thread tobias
hi developers, can you tell me please what the undocumented method DataSource.Cancel() does? regards, tobi -- Protect Your Site and Customers from Malware Attacks Learn about various malware tactics and how to avoid the

[Gambas-user] Custom Class question

2011-01-25 Thread tobias
hi, i have a question about some source code from fabien from 8th november 2009 about creating custom controls: "I think for the begginnig you must to do an encapsulating classe. It's a class that take a control as parameter. And give to it new function or feature. so:

[Gambas-user] gb.db.form driver missing

2011-02-16 Thread tobias
good evening, i'm testing gb.db.form for some time now and got some confusing (in fact it is not that confusing, i can imagine the situation): i have a simple form form->datasource->databrowser and my code is as follows: PUBLIC hConn AS NEW Connection PUBLIC SUB Form_Open() hConn.Type = ... hC

[Gambas-user] ftpclient problems

2011-03-21 Thread tobias
good evening, i am redirecting a question to you again: this time it's about the FTPClient class. after some research and tries i managed it to upload a file from a pc to a specified directory on an ftp server and to download a file from the ftp server to pc. 1. problem: the events FTPCli

Re: [Gambas-user] ftpclient problems

2011-03-22 Thread tobias
hello, > I don't understand your english sentence in the point #2. > yes, i don't understand the german original either, i just translated the words :) i will ask for that sentence and the project. regards. -- Enable

[Gambas-user] Pointer to Datatypes

2011-03-28 Thread tobias
good evening all, i've been having some trouble for a time with pointers in gambas 2. i mainly wrote programs in c the last year but now i mainly deal with gambas again because my class mates want some gui in the programs at school... it would be the greatest thing if i can pass some pointers t

Re: [Gambas-user] How can I print my Gambas program code?

2011-03-29 Thread tobias
hi, hum, i would consider open your files in a program that can print texts? regards, tobi -- Enable your software for Intel(R) Active Management Technology to meet the growing manageability and security demands of your c

Re: [Gambas-user] How to find out internet status

2011-04-03 Thread tobias
hi, this for sure isn't the best solution but my first thought was using ifconfig to determine if your internet interface (maybe eth0 or whatever) has an ip address which should mean that it is connected..? (i don't know how it works with a modem) this way you are at least independant of a test

Re: [Gambas-user] How to find out internet status

2011-04-04 Thread tobias
hi, your whole code works fine for me. are you sure that you really call this routine in the main program? this is the only reason i can think of... -- Create and publish websites with WebMatrix Use the most popular FREE

[Gambas-user] gambas2 - gambas3

2011-04-07 Thread tobias
hi developers, i redirect another question: is there a list that tells specifically what classes are removed/added/changed from gambas2 in gambas3? best regards, tobi -- Xperia(TM) PLAY It's a major breakthrough. An auth

Re: [Gambas-user] gambas2 - gambas3

2011-04-07 Thread tobias
good evening, thank you, i hope this will do it for him! -- Xperia(TM) PLAY It's a major breakthrough. An authentic gaming smartphone on the nation's most reliable network. And it wants your games. http://p.sf.net/sfu/veri

[Gambas-user] gb2 Eval() question

2011-04-22 Thread tobias
hi, i've been playing around with Eval() for some days, i read that it evaluates only expressions so i understand that DIMs raise "unexpected DIM" but what about SHELL and EXEC which also raise "unexpected ..." what is the difference between Eval("hProcVar = SHELL \"zenity --info --text hello\"

[Gambas-user] watcher class

2011-04-25 Thread tobias
hi, i have to redirect a question again: --- I need an example that demonstrates how to use the Watcher class and its 4 events. can you look at the project and tell me if this is what the watcher class is about? --- happy easter, tobi WATCHER-0.0.27.tar.gz Description: GNU Zip compressed dat

Re: [Gambas-user] watcher class

2011-04-25 Thread tobias
hi, thanks for your reply. i told him that it will be like this with the watcher but he didn't believe me :) oh, i forgot to translate it because i don't even understand the concept of this test project... the english one is attached now.. i found that it may be difficult show the FMain because

[Gambas-user] Anonymous Collection

2011-05-13 Thread tobias
hi, i wonder if there is a way to declare an "anonymous collection" just as one would do it with arrays: FOR EACH s IN ["a", "b"] PRINT s NEXT regards, tobi -- Achieve unprecedented app performance and reliability Wha

Re: [Gambas-user] porting VB to GB3 "ListIndex" ?

2011-06-04 Thread tobias
hi, i haven't got gambas3 already but in gb2 it's like this: ComboBox1.Index + 2 (if i looked up correctly what combobox.ListIndex in vb means) if you want to set the current item in this box, you can assign a number to combobox1.Index, setting combobox1.Current doesn't work...? i hope this works

Re: [Gambas-user] Extra gb.newline ?

2011-06-09 Thread tobias
hi, without having seen the code - i think it's all ok with your code - i'd say that the problem is in creation of the text file. editors like gedit are likely to add a newline at the end of file so it is shuffled into the second file, too. try to create your file like this in terminal: echo -n

[Gambas-user] Multiline question

2011-06-10 Thread tobias
hello, i have a question about long lines. i know one can split long IF-statements at logical operations like IF TRUE = TRUE AND FALSE = FALSE THEN but is there a way to do that splitting in normal code? i think of something like i = \ 2 which should end up as i = 2 for the interpreter. is there

Re: [Gambas-user] Multiline question

2011-06-10 Thread tobias
hi, > You can do like this: > > Foo=bar& > Var1& > &foo > > Which results in: "barVar1foo" > it doesn't work for me. is it a gambas3 thing? -- EditLive Enterprise is the world's most technically advanced content autho

Re: [Gambas-user] Multiline question

2011-06-10 Thread tobias
> What do you need exactly? i think the person i am asking for means something like the backslash with defines in c: #define MACRO(a, b) a \ + b i have no snippet from him and honestly i never had such a problem. regards, tobi ---

Re: [Gambas-user] Extra gb.newline ?

2011-06-10 Thread tobias
hi, according to https://bugs.launchpad.net/ubuntu/+source/gedit/+bug/379367 this issue should be configurable in gedit now... i don't see it in my old version, but consider looking for it in yours. -- EditLive Enterpris

Re: [Gambas-user] Extra gb.newline ?

2011-06-10 Thread tobias
oh, i'm sorry, it seems not to be possible already, i just looked at "Gedit adding a newline at the end of file should be configurable " at the end and didn't notice that it is a quotation-.- -- EditLive Enterprise is th

Re: [Gambas-user] ListBox selection

2011-06-15 Thread tobias
Hi, yes, it's pretty straightforward, just use ListBox[Index].Selected (just to get their texts not the whole object in this example): DIM i AS Integer FOR i = 0 TO ListBox1.Count - 1 IF ListBox1[i].Selected THEN PRINT ListBox1[i].Text ENDIF NEXT regards, tobi --

Re: [Gambas-user] ListBox selection

2011-06-15 Thread tobias
but to answer your question "is there a way to get in an array the selected items?" no, this isn't possible because .ListBoxItems are virtual objects you can't store them into arrays but they only have .Selected and .Text, you know they're selected so the only thing you may need is .Text (as su

Re: [Gambas-user] ListBox selection

2011-06-15 Thread tobias
hi, it's not clear to me what you want exactly. "i want to multiple select values and able to delete them." you want to select multiple items and delete them all? but why do you need Find() then? can you explain it, please? --

Re: [Gambas-user] ListBox selection

2011-06-15 Thread tobias
hi, oh well, now i think i understood. but this doesn't change my answer: you don't need find to get the index of a special item. you said, you selected one or multiple items and you want to remove them. no problem, use the method i mentioned earlier in this topic: PUBLIC SUB Button1_Click()

[Gambas-user] Catching an Event from an Object in another Class

2011-06-24 Thread tobias
hi everyone, i want to get the Editor_Highlight event of an Editor on a form in a separate class, too. i have in the following in that class: PRIVATE hEditor AS Editor PUBLIC SUB _new(hSubject AS Editor) hEditor = hSubject END PUBLIC SUB hEditor_Highlight() PRINT Highlight.Text END

Re: [Gambas-user] Catching an Event from an Object in another Class

2011-06-24 Thread tobias
hi, > PUBLIC SUB _new(hSubject AS Editor) > > hEditor = hSubject > object.attach(hSubject, me, "heditor") > > END > thanks a lot. i just read this, too, but didn't notice that it could be significant. anyway, thanks, tobi --

[Gambas-user] Component Loading

2011-06-26 Thread tobias
hi, i never used the Class class before and now tried, as a preparation for using Component class, to manually load a class. the class looks like: PUBLIC SUB _init() PRINT "Here I am" END if i load it using Class.Load("testclass") everything is fine. i saw in the sources (just in a comment) t

Re: [Gambas-user] ScrollView properties

2011-06-26 Thread tobias
hi, i am really tired today so i think that's the reason why i don't understand entirely what you want but i think i know... you have a big picture in a ScrollView which is scrolled somewhere and you want to track the mouse position relatively to 0,0 on your picture, right? i thought about this

Re: [Gambas-user] ScrollView properties

2011-06-26 Thread tobias
hi, to be more exact. you should use: PRINT Mouse.ScreenX - PictureBox1.ScreenX this will give the position of the mouse relative to PictureBox1's 0,0 which is the same as your pictures 0,0 regards, tobi -- All of the d

Re: [Gambas-user] Component Loading

2011-06-26 Thread tobias
hi, oh well, it's a very confusing subject in my email, i'm sorry, it's about class loading as a preparation for component loading... i figured it out by myself and the sources... every class is compiled, named with capital letters without extension put into .gambas (in my gambas2) in the projec

[Gambas-user] External Variables

2011-06-27 Thread tobias
hi, i have a component that should use a variable (or class) which is declared globally in a project. i know that this isn't good practice but i just want to know if it is possible to tell the compiler not to look for this variable and that it can be resolved when the component loaded. the onl

Re: [Gambas-user] Create and delete labels dinamically

2011-06-27 Thread tobias
hi, well, to have a dynamic array you need functions like .Add, Remove and stuff. this means that you have to use a class that implements these functions and deals with objects. you may want to use the Object[]: DIM aLabels AS NEW Object[] DIM lblLabel AS NEW Label aLabels.Add(lblLabel) but b

Re: [Gambas-user] Component Loading

2011-06-28 Thread tobias
hi, > What do you want to do exactly? > nothing, i just wanted to know where these compiled classes are. if i use an executable. i couldn't imagine that it is really not unpacked temporarily, but accessed directly... anyway, thanks for the answer. ---

Re: [Gambas-user] Menu over a control

2011-06-29 Thread tobias
hi, > If I create TextLabels as you told me, I can get their tags, so I can > identify them, but cannot remove them. oh, of course, you can: LAST.Delete() > if I create them > as a TextLabel[], I can add and remove them, but cannot figure which > one of them has been clicked. How to make both of

Re: [Gambas-user] Menu over a control

2011-06-29 Thread tobias
hi, i just installed kubuntu 11.04 yesterday, i couldn't compile gambas3 with my old ubuntu... i hope, i can figure it out at home, if your questions isn't answered then :) -- All of the data generated in your IT infras

Re: [Gambas-user] Dinamic lines

2011-06-29 Thread tobias
hi, >> How to draw a line >> How to draw a text >> How to do it on a printer >> How to do it on a canvas >> How to make lines removable imho, one should be able to figure some of these things out using the doc. i never worked with printer, but answers to 1 and 2 are just where everyone expects t

Re: [Gambas-user] Try Catch fail when using mkdir....

2011-06-30 Thread tobias
hi, > Hi folks! > > Gambas 2.99 > Fedora 14 > >Using mkdir with "catch" and "finally" to create a recursive SUB to > build a directory structure. >The harness consists of FormMain with one big-friendly button on it, > pretty simple. Here is all of the code; > > ' Gambas class file >

[Gambas-user] Component requirements

2011-07-03 Thread tobias
hi, in a component, i need the gb.net component and so i added it to the list in requirements tab and compiled everything. if my component gets loaded, i get an error saying that i use an unknown symbol or something like that (it's some time ago and i just remembered that i wanted to ask for t

Re: [Gambas-user] Component requirements

2011-07-03 Thread tobias
hi, > > Please send your project and I will tell you. > which project? component or project that uses it? actually there is no "project". both are test cases. in the component, there is: PUBLIC SUB _init() DIM s AS NEW Socket END and in the project: PUBLIC SUB Button1_Click() Component.L

Re: [Gambas-user] Component requirements

2011-07-03 Thread tobias
I need the component project. o.k., the error was "Cannot load class 'Socket': unable to load class file". component is attached. test_comp-0.0.2.tar.gz Description: GNU Zip compressed data -- All of the data generat

Re: [Gambas-user] Component requirements

2011-07-03 Thread tobias
Benoît Minisini schrieb: I need the component project. o.k., the error was "Cannot load class 'Socket': unable to load class file". component is attached. OK, I see. Component.Load("test_comp") will not force the load of the gb.net component. At the moment, the components dependencies are co

Re: [Gambas-user] Component requirements

2011-07-03 Thread tobias
> Can't load or create? ... looks like file/directory permissions or file > mode issues to me. can't be. usually there is no such error. just when i do Component.Load() in the console before. and the modes of the gambas components aren't likely to change on my system ;)

Re: [Gambas-user] Component requirements

2011-07-05 Thread tobias
hi, > - Or adding 'Component.Load("gb.net")' in the component source code. this is not working, i still get "Unable to load class 'Socket'" what's wrong? btw, have you noticed my explanation in the previous mail about the ide crashing? i don't want to be impatient but these two problems get me m

Re: [Gambas-user] Component requirements

2011-07-05 Thread tobias
> > I think I see now: you are creating a Socket inside an _init method. But > _init > is called just after the class is loaded, and apparently before components. > > Just create it elsewhere. I will try to see if I can run _init later, but it > is not sure. > > Regards, > thanks, this sound

Re: [Gambas-user] Component requirements

2011-07-05 Thread tobias
well, it still not works... i create the socket within _call() now but i get the same message and the ide will crash again if i do something like minimizing and restoring it... test_comp-0.0.10.tar.gz Description: GNU Zip compressed data

[Gambas-user] Component loading

2011-07-05 Thread tobias
hi, i just noticed porting my component testing project to gambas3 that you removed the section from COMPONENT_load() which allows to have user components in ~/.local/lib/whatever ? what's the reason? i really miss that... regards, tobi -

[Gambas-user] ComboBox_Click Problem

2011-07-09 Thread tobias
hi, i encountered a problem - for me - in gambas3 regarding ComboBox_Click() event. i have a directory name in ComboBox.Text and the contents of this directory in ComboBox.List. i implemented _Click() to append the current item's text to the directory path: Public Sub ComboBox1_Click() Dim

[Gambas-user] gb.Case

2011-07-09 Thread tobias
hi, while the doc says that there is a constant gb.Case, the interpreter tells me that there is no symbol "Case" within gb. gb.Text works well instead. but either the doc or the interpreter should be corrected ;) regards, tobi ---

[Gambas-user] Creating Sound

2011-07-10 Thread tobias
hi, (it's not a gambas specific question this time but i think at least related and maybe i benefit from your experiences) i know how to play sound files using gb.sdl.sound but is there a way to create sound based on, let's say, sin() values? regards, tobi -

Re: [Gambas-user] Creating Sound

2011-07-10 Thread tobias
On 10.07.2011 23:26, Kevin Fishburne wrote: > On 07/10/2011 05:10 PM, tobias wrote: >> hi, >> >> (it's not a gambas specific question this time but i think at least >> related and maybe i benefit from your experiences) >> i know how to play sound files us

Re: [Gambas-user] Creating Sound

2011-07-10 Thread tobias
On 10.07.2011 23:26, Kevin Fishburne wrote: >> On 07/10/2011 05:10 PM, tobias wrote: >>> hi, >>> >>> (it's not a gambas specific question this time but i think at least >>> related and maybe i benefit from your experiences) >>> i know how t

[Gambas-user] Desktop.SendKeys

2011-07-11 Thread tobias
hi, i have an open terminal running a program that may run for long time. i want to use Desktop.SendKeys to send a CTRL+C to the terminal. (that's just an example. i know there are some very smarter ways of achieving that ;)) if i use Desktop.SendKeys("{[CONTROL_L]C}") nothing happens but if no

[Gambas-user] How to stop an Observer?

2011-07-11 Thread tobias
hi, i wonder how to stop an observer from raising events? my code demonstrative code looks like this: (gambas2) PRIVATE hObs AS Observer PUBLIC SUB ObserveSubject(hSubject AS TextBox) IF hObs THEN ReleaseSubject() ENDIF hObs = NEW Observer(hSubject) END PUBLIC SUB ReleaseSubject

Re: [Gambas-user] ComboBox_Click Problem

2011-07-11 Thread tobias
On 11.07.2011 21:37, Matti wrote: > Hi Tobias, > > for me, it looks like ComboBox.Text is made only to show something like > "Please > select something" or "All entries". As soon as you select an item, > ComboBox.Text > is replaced by that item. I tri

Re: [Gambas-user] How to stop an Observer?

2011-07-11 Thread tobias
On 11.07.2011 20:47, tobias wrote: > hi, > > i wonder how to stop an observer from raising events? my code > demonstrative code looks like this: > > (gambas2) > > PRIVATE hObs AS Observer > > PUBLIC SUB ObserveSubject(hSubject AS TextBox) > IF hObs THEN >

Re: [Gambas-user] How to stop an Observer?

2011-07-11 Thread tobias
On 11.07.2011 22:39, Benoît Minisini wrote: >> On 11.07.2011 20:47, tobias wrote: >>> hi, >>> >>> i wonder how to stop an observer from raising events? my code >>> demonstrative code looks like this: >>> >>> (gambas2) >>> >&

Re: [Gambas-user] How to stop an Observer?

2011-07-11 Thread tobias
of course, i could also use a flag instead, but i love it to research in the gambas universe :) -- All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of applica

Re: [Gambas-user] How to stop an Observer?

2011-07-11 Thread tobias
i also considered using Object.Lock() this works with the textbox but not with an observer...? -- All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of applicat

  1   2   3   4   5   6   7   8   9   10   >