Re: [Gambas-user] help with ListView code?

2017-07-27 Thread mikeB

Greetings all,
I've got a Listview (set as Column view) with 2 columns that I'm using

for testing so I might understand how all this works so can add it to a 
project.


testCode..
With listview1
.Clear
.Resizable = True
.Columns.Count = 2
.Columns[0].Text = "Site Name:"
.Columns[1].Text = "Site URL:"
End With
..
I can add values to the 1st column:
code..
listview1.add("1", "First var entry")
listview1.add("2", "Second var entry to test the resize ability")
listview1.add("3", "Third var entry")
...
Have spent a lot of research time trying to figure out how to add
values to the 2nd column (Site URL:) - got me stumped.

Anyone got an example line of code to help me out?

I can't seem to find the answer in the help docs.

Would greatly appreciate any/ all help;-)
mikeB


--
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] Trouble with CSVFile Component

2017-07-27 Thread Mark Walters
Nope.

Told ya I was a newb.  20+ years ago I used to do a lot of work in VB, and
especially VBA.  It's been a while, and my programming muscles have
atrophied a bit.

And while Gambas feels very familiar, it's also quite different, and I'm
still acclimating to it.

Thanks for your help :-)


On Thu, Jul 27, 2017 at 6:43 PM, Tony Morehen 
wrote:

> Did you add gb.utils component to your project?
>
> Project->Properties->Components & check gb.utils
>
>
>
> On 2017-07-27 07:10 PM, markwalt wrote:
>
>> Hi guys,
>>
>> I'm trying to write a very simple program that pulls in one CSV File, and
>> spits out another, based on what's inside the file.
>>
>> I see from the Wiki that there's a function for that, in the db.utils
>> component.  However, using the very sparse example provided, I'm getting
>> errors.
>>
>> I'm using 3.8.4, which is the "current" version in my distro (Xubuntu
>> 16.04.2 LTS), and the documentation says the feature was available as of
>> Gambas 3.7.
>>
>> Here's the code I'm using:
>>
>> Public Sub Main()
>>
>>Dim sCSVGrid As String
>>Dim sCSVImport As String
>>Dim hCSVFile As CsvFile
>>Print "Enter the complete path and filename of the CSV file
>> you are
>> importing"
>>Input sCSVImport
>>Print "Enter the complete path and filename of the CSV file containing
>> the
>> grid you are creating"
>>Input sCSVGrid
>> hCSVFile = New CsvFile(sCSVImport)
>>  End
>>
>> Obviously, it's not doing anything yet, but this simple bit of code blows
>> up
>> at
>>
>>   Dim hCSVFile As CsvFile
>>
>> saying CsvFile is an unknown identifier.
>>
>> Yet, this code was taken from the example, I just added a few lines.
>>
>> >From what I unerstand from the documentation, anything in db.util should
>> be
>> available, but I guess I'm missing something, probably something simple.
>>
>> As you can see, I'm a bit of a newb.   Any tips on what I'm doing wrong?
>>
>>
>>
>>
>>
>> --
>> View this message in context: http://gambas.8142.n7.nabble.c
>> om/Trouble-with-CSVFile-Component-tp59904.html
>> Sent from the gambas-user mailing list archive at Nabble.com.
>>
>> 
>> --
>> 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
>>
>
>
>


-- 
-Mark
--
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] Trouble with CSVFile Component

2017-07-27 Thread Tony Morehen

Did you add gb.utils component to your project?

Project->Properties->Components & check gb.utils


On 2017-07-27 07:10 PM, markwalt wrote:

Hi guys,

I'm trying to write a very simple program that pulls in one CSV File, and
spits out another, based on what's inside the file.

I see from the Wiki that there's a function for that, in the db.utils
component.  However, using the very sparse example provided, I'm getting
errors.

I'm using 3.8.4, which is the "current" version in my distro (Xubuntu
16.04.2 LTS), and the documentation says the feature was available as of
Gambas 3.7.

Here's the code I'm using:

Public Sub Main()

   Dim sCSVGrid As String
   Dim sCSVImport As String
   Dim hCSVFile As CsvFile
  
   
   
   Print "Enter the complete path and filename of the CSV file you are

importing"
   Input sCSVImport
   Print "Enter the complete path and filename of the CSV file containing the
grid you are creating"
   Input sCSVGrid
   
  
   hCSVFile = New CsvFile(sCSVImport)
   
   
   
