Re: [Gambas-user] Gambas Magazine - Update

2014-08-25 Thread Daniel Quintero
Hi Randall?

As an idea, can I translate some of the articles to spanish?

Regards.

*_*
*Lic. Daniel Quintero Rojas*

*¡Saludos desde México!*



On Wed, Aug 20, 2014 at 3:20 PM, Randall Morgan rmorga...@gmail.com wrote:

 Hi Folks,

 First thank you to all who provided comments and feed back on the first
 issue of Gambas Magazine. Now that I am back in the city I am focused on
  the next issue of Gambas Magazine which will be released on October 1st.
 As usually, we are in need of articles of interest to Gambas users and
 developers.

 The next issue will focus on Game development with Gambas and will also
 include follows-ups on the multi-part articles in the last issue.

 I am in great need of contributors to author articles, proof read, and do
 technical reviews of articles before publishing, and provide artwork for
 covers and articles. If you or someone you know would like to contribute,
 please contact me.


 Sincerely,

 Randall - Editor, Gambas Magazine

 --
 Slashdot TV.
 Video for Nerds.  Stuff that matters.
 http://tv.slashdot.org/
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user

--
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] gbr3: unable to load component: gb.markdown

2014-07-24 Thread Daniel Quintero
Gambas3 from Daily PPA's works again!

:D

*_*
*Lic. Daniel Quintero Rojas*

*¡Saludos desde México!*



On Mon, Jul 21, 2014 at 5:11 PM, Daniel Quintero dquin...@gmail.com wrote:

 Hi all, I just got back from vacation and when I update my system today
 and want to launch Gambas, I found this error:

 gbr3: unable to load component: gb.markdown

 What can I do to correct it?

 Regards

 *_*
 *Lic. Daniel Quintero Rojas*

 *¡Saludos desde México!*


--
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] gbr3: unable to load component: gb.markdown

2014-07-22 Thread Daniel Quintero
Yes:

On Wed, Jul 16, 2014 at 8:38 PM, Sebastian Kulesz sebi...@gmail.com wrote:
It will be fixed in tomorrow's builds. Sorry about that, i have no idea why
this wasn't added months ago.


On Wed, Jul 16, 2014 at 6:00 PM, Nikola Rogozarski n.rogozar...@gmail.com
wrote:

 I tried to install gambas from daily PPA but it seems there is a problem.
 Gambas installed without problem. But when I wanted to start it, the error
 occurs gbr3: unable to load component: gb.markdown

 Does anyone have a solution for this ???

And:

On Tue, Jul 22, 2014 at 2:30 PM, Benoît Minisini 
gam...@users.sourceforge.net wrote:
Le 22/07/2014 21:13, Larry Moore a écrit :
 At 0850 on 22 Jul 2014, I received a gambas3 update through the Ubuntu
 updater. After the update, gambas3 will not launch. Using the terminal, I
 tried launching gambas and received this message: gbr3: unable to load
 component: gb.markdown. How do I fix this?

Apparently you are using the daily paa, whose packages were
incorrectly made. There were some posts about that in the mailing-list.

My system details are:

-- Daily PPA's
-- LinuxMint 17 (qiana)
-- GNOME: 3.8.4 (Ubuntu 2014-03-17) ** Mate **
-- Kernel: 3.13.0-24-generic (#47-Ubuntu SMP Fri May 2 23:31:42 UTC 2014)
-- GCC Version: 4.8 (i686-linux-gnu)
-- Xorg Version: 1.15.1 (16 April 2014  01:40:08PM)

The packages of daily ppa are still wrong, but I don't know who need to
correct this

:/

Regards

*_*
*Lic. Daniel Quintero Rojas*

*¡Saludos desde México!*



On Tue, Jul 22, 2014 at 1:09 PM, Benoît Minisini 
gam...@users.sourceforge.net wrote:

 Le 22/07/2014 00:11, Daniel Quintero a écrit :
  Hi all, I just got back from vacation and when I update my system today
 and
  want to launch Gambas, I found this error:
 
  gbr3: unable to load component: gb.markdown
 
  What can I do to correct it?
 
  Regards
 

 If you don't give any detail about your system, it's hard to help you.
 There was posts about that problem on the mailing-list last week, maybe
 this is the same problem as you?

 --
 Benoît Minisini


 --
 Want fast and easy access to all the code in your enterprise? Index and
 search up to 200,000 lines of code with a free copy of Black Duck
 Code Sight - the same software that powers the world's largest code
 search on Ohloh, the Black Duck Open Hub! Try it now.
 http://p.sf.net/sfu/bds
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user

--
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] extended Combobox

