[Gambas-user] How can I syncronize two listbox or two gridview

2010-06-21 Thread admhardsoft
Hi
I wanna show an gridview or listbox one table from a mysql db and in other 
gridview or listbox all record belong to the principal key from the first 
gridview or listbox.
I means to join two list or gridview dependable one from the other by the 
principal key.
Somebody can help me with that problema for  me.
Thanks
Tomas
Sent on the TELUS Mobility network with BlackBerry

-Original Message-
From: Jussi Lahtinen 
Date: Sun, 20 Jun 2010 19:54:45 
To: mailing list for gambas users
Reply-To: mailing list for gambas users 
Subject: Re: [Gambas-user] Bug with external libraries

To my surprise this bug seems to need specific earlier conditions.
I managed to isolate those conditions, see attachments.

Jussi


2010/6/19 Benoît Minisini :
>> Hi!
>> Here is the problem:
>>
>> Declaration in C:
>> void Lib_initr(void)
>> (I also tested void Lib_initr() with same result)
>>
>> In Gambas:
>> Public Extern Lib_initr() In "libMlpp"
>>
>> And this raises error:
>> Lib_initr()
>> Type mismatch: Wanted Void, got Integer instead
>>
>> Ubuntu 10.04 64bit, Gambas3 revision 3016
>>
>>
>> Jussi
>>
>
> Can you make a little project for me, with a library, that shows the error?
>
> Thanks in advance!
>
> Regards,
>
> --
> Benoît Minisini
>
> --
> ThinkGeek and WIRED's GeekDad team up for the Ultimate
> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
> lucky parental unit.  See the prize list and enter to win:
> http://p.sf.net/sfu/thinkgeek-promo
>___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>

--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] TableView.Edit Method

2010-06-21 Thread Wellington de Souza Pinto
Hi!

In TableView Edit method the object call the textbox or combobox control.
How use the events for controls.
Ex. In tableview.edit() call the textbox (The textbox events (GotFocus,
lostfocus, ...))
 In Tableview.edit(["a","b",...]) call the combobox control (The combobox
events (got, lost, ...))

Any idea???

Reguards,

PS.: My english is not very well.

---
|/  Wellington de Souza Pinto
C o o ]  wspi...@click21.com.br
 ^
-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-
___
Para fazer uma ligação DDD pra perto ou pra longe, faz um 21. A Embratel tem
tarifas muito baratas esperando por você. Aproveite!


--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Strange behaviour of LostFocus event

2010-06-21 Thread Leonardo Miliani
A friend of mine has written an application in which he has let the
permission at the users to insert a text in the combobox textarea. Then,
his code parses the text and, if there are errors, a message box is
showed.

The problem is that the LostFocus event is executed twice
In fact, Gambas tries to show another message box, but that is
impossible because only 1 modal form can appears on the screen at once.
So the program terminates and Gambas visualizes the error
"Message box already displayed".

This is the portion of code:
PUBLIC SUB CodiceVoceContabile_LostFocus()
.bla.bla.bla.
FOR EACH RecTab
  IF RecTab!NomeVoce = $_VoceConto THEN 
i_CoVoMov = RecTab!NumVoce   '--Codice di CONTO, corrispondente alla
Voce contabile primaria
i_UltCtogrup = i_CoVoMov + 999
  ENDIF 
  IF i_CoVoMov > 0 THEN 
IF RecTab!NumVoce <= i_UltCtogrup THEN 
  IF RecTab!NomeVoce = $_VoceSotCto
i_CoVoMov = RecTab!NumVoce
'-- Codice di SOTTOCONTO, corrispondente alla Voce contabile
secondaria
$_PartMovSiNo = RecTab!ContrPartSiNo 
BREAK 
  ENDIF 
ELSE 
  'LabFrm2RicPiaCo:
  Message.Error("Attenzione! ->  Record  'NON TROVATO'" & Chr(10) &
Chr(10) & "durante la lettura della Tabella ContabFam.db!piancont'" &
Chr(10) & Chr(10) & "in Form2.MovDigOk_Click.LabFrm2RicPiaCo" & Chr(10)
& Chr(10) & " il programma verrà chiuso")
  QUIT 
ENDIF 
  ENDIF 
NEXT  


-- 
Leonardo Miliani
www.leonardomiliani.com

Webmaster e co-fondatore di www.gambas-it.org
Il portale di riferimento per i programmatori Gambas italiani


--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user