[Gambas-user] Displaying a pdf file to the user

2016-10-05 Thread Jose Monteiro
I know how to call an external viewer. Is it simple to show a one page pdf file 
inside a Gambas3 control?
RegardsJosé Monteiro
--
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] ProgressBar code example

2016-09-26 Thread Jose Monteiro
Thank you, Charlie.I am working with your snippet so the progressbar goes 
smooth. Also I will register an account on www.gambas.one forum too.José 
Monteiro 

On Sunday, September 25, 2016 2:23 PM, Charlie  wrote:
 

 Have a look at the attached and see if that helps, if not check us out at 
Gambas.one   
Take2.tar   



--
View this message in context: 
http://gambas.8142.n7.nabble.com/ProgressBar-code-example-tp57393p57405.html
Sent from the gambas-user mailing list archive at Nabble.com.
--
___
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


[Gambas-user] ProgressBar code example

2016-09-22 Thread Jose Monteiro
Dear fellows:Could someone provide a code snippet for  the situation below? All 
the events happen on the same Sub.
* Copying a template text file to another directory for edition  
--->ProgressBar starts* More than 50 lines of code, editing the template ---> 
ProgressBar grows* The template is moved from the edition directory to its 
final location.* The fineshed file is renamed.* A SQL transaction if performed 
to registry the event. --->ProgressBar completed
* LibreOffice is called to open the file
Thanks in advanceJosé Monteiro
--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Select and then unselect an item from a CollumnView

2016-05-18 Thread Jose Monteiro
Dear Fellows: In order to find an item inside a very populated CollumView, the 
user types an integer on a ValueBox and the search if made by:
cvNFMercantil.MoveTo(vbPedidoNFMercantil.Text)
cvNFMercantil[vbPedidoNFMercantil.Text].Selected = True
First problem: the item is selected, but the control does not "roll" to display 
it.Second problem: How can I unselect that item?
Thanks in advanceJosé Monteiro
--
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Gambas3 on Rasperry Pi 3 with Ubuntu Mate 16.04

2016-05-05 Thread Jose Monteiro
Hi guys, I am very interested on this matter too.So far, I know that is 
possible to install RaspBian (Debian for Raspberry) and then Gambas 3.8.2 : 
Gambas Documentation - /install/raspbian

  
|  
|   
|   
|   ||

   |

  |
|  
|   |  
Gambas Documentation - /install/raspbian
   |   |

  |

  |

 Can someone tell us if the installation goes smooth and if Gambas can work 
well with RaspBerry's IO?RegardsJosé Monteiro
 

On Thursday, May 5, 2016 5:13 AM, Wolfgang <1...@dl7nb.de> wrote:
 

 Hi all!

I tried to get Gambas3 running on a Raspberry Pi 3. I tried images of 
*Ubuntu MATE* (15.10 and 16.04) during the last three days!.

On the 15.10 I get a very old (outdated) Gambas3.5.4-2 from the 
repository running, which does not support newer code.

On both Versions (Ubuntu MATE 15.10 and 16.04) all efforts to get 
Gambas3 running from either *ppa:gambas-team/gambas3 *or**

*ppa:gambas-team/gambas-daily *failed to run:

Error message:

*gb.gui: warning: 'gb.qt4' component not found, using 'gb.qt5'**instead*

*libEGL warning: DRI2: failed to authenticate*

*Segmentation fault (core dumped)*


>From the list I have learned that*Ubuntu Mate*  ppas have problems.


How can I solve this?

a) on Ubuntu Mate 16.04

or

b) another Linux-image for the/*Raspberry Pi3*/
  that can run Gambas3 with the up-to-date version?


Thank you for reading this!

Greetings

Wolfgang


-- 

--
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


  
--
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] How to replace chr$(13) from a text file

2016-04-12 Thread Jose Monteiro
Thank you, Rolf.
 