2014-05-26 Thread Daniel Quintero
I use this code (Obviously, without creating a custom combo):

' aIDs is an array of Integers, and you can assing that array to a Variant
variable,
' as is the case of the Tag property of the combobox.

Public Sub LoadCombo()
Dim aIDs As New Integer[]
Dim sQuery As New String

  cboSample.Clear

  ' Load Data
  hResult = $hConn.Exec(select ID, desc from MyTable)
  For Each hResult
cboSample.Add(hResult!desc)
aIDs.Add(hResult!ID)
  Next
  cboSample.Tag = aIDs

End

Public Sub cboSample_Change()
  If cboSample.Index  -1 Then
Message(ID associated with '  cboSample.Text  ':  
cboSample.Tag[cboSample.Index])
  Endif
End

Regards

*_*
*Lic. Daniel Quintero Rojas*

*¡Saludos desde México!*



On Sun, May 25, 2014 at 2:12 PM, Karl Reinl karl.re...@fen-net.de wrote:

 Salut,

 I need an extended Combobox,
 no sorry I would like to have an extended Combobox,
 where I can add elements like
 .Add(Item AS String[,key AS Variant]),
 does anybody made that yet, and want to share ?

 --
 Amicalement
 Charlie



 --
 Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
 Instantly run your Selenium tests across 300+ browser/OS combos.
 Get unparalleled scalability from the best Selenium testing platform
 available
 Simple to use. Nothing to install. Get started now for free.
 http://p.sf.net/sfu/SauceLabs
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user

--
The best possible search technologies are now affordable for all companies.
Download your FREE open source Enterprise Search Engine today!
Our experts will assist you in its installation for $59/mo, no commitment.
Test it for FREE on our Cloud platform anytime!
http://pubads.g.doubleclick.net/gampad/clk?id=145328191iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] extended Combobox

2014-05-26 Thread Daniel Quintero
Yes, I only cutpaste from that message  :D


*_*
*Lic. Daniel Quintero Rojas*

*¡Saludos desde México!*



On Mon, May 26, 2014 at 12:03 PM, Karl Reinl karl.re...@fen-net.de wrote:

 Am Montag, den 26.05.2014, 09:52 -0500 schrieb Daniel Quintero:
  I use this code (Obviously, without creating a custom combo):
 
  ' aIDs is an array of Integers, and you can assing that array to a
 Variant
  variable,
  ' as is the case of the Tag property of the combobox.
 
  Public Sub LoadCombo()
  Dim aIDs As New Integer[]
  Dim sQuery As New String
 
cboSample.Clear
 
' Load Data
hResult = $hConn.Exec(select ID, desc from MyTable)
For Each hResult
  cboSample.Add(hResult!desc)
  aIDs.Add(hResult!ID)
Next
cboSample.Tag = aIDs
 
  End
 
  Public Sub cboSample_Change()
If cboSample.Index  -1 Then
  Message(ID associated with '  cboSample.Text  ':  
  cboSample.Tag[cboSample.Index])
Endif
  End
 
  Regards
 
  *_*
  *Lic. Daniel Quintero Rojas*
 
  *¡Saludos desde México!*
 
 
 
  On Sun, May 25, 2014 at 2:12 PM, Karl Reinl karl.re...@fen-net.de
 wrote:
 
   Salut,
  
   I need an extended Combobox,
   no sorry I would like to have an extended Combobox,
   where I can add elements like
   .Add(Item AS String[,key AS Variant]),
   does anybody made that yet, and want to share ?
  
   --
   Amicalement
   Charlie
  

 Salut Daniel,

 thanks for that code, I knew it because in a similar case you gave it to
 the list

 --
 Amicalement
 Charlie



 --
 The best possible search technologies are now affordable for all companies.
 Download your FREE open source Enterprise Search Engine today!
 Our experts will assist you in its installation for $59/mo, no commitment.
 Test it for FREE on our Cloud platform anytime!

 http://pubads.g.doubleclick.net/gampad/clk?id=145328191iu=/4140/ostg.clktrk
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user

--
The best possible search technologies are now affordable for all companies.
Download your FREE open source Enterprise Search Engine today!
Our experts will assist you in its installation for $59/mo, no commitment.
Test it for FREE on our Cloud platform anytime!
http://pubads.g.doubleclick.net/gampad/clk?id=145328191iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] How to set name of control

2014-04-11 Thread Daniel Quintero
The object TextBox2 must already exist

Regards