End


Obviously, it's not doing anything yet, but this simple bit of code blows up
at

  Dim hCSVFile As CsvFile

saying CsvFile is an unknown identifier.

Yet, this code was taken from the example, I just added a few lines.

>From what I unerstand from the documentation, anything in db.util should be
available, but I guess I'm missing something, probably something simple.

As you can see, I'm a bit of a newb.   Any tips on what I'm doing wrong?





--
View this message in context: 
http://gambas.8142.n7.nabble.com/Trouble-with-CSVFile-Component-tp59904.html
Sent from the gambas-user mailing list archive at Nabble.com.

--
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




--
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


[Gambas-user] Trouble with CSVFile Component

2017-07-27 Thread markwalt
Hi guys,

I'm trying to write a very simple program that pulls in one CSV File, and
spits out another, based on what's inside the file.

I see from the Wiki that there's a function for that, in the db.utils
component.  However, using the very sparse example provided, I'm getting
errors.

I'm using 3.8.4, which is the "current" version in my distro (Xubuntu
16.04.2 LTS), and the documentation says the feature was available as of
Gambas 3.7.

Here's the code I'm using:

Public Sub Main()

  Dim sCSVGrid As String
  Dim sCSVImport As String 
  Dim hCSVFile As CsvFile
 
  
  
  Print "Enter the complete path and filename of the CSV file you are
importing"
  Input sCSVImport
  Print "Enter the complete path and filename of the CSV file containing the
grid you are creating"
  Input sCSVGrid
  
 
  hCSVFile = New CsvFile(sCSVImport)
  
  
  
End

Obviously, it's not doing anything yet, but this simple bit of code blows up
at 

 Dim hCSVFile As CsvFile

saying CsvFile is an unknown identifier.

Yet, this code was taken from the example, I just added a few lines.

>From what I unerstand from the documentation, anything in db.util should be
available, but I guess I'm missing something, probably something simple.

As you can see, I'm a bit of a newb.   Any tips on what I'm doing wrong? 





--
View this message in context: 
http://gambas.8142.n7.nabble.com/Trouble-with-CSVFile-Component-tp59904.html
Sent from the gambas-user mailing list archive at Nabble.com.

--
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


[Gambas-user] since are available SQLrequest?

2017-07-27 Thread PICCORO McKAY Lenz
i see that in wiki, http://gambaswiki.org/wiki/comp/gb.db/sqlrequest

since are available that? there its available for gambas 3.1?
-- 
Lenz McKAY Gerardo (PICCORO)
http://qgqlochekone.blogspot.com

--
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] [Gambas Bug Tracker] Bug #1129: lybrary extern return illegal instruction

2017-07-27 Thread Jussi Lahtinen
How is the function called in C?


Jussi

On Thu, Jul 27, 2017 at 9:18 AM,  wrote:

> http://gambaswiki.org/bugtracker/edit?object=BUG.1129=L21haW4-
>
> Philippe BIENVAULT reported a new bug.
>
> Summary
> ---
>
> lybrary extern return illegal instruction
>
> Type : Bug
> Priority : Medium
> Gambas version   : 3.9
> Product  : Unknown
>
>
> Description
> ---
>
> Private Extern factorielle(toto As Integer) As Integer In "libfact"
>
>
> Public Sub Main()
>
>   Dim aVal As Integer
>
>   aVal = factorielle(12) ' -> return illegal instruction
>
>
> End
>
>
> System information
> --
>
> [System]
> Gambas=3.9.2
> OperatingSystem=Linux
> Kernel=4.4.0-71-generic
> Architecture=x86_64
> Distribution=Ubuntu 16.04.2 LTS
> Desktop=UNITY
> Theme=Gtk
> Language=fr_FR.UTF-8
> Memory=3624M
>
> [Libraries]
> Cairo=libcairo.so.2.11400.6
> Curl=libcurl.so.4.4.0
> DBus=libdbus-1.so.3.14.6
> GStreamer=libgstreamer-1.0.so.0.803.0
> GTK+2=libgtk-x11-2.0.so.0.2400.30
> GTK+3=libgtk-3.so.0.1800.9
> OpenGL=libGL.so.1.0.0
> OpenGL=libGL.so.1.2.0
> Poppler=libpoppler.so.58.0.0
> QT4=libQtCore.so.4.8.7
> QT5=libQt5Core.so.5.5.1
> SDL=libSDL-1.2.so.0.11.4
> SQLite=libsqlite3.so.0.8.6
>
> [Environment]
> CLUTTER_IM_MODULE=xim
> COMPIZ_BIN_PATH=/usr/bin/
> COMPIZ_CONFIG_PROFILE=ubuntu
> DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-1SjanrYhNB
> DEFAULTS_PATH=/usr/share/gconf/ubuntu.default.path
> DESKTOP_SESSION=ubuntu
> DISPLAY=:0
> GB_GUI=gb.qt4
> GDMSESSION=ubuntu
> GDM_LANG=fr_FR
> GIO_LAUNCHED_DESKTOP_FILE=/.local/share/applications/gambas3.desktop
> GIO_LAUNCHED_DESKTOP_FILE_PID=11132
> GNOME_DESKTOP_SESSION_ID=this-is-deprecated
> GNOME_KEYRING_CONTROL=
> GNOME_KEYRING_PID=
> GPG_AGENT_INFO=/.gnupg/S.gpg-agent:0:1
> GTK2_MODULES=overlay-scrollbar
> GTK_IM_MODULE=ibus
> GTK_MODULES=gail:atk-bridge:unity-gtk-module
> HOME=
> IM_CONFIG_PHASE=1
> INSTANCE=
> JOB=unity-settings-daemon
> LANG=fr_FR.UTF-8
> LANGUAGE=fr_FR
> LOGNAME=
> MANDATORY_PATH=/usr/share/gconf/ubuntu.mandatory.path
> PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/
> sbin:/bin:/usr/games:/usr/local/games:/snap/bin
> PWD=
> QT4_IM_MODULE=xim
> QT_ACCESSIBILITY=1
> QT_IM_MODULE=ibus
> QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1
> QT_QPA_PLATFORMTHEME=appmenu-qt5
> SESSION=ubuntu
> SESSIONTYPE=gnome-session
> SESSION_MANAGER=local/:@/tmp/.ICE-unix/
> 1987,unix/:/tmp/.ICE-unix/1987
> SHELL=/bin/bash
> SHLVL=0
> SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
> TZ=:/etc/localtime
> UPSTART_EVENTS=xsession started
> UPSTART_INSTANCE=
> UPSTART_JOB=unity7
> UPSTART_SESSION=unix:abstract=/com/ubuntu/upstart-session/1000/1771
> USER=
> XAUTHORITY=/.Xauthority
> XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/usr/share/upstart/xdg:/etc/xdg
> XDG_CURRENT_DESKTOP=Unity
> XDG_DATA_DIRS=/usr/share/ubuntu:/usr/share/gnome:/usr/
> local/share/:/usr/share/:/var/lib/snapd/desktop
> XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/
> XDG_MENU_PREFIX=gnome-
> XDG_RUNTIME_DIR=/run/user/1000
> XDG_SEAT=seat0
> XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
> XDG_SESSION_DESKTOP=ubuntu
> XDG_SESSION_ID=c2
> XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0
> XDG_SESSION_TYPE=x11
> XDG_VTNR=7
> XMODIFIERS=@im=ibus
>
>
>
> 
> --
> 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
>
--
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] Weather app in Software Farm

2017-07-27 Thread Charlie
I have tried out the latest version 0.1.9 and it worked on Mint 18 and the
TryIcon is fine. I put in my location and it finds it but I notice that Line
98 in Config.class: -

*Settings["Default/Location"] = Replace(txtLocation.Text, " ", "")*

takes out any spaces so Saint Peter Port becomes SaintPeterPort and then it
fails to load the weather. I changed the line to: -

*Settings["Default/Location"] = Trim(txtLocation.Text)*
and it works but is too large to fit on the Form:-

 

I have had a look at OpenWeather Database and the largest 'location' is: -
*Posëlok Psikhonevrologicheskoy Bol’nitsy Imeni Karamzina*

which seems an excessively long name but it is there!




-
Check out www.gambas.one 
--
View this message in context: 
http://gambas.8142.n7.nabble.com/Weather-app-in-Software-Farm-tp59768p59899.html
Sent from the gambas-user mailing list archive at Nabble.com.

--
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


[Gambas-user] [Gambas Bug Tracker] Bug #1129: lybrary extern return illegal instruction