On Tuesday, April 12, 2016 5:51 AM, Rolf-Werner Eilert 
 wrote:
 

 The New Line in Linux is chr$(10), not chr$(13).

So here the Replace will not find anything:

Am 11.04.2016 17:18, schrieb José Monteiro:
> By now I tried to use:
>
> Mglobal.info = Replace$(TextArea1.Text, Chr$(13), "|")
>
> Unfortunately, the global variable "info" still has new lines and a parser
> refuses to accept it.

When you use Chr$(10) instead, it will run as expected. The "\n" in 
Linux means Chr$(10), just like gb.NewLine.

If you had a Windows text file, it would be Chr$(10) Chr$(13) instead 
and you would have to delete both. But in a pure Windows environment, a 
"\n" would mean this automatically.

Regards
Rolf


--
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

  
--
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Lenght of a string

2016-04-06 Thread Jose Monteiro
Thank you again.This one line solution is much more elegant.
 

On Wednesday, April 6, 2016 11:33 AM, ML  wrote:
 

 José,

A side note, no need also to use a FOR-NEXT to fill X spaces. You can do
it in a single step:

  'for i = 1 to (115 - len(name))
  '  name = name & Space$(1)
  'next
  name = String.Left$(name & Space$(115), 115)

If you need the spaces at the left (for example to right-align numbers),
you do the opposite:

  numberString = String.Right$(Space$(places) & Str$(number), places) 
'The number will be right-aligned to "places" spaces and returned in
numberString.

As Oliver pointed, you should use the UTF-8 versions of the calls;
otherwise you will have less than the expected characters in the
resulting string.

Regards,
zxMarce.

On 2016-04-06 11:00, Oliver Etchebarne Bejarano wrote:
> You are writing utf-8 characteres, so the 'é' and the 'ô' are two bytes 
> long ("José Antônio" is 12 chars but 14 bytes long).
>
> I think you should either remove the tildes, or use UTF-8 string 
> functions (like String.len() instead of len()) for the calculations, and 
> then change the encoding to something like latin-1. And hope that your 
> system can understand the new encoding well...
>
>
> El 06/04/16 a las 07:48, José Monteiro escribió:
>> len("José Antônio") = 14
>> I need to fill a text file and upload it to a system in order to make an
>> invoice.
>> The field "name" must have lenght = 115. If shorter than that you must
>> complement it with spaces.
>> So:
>>
>>  for i = 1 to (115 - len(name))
>>    name = name & Space$(1)
>>  next
>>
>> The result is --> "José Antônio" + 101 spaces
>>
>> But, in the text file, "José Antônio" + 101 spaces is considered as having
>> lenght = 113, not 115.
>> The text file, then, is rejected by the system, because the following fields
>> are not being correctly interpreted.
>> Any sugestions?
>> Thanks in advance
>>
>>
>>
>> --
>> View this message in context: 
>> http://gambas.8142.n7.nabble.com/Lenght-of-a-string-tp55855.html
>> Sent from the gambas-user mailing list archive at Nabble.com.
>>
>> --
>> ___
>> 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


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


[Gambas-user] Feeding a DataView using data from another DataView

2013-11-12 Thread Jose Monteiro
Please guys, some help here.
I'm at the middle of a program for controlling a process for a chemical company.

1 - There is a DataSource linked to a table and containing a Dataview. The 
DataView will show hundreds of rows.

2 - There is another DataSource, which will use a sql statement, containing 
another DataView. This one will show a few rows, based on the sql statement.

The situation: When the user clicks on a certain row of the first DataView, I 
need to grab the value of the field Contract_Number so I can create the sql 
statement for the second DataSource.

The question: How can I grab the field value? There is no click event and the 
mouse down event, even with track enabled on DataView control, does not work.

Regards
Jose Monteiro
--
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most 
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] DataView: how to know data of a certain cell?