*_*
*Lic. Daniel Quintero Rojas*

*¡Saludos desde México!*



On Fri, Apr 11, 2014 at 10:22 AM, abbat81 abbat...@mail.ru wrote:

 Please, help to understand it.

 Dim Mycol As Collection
 Mycol[2] = TextBox2
 =Null Object

 How to use it?
 I realy cant find any example of using a controls by names.
 Thanks




 --
 View this message in context:
 http://gambas.8142.n7.nabble.com/How-to-set-name-of-control-tp46134p46147.html
 Sent from the gambas-user mailing list archive at Nabble.com.


 --
 Put Bad Developers to Shame
 Dominate Development with Jenkins Continuous Integration
 Continuously Automate Build, Test  Deployment
 Start a new project now. Try Jenkins in the cloud.
 http://p.sf.net/sfu/13600_Cloudbees
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user

--
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test  Deployment 
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] How to set name of control

2014-04-11 Thread Daniel Quintero
TextBox1, TextBox2 and TextBox1 already exist in my form FMain (Obviously,
Button1 too):

Public Sub Button1_Click()
Dim col As New Collection
Dim i As Integer

  col[1] = TextBox1
  col[2] = TextBox2
  col[3] = TextBox3

  For i = 1 To 3
col[CStr(i)].Text = TextBox:   CStr(i)
  Next

End

*_*
*Lic. Daniel Quintero Rojas*

*¡Saludos desde México!*



On Fri, Apr 11, 2014 at 11:23 AM, abbat81 abbat...@mail.ru wrote:

 The Textbox2 exist allready (((



 --
 View this message in context:
 http://gambas.8142.n7.nabble.com/How-to-set-name-of-control-tp46134p46149.html
 Sent from the gambas-user mailing list archive at Nabble.com.


 --
 Put Bad Developers to Shame
 Dominate Development with Jenkins Continuous Integration
 Continuously Automate Build, Test  Deployment
 Start a new project now. Try Jenkins in the cloud.
 http://p.sf.net/sfu/13600_Cloudbees
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user

--
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test  Deployment 
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Annoying automatic comment creation...

2014-03-31 Thread Daniel Quintero
Good question and good answer.

Thanks for the tip Benoît

:)

*_*
*Lic. Daniel Quintero Rojas*

*¡Saludos desde México!*



On Mon, Mar 31, 2014 at 1:00 PM, Benoît Minisini 
gam...@users.sourceforge.net wrote:

 Le 31/03/2014 20:04, Stephen a écrit :
  When creating a new comment line, after pressing [ENTER] the editor
  assumes that the next line is also a comment and sarcasm helpfully
  /sarcasm puts in the single quote to make it so. Now I can see how
  some might like this, and thats fine, but could we have the option to
  turn this feature off? I've been caught too many times writing code into
  auto-generated comment lines and it is getting quite annoying.
 

 Me too. I can add an option for that. In the meantime, just press
 SHIFT+ENTER to insert a new line without automatic insertion.

 Regards,

 --
 Benoît Minisini


 --
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user

--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] SetFocus in Editor control

2014-03-07 Thread Daniel Quintero
I put the SetFocus event on Form_Show and now it works

:)

*_*
*Lic. Daniel Quintero Rojas*

*¡Saludos desde México!*



On Thu, Mar 6, 2014 at 11:12 AM, Daniel Quintero dquin...@gmail.com wrote:

 Hi

 I'm using this control to highlight the code entered into it, but when I
 use Editor1.SetFocus in the Form_Open event, nothing happens.

 Can you help me?

 Thanks

 *_*
 *Lic. Daniel Quintero Rojas*

 *¡Saludos desde México!*


--
Subversion Kills Productivity. Get off Subversion  Make the Move to Perforce.
With Perforce, you get hassle-free workflows. Merge that actually works. 
Faster operations. Version large binaries.  Built-in WAN optimization and the
freedom to use Git, Perforce or both. Make the move to Perforce.
http://pubads.g.doubleclick.net/gampad/clk?id=122218951iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Sample apps

2014-03-06 Thread Daniel Quintero
Yes, that is correct, but I only install Gambas and not the examples

I downloaded them from source, but the easiest way is like Jesus  said

:D

*_*
*Lic. Daniel Quintero Rojas*

*¡Saludos desde México!*