2017-07-27 Thread bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.1129=L21haW4-

Philippe BIENVAULT added an attachment:

factorielle.tar.xz



--
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


[Gambas-user] [Gambas Bug Tracker] Bug #1129: lybrary extern return illegal instruction

2017-07-27 Thread bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.1129=L21haW4-

Philippe BIENVAULT reported a new bug.

Summary
---

lybrary extern return illegal instruction

Type : Bug
Priority : Medium
Gambas version   : 3.9
Product  : Unknown


Description
---

Private Extern factorielle(toto As Integer) As Integer In "libfact"


Public Sub Main()

  Dim aVal As Integer
  
  aVal = factorielle(12) ' -> return illegal instruction


End


System information
--

[System]
Gambas=3.9.2
OperatingSystem=Linux
Kernel=4.4.0-71-generic
Architecture=x86_64
Distribution=Ubuntu 16.04.2 LTS
Desktop=UNITY
Theme=Gtk
Language=fr_FR.UTF-8
Memory=3624M

[Libraries]
Cairo=libcairo.so.2.11400.6
Curl=libcurl.so.4.4.0
DBus=libdbus-1.so.3.14.6
GStreamer=libgstreamer-1.0.so.0.803.0
GTK+2=libgtk-x11-2.0.so.0.2400.30
GTK+3=libgtk-3.so.0.1800.9
OpenGL=libGL.so.1.0.0
OpenGL=libGL.so.1.2.0
Poppler=libpoppler.so.58.0.0
QT4=libQtCore.so.4.8.7
QT5=libQt5Core.so.5.5.1
SDL=libSDL-1.2.so.0.11.4
SQLite=libsqlite3.so.0.8.6

[Environment]
CLUTTER_IM_MODULE=xim
COMPIZ_BIN_PATH=/usr/bin/
COMPIZ_CONFIG_PROFILE=ubuntu
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-1SjanrYhNB
DEFAULTS_PATH=/usr/share/gconf/ubuntu.default.path
DESKTOP_SESSION=ubuntu
DISPLAY=:0
GB_GUI=gb.qt4
GDMSESSION=ubuntu
GDM_LANG=fr_FR
GIO_LAUNCHED_DESKTOP_FILE=/.local/share/applications/gambas3.desktop
GIO_LAUNCHED_DESKTOP_FILE_PID=11132
GNOME_DESKTOP_SESSION_ID=this-is-deprecated
GNOME_KEYRING_CONTROL=
GNOME_KEYRING_PID=
GPG_AGENT_INFO=/.gnupg/S.gpg-agent:0:1
GTK2_MODULES=overlay-scrollbar
GTK_IM_MODULE=ibus
GTK_MODULES=gail:atk-bridge:unity-gtk-module
HOME=
IM_CONFIG_PHASE=1
INSTANCE=
JOB=unity-settings-daemon
LANG=fr_FR.UTF-8
LANGUAGE=fr_FR
LOGNAME=
MANDATORY_PATH=/usr/share/gconf/ubuntu.mandatory.path
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
PWD=
QT4_IM_MODULE=xim
QT_ACCESSIBILITY=1
QT_IM_MODULE=ibus
QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1
QT_QPA_PLATFORMTHEME=appmenu-qt5
SESSION=ubuntu
SESSIONTYPE=gnome-session
SESSION_MANAGER=local/:@/tmp/.ICE-unix/1987,unix/:/tmp/.ICE-unix/1987
SHELL=/bin/bash
SHLVL=0
SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
TZ=:/etc/localtime
UPSTART_EVENTS=xsession started
UPSTART_INSTANCE=
UPSTART_JOB=unity7
UPSTART_SESSION=unix:abstract=/com/ubuntu/upstart-session/1000/1771
USER=
XAUTHORITY=/.Xauthority
XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/usr/share/upstart/xdg:/etc/xdg
XDG_CURRENT_DESKTOP=Unity
XDG_DATA_DIRS=/usr/share/ubuntu:/usr/share/gnome:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop
XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/
XDG_MENU_PREFIX=gnome-
XDG_RUNTIME_DIR=/run/user/1000
XDG_SEAT=seat0
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
XDG_SESSION_DESKTOP=ubuntu
XDG_SESSION_ID=c2
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0
XDG_SESSION_TYPE=x11
XDG_VTNR=7
XMODIFIERS=@im=ibus



--
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