2013-11-11 Thread Jose Monteiro
Using Gambas 3.4.2, I've put two DataView's on the same window, first one 
connected on a table.
How can I grab the data of a certain cell, on a user selected roll?  I want to 
use this data to create a sql string and populate the second DataView.

Regards
José Monteiro
--
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most 
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Gambas in a tablet. Is it possible?

2013-10-31 Thread Jose Monteiro
I have finalized a software for a microbiological lab using Gambas 3. Right 
now, I am starting a new one for a chemical lab and had an idea: a main 
software on a desktop and clients on tablets, one for each technician, so they 
can input the results by the wireless network.

Is it possible to install Gambas over Android?
If not, is it possible to install a Linux distro on a tablet and have the touch 
functionality working well? Someone here already did it?
--
Android is increasing in popularity, but the open development platform that
developers love is also attractive to malware creators. Download this white
paper to learn more about secure code signing practices that can help keep
Android apps secure.
http://pubads.g.doubleclick.net/gampad/clk?id=65839951iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Gambas in a tablet. Is it possible?

2013-10-31 Thread Jose Monteiro
Thank you Rob, for your quick reply.

A Virtual Machine as one of the possible solutions, you said? Interesting, but 
I guess free RAM would be a bottle neck. I could test this, for sure.

If a full Ubuntu ARM installation could preserve the touch screen functionality 
AND the virtual keyboard, this software is completely possible.

Maybe I need to think a little harder about it.





On Thursday, October 31, 2013 9:31 AM, Rob Kudla 
sourceforge-raind...@kudla.org wrote:
 
On 2013-10-31 04:43, Jose Monteiro wrote:

 Is it possible to install Gambas over Android?

If you install an Ubuntu chroot or virtual machine, sure, just apt-get it.
None of the toolkits are optimized for touch but I assume Ubuntu has done
something to make Gtk touch-friendly for their stuff, since tablets are one
of their target platforms. So maybe it'd work with some judicious app design.

But there's no native Android Gambas interpreter yet, and without X or even
glibc, I'm not sure there ever will be. It would be almost as big a job as
a Windows port, which has been tried numerous times without getting further
than a proof of concept.

You can replace Android on many devices with a full Ubuntu ARM
installation, but you'll usually do so at the expense of some hardware
functionality, such as accelerated graphics or Bluetooth.

Rob

--
Android is increasing in popularity, but the open development platform that
developers love is also attractive to malware creators. Download this white
paper to learn more about secure code signing practices that can help keep
Android apps secure.
http://pubads.g.doubleclick.net/gampad/clk?id=65839951iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user
--
Android is increasing in popularity, but the open development platform that
developers love is also attractive to malware creators. Download this white
paper to learn more about secure code signing practices that can help keep
Android apps secure.
http://pubads.g.doubleclick.net/gampad/clk?id=65839951iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Shell command not working

2013-03-07 Thread Jose Monteiro
text = cd ~/.relat_bact  rm -rf Modelo*.odt  zip -r   MA  
Mid$(ListBox1.Text, 1, 9)  .odt  .
  Shell text Wait

1 - navigating to ~/.relat_bact directory and deleting the odt file is working 
fine.

2 - generating the zipped odt file (MA.odt) using the files and 
directories inside ~/.relat_bact is not working. The error message is: zip I/O 
error: No such file or directory
zip error: Could not create output file (MA04/12.odt)

3 - If I type these commands directly on a terminal it works fine.

My system information: 
[System]
OperatingSystem=Linux
Kernel=3.5.0-25-generic
Architecture=i686
Memory=1025808 kB
DistributionVendor=Ubuntu
DistributionRelease=Ubuntu 12.10
Desktop=Gnome

[Gambas 3]
Version=3.3.3
Path=/usr/local/bin/gbx3

[Libraries]
Qt4=libQtCore.so.4.8.3
GTK+=libgtk-x11-2.0.so.0.2400.13

Thanks in advance
--
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and remains a good choice in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user