On Thu, Mar 6, 2014 at 2:38 AM, girardhe...@hotmail.com 
girardhe...@hotmail.com wrote:

 I guess jesus meant doing a full install which includes examples
 jajaja
 lol
 Le 06/03/2014 00:53, Daniel Quintero a écrit :
  Jajajaja, thats not usual for me.
 
  Thanks :)
 
  *_*
  *Lic. Daniel Quintero Rojas*
 
  *¡Saludos desde México!*
 
 
 
  On Wed, Mar 5, 2014 at 5:42 PM, Jesus ea7...@ea7dfh.com wrote:
 
  Freemobile_0620678823_03-03-2014
  El 06/03/14 00:16, Daniel Quintero escribió:
  I found them! I download the Gambas source code and copied them to the
  path
  /usr/share/gambas3/examples
  Or simply:
 
  apt-get install gambas3-examples
 
  ...as usual.
 
  Regards
 
 
  --
  Jesus Guardon
 
 
 
 --
  Subversion Kills Productivity. Get off Subversion  Make the Move to
  Perforce.
  With Perforce, you get hassle-free workflows. Merge that actually works.
  Faster operations. Version large binaries.  Built-in WAN optimization
 and
  the
  freedom to use Git, Perforce or both. Make the move to Perforce.
 
 
 http://pubads.g.doubleclick.net/gampad/clk?id=122218951iu=/4140/ostg.clktrk
  ___
  Gambas-user mailing list
  Gambas-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/gambas-user
 
 
 --
  Subversion Kills Productivity. Get off Subversion  Make the Move to
 Perforce.
  With Perforce, you get hassle-free workflows. Merge that actually works.
  Faster operations. Version large binaries.  Built-in WAN optimization
 and the
  freedom to use Git, Perforce or both. Make the move to Perforce.
 
 http://pubads.g.doubleclick.net/gampad/clk?id=122218951iu=/4140/ostg.clktrk
  ___
  Gambas-user mailing list
  Gambas-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/gambas-user



 --
 Subversion Kills Productivity. Get off Subversion  Make the Move to
 Perforce.
 With Perforce, you get hassle-free workflows. Merge that actually works.
 Faster operations. Version large binaries.  Built-in WAN optimization and
 the
 freedom to use Git, Perforce or both. Make the move to Perforce.

 http://pubads.g.doubleclick.net/gampad/clk?id=122218951iu=/4140/ostg.clktrk
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user

--
Subversion Kills Productivity. Get off Subversion  Make the Move to Perforce.
With Perforce, you get hassle-free workflows. Merge that actually works. 
Faster operations. Version large binaries.  Built-in WAN optimization and the
freedom to use Git, Perforce or both. Make the move to Perforce.
http://pubads.g.doubleclick.net/gampad/clk?id=122218951iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] SetFocus in Editor control

2014-03-06 Thread Daniel Quintero
Hi

I'm using this control to highlight the code entered into it, but when I
use Editor1.SetFocus in the Form_Open event, nothing happens.

Can you help me?

Thanks

*_*
*Lic. Daniel Quintero Rojas*

*¡Saludos desde México!*
--
Subversion Kills Productivity. Get off Subversion  Make the Move to Perforce.
With Perforce, you get hassle-free workflows. Merge that actually works. 
Faster operations. Version large binaries.  Built-in WAN optimization and the
freedom to use Git, Perforce or both. Make the move to Perforce.
http://pubads.g.doubleclick.net/gampad/clk?id=122218951iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Sample apps

2014-03-05 Thread Daniel Quintero
Hi

I installed Gambas in Mint as follows:

sudo add-apt-repository ppa:gambas-team/gambas-daily
sudo apt-get update
sudo apt-get install gambas3

But I does not have te sample apps

How can I get a copy of them?

Regards.

*_*
*Lic. Daniel Quintero Rojas*

*¡Saludos desde México!*
--
Subversion Kills Productivity. Get off Subversion  Make the Move to Perforce.
With Perforce, you get hassle-free workflows. Merge that actually works. 
Faster operations. Version large binaries.  Built-in WAN optimization and the
freedom to use Git, Perforce or both. Make the move to Perforce.
http://pubads.g.doubleclick.net/gampad/clk?id=122218951iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Sample apps

2014-03-05 Thread Daniel Quintero
I found them! I download the Gambas source code and copied them to the path
/usr/share/gambas3/examples

:)

*_*
*Lic. Daniel Quintero Rojas*

*¡Saludos desde México!*



On Wed, Mar 5, 2014 at 4:48 PM, Daniel Quintero dquin...@gmail.com wrote:

 Hi

 I installed Gambas in Mint as follows:

 sudo add-apt-repository ppa:gambas-team/gambas-daily
 sudo apt-get update
 sudo apt-get install gambas3

 But I does not have te sample apps

 How can I get a copy of them?

 Regards.

 *_*
 *Lic. Daniel Quintero Rojas*

 *¡Saludos desde México!*


--
Subversion Kills Productivity. Get off Subversion  Make the Move to Perforce.
With Perforce, you get hassle-free workflows. Merge that actually works. 
Faster operations. Version large binaries.  Built-in WAN optimization and the
freedom to use Git, Perforce or both. Make the move to Perforce.
http://pubads.g.doubleclick.net/gampad/clk?id=122218951iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Sample apps

2014-03-05 Thread Daniel Quintero
Jajajaja, thats not usual for me.

Thanks :)

*_*
*Lic. Daniel Quintero Rojas*

*¡Saludos desde México!*



On Wed, Mar 5, 2014 at 5:42 PM, Jesus ea7...@ea7dfh.com wrote:

 El 06/03/14 00:16, Daniel Quintero escribió:
  I found them! I download the Gambas source code and copied them to the
 path
  /usr/share/gambas3/examples

 Or simply:

 apt-get install gambas3-examples

 ...as usual.

 Regards


 --
 Jesus Guardon


 --
 Subversion Kills Productivity. Get off Subversion  Make the Move to
 Perforce.
 With Perforce, you get hassle-free workflows. Merge that actually works.
 Faster operations. Version large binaries.  Built-in WAN optimization and
 the
 freedom to use Git, Perforce or both. Make the move to Perforce.

 http://pubads.g.doubleclick.net/gampad/clk?id=122218951iu=/4140/ostg.clktrk
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user

--
Subversion Kills Productivity. Get off Subversion  Make the Move to Perforce.
With Perforce, you get hassle-free workflows. Merge that actually works. 
Faster operations. Version large binaries.  Built-in WAN optimization and the
freedom to use Git, Perforce or both. Make the move to Perforce.
http://pubads.g.doubleclick.net/gampad/clk?id=122218951iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Building a custom MyComboBox

2014-03-03 Thread Daniel Quintero
I use this code (Obviously, without creating a custom combo):

Public Sub LoadCombo()
Dim aIDs As New Integer[]
Dim sQuery As New String

  cboSample.Clear

  ' Load Data
  hResult = $hConn.Exec(select ID, desc from MyTable)
  For Each hResult
cboSample.Add(hResult!desc)
aIDs.Add(hResult!ID)
  Next
  cboSample.Tag = aIDs

End

Public Sub cboSample_Change()
  If cboSample.Index  -1 Then
Message(ID associated with '  cboSample.Text  ':  
cboSample.Tag[cboSample.Index])
  Endif
End

Regards

*_*
*Lic. Daniel Quintero Rojas*

*¡Saludos desde México!*



On Mon, Mar 3, 2014 at 1:55 PM, Tobias Boege tabo...@gmail.com wrote:

 On Mon, 03 Mar 2014, Matti wrote:
  I'm playing around with a ComboBox that should have some special
 features.
  Looked into the sources and found out how to create and inherit it.
  Subs, Functions and Events  work.
 
  But one thing is a complete riddle to me:
  In the wiki, it says: For example, you can create a custom MyListBox
 class that inherits ListBox 
 http://gambasdoc.org/help/comp/gb.qt/listbox?view but allows to
 associate a tag with each list item.
  That's exactly what I'd need for MyComboBox: each list item with a tag
 (ID from a database).
 
  Could someone give me a hint how to do that?
  Thanks, Matti
 

 You could have a

 Private $aTags As New Variant[]

 in your class which associates a Variant with an item via the item's index.
 You need to maintain that array, though. Watch out for the Add(), Clear()
 and Remove() methods and the List property! I'm not familiar with the
 sources, so I don't know if there is a smarter way (and I'm assuming that
 you write the extended ComboBox in Gambas).

 Regards,
 Tobi

 --
 There's an old saying: Don't change anything... ever! -- Mr. Monk


 --
 Subversion Kills Productivity. Get off Subversion  Make the Move to
 Perforce.
 With Perforce, you get hassle-free workflows. Merge that actually works.
 Faster operations. Version large binaries.  Built-in WAN optimization and
 the
 freedom to use Git, Perforce or both. Make the move to Perforce.

 http://pubads.g.doubleclick.net/gampad/clk?id=122218951iu=/4140/ostg.clktrk
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user

--
Subversion Kills Productivity. Get off Subversion  Make the Move to Perforce.
With Perforce, you get hassle-free workflows. Merge that actually works. 
Faster operations. Version large binaries.  Built-in WAN optimization and the
freedom to use Git, Perforce or both. Make the move to Perforce.
http://pubads.g.doubleclick.net/gampad/clk?id=122218951iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Building a custom MyComboBox

2014-03-03 Thread Daniel Quintero
aIDs is an array of Integers (You can declare an array of Strings if is
your case, or an array of Variants), and you can assing that array to a
Variant variable, as is the case of the Tag property of the combobox.

*_*
*Lic. Daniel Quintero Rojas*

*¡Saludos desde México!*



On Mon, Mar 3, 2014 at 2:29 PM, Matti matti.e...@vodafone.de wrote:

 Thanks, Daniel.
 But I don't understand how you can assign the aIDs Integer[] to the
 ComboBox.Tag that is a variant?
 Anyway, I'd prefer a custom combo, since I need it often in a form and
 don't want to write everything again and again.

 Am 03.03.2014 21:04, schrieb Daniel Quintero:
  I use this code (Obviously, without creating a custom combo):
 
  Public Sub LoadCombo()
  Dim aIDs As New Integer[]
  Dim sQuery As New String
 
 cboSample.Clear
 
 ' Load Data
 hResult = $hConn.Exec(select ID, desc from MyTable)
  http://gambasdoc.org/help/comp/gb.qt4/combobox?v3  For Each hResult
   cboSample.Add(hResult!desc)
   aIDs.Add(hResult!ID)
 Next
 cboSample.Tag = aIDs
 
  End
 
  Public Sub cboSample_Change()
 If cboSample.Index  -1 Then
   Message(ID associated with '  cboSample.Text  ':  
  cboSample.Tag[cboSample.Index])
 Endif
  End
 
  Regards
 
  *_*
  *Lic. Daniel Quintero Rojas*
 
  *¡Saludos desde México!*
 
 
 
  On Mon, Mar 3, 2014 at 1:55 PM, Tobias Boege tabo...@gmail.com wrote:
 
  On Mon, 03 Mar 2014, Matti wrote:
  I'm playing around with a ComboBox that should have some special
  features.
  Looked into the sources and found out how to create and inherit it.
  Subs, Functions and Events  work.
 
  But one thing is a complete riddle to me:
  In the wiki, it says: For example, you can create a custom MyListBox
  class that inherits ListBox 
  http://gambasdoc.org/help/comp/gb.qt/listbox?view but allows to
  associate a tag with each list item.
  That's exactly what I'd need for MyComboBox: each list item with a tag
  (ID from a database).
  Could someone give me a hint how to do that?
  Thanks, Matti
 
  You could have a
 
  Private $aTags As New Variant[]
 
  in your class which associates a Variant with an item via the item's
 index.
  You need to maintain that array, though. Watch out for the Add(),
 Clear()
  and Remove() methods and the List property! I'm not familiar with the
  sources, so I don't know if there is a smarter way (and I'm assuming
 that
  you write the extended ComboBox in Gambas).
 
  Regards,
  Tobi
 
  --
  There's an old saying: Don't change anything... ever! -- Mr. Monk
 
 
 
 --
  Subversion Kills Productivity. Get off Subversion  Make the Move to
  Perforce.
  With Perforce, you get hassle-free workflows. Merge that actually works.
  Faster operations. Version large binaries.  Built-in WAN optimization
 and
  the
  freedom to use Git, Perforce or both. Make the move to Perforce.
 
 
 http://pubads.g.doubleclick.net/gampad/clk?id=122218951iu=/4140/ostg.clktrk
  ___
  Gambas-user mailing list
  Gambas-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/gambas-user
 
 
 --
  Subversion Kills Productivity. Get off Subversion  Make the Move to
 Perforce.
  With Perforce, you get hassle-free workflows. Merge that actually works.
  Faster operations. Version large binaries.  Built-in WAN optimization
 and the
  freedom to use Git, Perforce or both. Make the move to Perforce.
 
 http://pubads.g.doubleclick.net/gampad/clk?id=122218951iu=/4140/ostg.clktrk
  ___
  Gambas-user mailing list
  Gambas-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/gambas-user
 



 --
 Subversion Kills Productivity. Get off Subversion  Make the Move to
 Perforce.
 With Perforce, you get hassle-free workflows. Merge that actually works.
 Faster operations. Version large binaries.  Built-in WAN optimization and
 the
 freedom to use Git, Perforce or both. Make the move to Perforce.

 http://pubads.g.doubleclick.net/gampad/clk?id=122218951iu=/4140/ostg.clktrk
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user

--
Subversion Kills Productivity. Get off Subversion  Make the Move to Perforce.
With Perforce, you get hassle-free workflows. Merge that actually works. 
Faster operations. Version large binaries.  Built-in WAN optimization and the
freedom to use Git, Perforce or both. Make the move to Perforce.
http://pubads.g.doubleclick.net/gampad/clk?id=122218951iu=/4140/ostg.clktrk

Re: [Gambas-user] Populate grid with generic query

2014-02-20 Thread Daniel Quintero
Hi Fabien, thanks for answering   :D

I understood almost all code, except these two parts:

Public Sub ResultChange()

  Dim hField As ResultField
*   hResult = db.Find(tt)*

*tt* is my query?

And this:

Public Sub GridView1_Data(Row As Integer, Column As Integer)
  'for fun

  If Column = 0 Then *Last*.Data.Font.Bold = True 'The first column is bold
  If row Mod 2 = 1 Then *Last*.Data.Background = Color.LightGray  'one
line on two is gray
  '**

  hResult.MoveTo(Row)

  *Last*.Data.Text = hResult[GridView1.Columns[
Column].Text]

End

*Last* is a cell?

Thanks, as always, you are a person willing to help :)
*_*
*Lic. Daniel Quintero Rojas*

*¡Saludos desde México!*



On Thu, Feb 20, 2014 at 2:45 PM, Fabien Bodard gambas...@gmail.com wrote:

 You must to store the query result as private on the form


 then

 ' Gambas class file

 Private hResult As Result

 Public Sub _new()

   Connections[Connection1].Open
   ResultChange

 End

 Public Sub ResultChange()

   Dim hField As ResultField
   hResult = db.Find(tt)

   For Each hField In hResult.Fields
 Inc GridView1.Columns.Count
 GridView1.Columns[GridView1.Columns.Max].Text = hField.Name
   Next

   GridView1.Rows.Count = hResult.Count
   GridView1.Refresh

 End

 Public Sub GridView1_Data(Row As Integer, Column As Integer)
   'for fun

   If Column = 0 Then Last.Data.Font.Bold = True 'The first column is bold
   If row Mod 2 = 1 Then Last.Data.Background = Color.LightGray  'one
 line on two is gray
   '**

   hResult.MoveTo(Row)

   Last.Data.Text = hResult[GridView1.Columns[Column].Text]

 End

 Public Sub ComboBox1_Click()

   'do your stuf on query
   ResultChange
 End

 2014-02-20 21:11 GMT+01:00 Daniel Quintero dquin...@gmail.com:
  Hi all
 
  I've a beginer question:
 
  I have a simple query:
 
  select [list of fields]
  from [table]
  where [conditions]
 
  How can I populate a grid?
 
  My problem is that [list of fields], [table] and [conditions] can change
  depending on the values of various ComboBoxes
 
  Thanks in advance
 
  :)
 
  *_*
  *Lic. Daniel Quintero Rojas*
 
  *¡Saludos desde México!*
 
 --
  Managing the Performance of Cloud-Based Applications
  Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
  Read the Whitepaper.
 
 http://pubads.g.doubleclick.net/gampad/clk?id=121054471iu=/4140/ostg.clktrk
  ___
  Gambas-user mailing list
  Gambas-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/gambas-user



 --
 Fabien Bodard


 --
 Managing the Performance of Cloud-Based Applications
 Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
 Read the Whitepaper.

 http://pubads.g.doubleclick.net/gampad/clk?id=121054471iu=/4140/ostg.clktrk
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user

--
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121054471iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Drag drop from Nautilus

2014-01-04 Thread Daniel Quintero
Oh   :D

Thanks a lot
_
Lic. Daniel Quintero Rojas

¡Saludos desde México!



On Sat, Jan 4, 2014 at 2:54 PM, Fabien Bodard gambas...@gmail.com wrote:
 This is the demo

 2014/1/4 Fabien Bodard gambas...@gmail.com:
 Yes I will send you an example

 Le 3 janv. 2014 18:56, Daniel Quintero dquin...@gmail.com a écrit :

 Hi all

 I want to drag a file from Nautilus (I'm using Ubuntu) and drop it
 into an IconView, but I don't know how to do it.

 Then, I want to load the icon associated with the file extension, it's
 possible?

 Thank for any help

 Regards

 _
 Lic. Daniel Quintero Rojas

 ¡Saludos desde México!


 --
 Rapidly troubleshoot problems before they affect your business. Most IT
 organizations don't have a clear picture of how application performance
 affects their revenue. With AppDynamics, you get 100% visibility into your
 Java,.NET,  PHP application. Start your 15-day FREE TRIAL of AppDynamics
 Pro!

 http://pubads.g.doubleclick.net/gampad/clk?id=84349831iu=/4140/ostg.clktrk
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user



 --
 Fabien Bodard

 --
 Rapidly troubleshoot problems before they affect your business. Most IT
 organizations don't have a clear picture of how application performance
 affects their revenue. With AppDynamics, you get 100% visibility into your
 Java,.NET,  PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
 http://pubads.g.doubleclick.net/gampad/clk?id=84349831iu=/4140/ostg.clktrk
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user


--
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET,  PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Drag drop from Nautilus

2014-01-03 Thread Daniel Quintero
Hi all

I want to drag a file from Nautilus (I'm using Ubuntu) and drop it
into an IconView, but I don't know how to do it.

Then, I want to load the icon associated with the file extension, it's possible?

Thank for any help

Regards

_
Lic. Daniel Quintero Rojas

¡Saludos desde México!

--
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET,  PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Drag drop question

2013-12-13 Thread Daniel Quintero
I have a program to manage my projects, and I want to add the capabilities
to add some files drag from the file manager and added to the database.

2 questios:

* Dou you have an example like this?
* Is possible to obtain the icon associated with the file tha are dropping?
For example, if the file is PDF, show the PDF icon in the Documents
atached section of my program, or an OppenOffice file, or an TXT file,
etc.

Thanks a lot!


*_*
*Lic. Daniel Quintero Rojas*

*¡Saludos desde México!*
--
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET,  PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Regular Expressions :: Error with gb.pcre component

2012-04-25 Thread Daniel Quintero
   Mmm, I updated my Gambas 3.1 last week, I don't know exactly what
revision is, but is recent.

   Ok, I will fix my code.

   Thanks.

*_*
*Lic. Daniel Quintero Rojas*
http://www.dquinter.com.mx
http://futbol.dquinter.com.mx
http://twitter.com/#!/dquinteror

*¡Saludos desde México!**

*



2012/4/25 Benoît Minisini gam...@users.sourceforge.net

 Le 25/04/2012 18:58, Daniel Quintero a écrit :
  Hello, I have an error in this line of code when I use the \s
 constant
  in the pattern:
 
  re = New Regexp(sText, span\s([^]*))
 
  If I use span([^]*) (Without the \s) I have no error.
 
  The error occurs when I press the F5 function key to execute the
 program.
 
  This is the error text:
 
This application has raised an unexpected
  error and must abort.
 
  [11] Unknown symbol 'Editor' in class 'FForm'.
  Project.CompileError.2072
 
 
  And this is the complete code:
 
 
  Public Sub Button1_Click()
 Dim re As Regexp
 Dim sText As String = TextArea1.Text
 Dim matches As New String[]
 Dim i As Integer
 
 ' Error with de \s constant in the pattern
 re = New Regexp(sText, span\s([^]*))
 Do While re.offset= 0 And sText  
   matches.push(re.text)
   If Len(sText)  Len(re.text) Then
 sText = Mid(sText, re.offset + Len(re.text) + 1)
   Else
 sText = 
   End If
   If sText   Then re.exec(sText)
 Loop
 
 For i = 0 To matches.Max
   Print matches[i]
 Next
 
  End
 
   I have attached the project to more clarity.
 
  Thanks.
 
  *_*
  *Lic. Daniel Quintero Rojas*
  http://www.dquinter.com.mx
  http://futbol.dquinter.com.mx
  http://twitter.com/#!/dquinteror
 
  *¡Saludos desde México!**
 
  *
 

 This is a bug in the compiler and in your code.

 Do you use the last revision? If not, just fix your regular expression
 by quoting the '\' with another '\' (because '\' is both the quoting
 character in Gambas string and in regular expressions!)

 Regards,

 --
 Benoît Minisini


 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond. Discussions
 will include endpoint security, mobile security and the latest in malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Run comand on a remote Unix server

2012-03-29 Thread Daniel Quintero
Hi all.

   Can I do that?

   Actually I connect to a Unix server using Telnet, i have a user and a
password.

   I want to automatize some proceses in Gambas, but for do that, I need to
run commands from my Gambas project to remote Unix.

   Sorry for my engish.

   Thanks.

*_*
*Lic. Daniel Quintero Rojas*
http://www.dquinter.com.mx
http://futbol.dquinter.com.mx
http://twitter.com/#!/dquinteror

*¡Saludos desde México!**

*
--
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user