[Gambas-user] failure on Startup of Gambas on Linux Mint Debian Edition 2

2016-03-14 Thread KKing
I've just had to set up a new unit and am using Linux Mint Debian 
Edition 2 usuing 32bit MATE,

If I install Gambas via the LMDE2 Package Manager it installs gambas 
v3.5.4-2+b1

But when i try to start Gambas from the menu, I get a window

This application has raised an unexpected error and must abort.
[13] null object
Setting.WriteWindow.385

I uninstalled (completely remove option) gambas via the Package Manager.

Then I downloaded source from gambas site for v3.8.4

installed the dependencies mentioned on the wiki for debian, plus two 
more for qt4 opengl and qt4 webkit. I still had qt5 Opengl and qt5 
webkit listed as disabled  do I need them to use Gambas if the Qt4 
is resolved?

I couldn't see Qt5 libraries on the LMDE2 Package Manager?

If I try to start gambase from terminal, I get window.

This application has raised an unexpected error and must abort.
[20] Bad argument
Settings.WriteWindow.388

and in the terminal window there is
Project.Main.356

  - - - - - - -
Anything obvious I can try? Or what would be next debugging step to 
establish issue.





--
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785231=/4140
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] XMLDocument GetSingleNode or XPath support?

2016-03-10 Thread KKing
On 08/03/16 02:39, Adrien Prokopowicz wrote:
> Le Mon, 29 Feb 2016 15:10:49 +0100, KKing <kicking...@gmail.com> a écrit:
>
>> On 17/02/16 09:15, KKing wrote:
>>> does the XML component support a GetSingleNode method or allow an
>>> XPath to be used to obtain single nodes?
>>>   - - - -
>>>
>> is that a no then?
>>
>>
> At the moment, there is no XPath support for the gb.xml component.
>
> However, if you want to select specific nodes, you have several methods
> at your disposal :
>
> * The XmlElement.GetChildrenByTagName()[0] can be used to search elements
> with specific tag names, but it also supports LIKE[1] patterns. It can
> also receive a depth parameter if you want to restrict your search;
> * The XmlElement.GetChildrenByAttributeValue()[2] works with similar
> options;
> * The gb.xml.html sub-component adds a XmlElement.GetChildrenByFilter()[3]
> method,
> to which you can pass a CSS filter. Not all CSS expressions are
> supported though
> (see the MatchFilter()[4] help).
>
> Hope that helps,
>
> [0] http://gambaswiki.org/wiki/comp/gb.xml/xmlelement/getchildrenbytagname
> [1] http://gambaswiki.org/wiki/lang/like
> [2]
> http://gambaswiki.org/wiki/comp/gb.xml/xmlelement/getchildrenbyattributevalue
> [3]
> http://gambaswiki.org/wiki/comp/gb.xml.html/xmlelement/getchildrenbyfilter
> [4] http://gambaswiki.org/wiki/comp/gb.xml.html/xmlelement/matchfilter
>
ta, I did contemplate the GetChildren methods.
Due to time pressures, and a very specific need, I resorted to modifying 
the xml file via string manipulation.

If I ever need to revisit I may look to do it better, either within my 
code or extending the component.
Would XPath fit within the gb.xml component, or would you imagine a 
gb.xml.xpath component?



--
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785111=/4140
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] XMLDocument GetSingleNode or XPath support?

2016-02-29 Thread KKing
On 17/02/16 09:15, KKing wrote:
> does the XML component support a GetSingleNode method or allow an 
> XPath to be used to obtain single nodes?
>  - - - -
>
is that a no then?


--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151=/4140
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] String conversion for printing

2016-02-18 Thread KKing
On 18/02/16 13:59, Roel Touwen wrote:
> Hi All,
>
> I have an application that prints. The problem is that when I want to
> print é it appears as é.
>
> So I think I need a string conversion like Conv$ but wherever I look,
> there are no working samples.
>
> My charset of system and database are UTF8
>
> Who?
>
> Grtz
>
> Roel Touwen
>
>
> --
> Site24x7 APM Insight: Get Deep Visibility into Application Performance
> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
> Monitor end-to-end web transactions and take corrective actions now
> Troubleshoot faster and improve end-user experience. Signup Now!
> http://pubads.g.doubleclick.net/gampad/clk?id=272487151=/4140
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
I possibly encountered similar issue(s).
I was working with text in a SQLite db that contained things like the 
degrees symbol and superscript characters. Populating Gambas textBoxes 
and textAreas from the db and updating the db with these characters was 
no issue. But when went to save the same content to a text file I was 
get those characters being prefixed with a "Â", e.g. "³" instead of 
just "³".

I ended up using the following, which worked for me for my issue.

   Try sTextArea = Conv$(taDescription.Text, "UTF-8", "WINDOWS-1253")
   If Error Then
 Message(Error.Text)
   Endif

  - - - - -

--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151=/4140
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] XMLDocument GetSingleNode or XPath support?

2016-02-17 Thread KKing
does the XML component support a GetSingleNode method or allow an XPath 
to be used to obtain single nodes?
  - - - -

--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151=/4140
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] XmlDocument.Open(filename) gives NULL [SOLVED]

2016-02-17 Thread KKing
On 17/02/16 00:32, Tobias Boege wrote:
> On Tue, 16 Feb 2016, Tobias Boege wrote:
>> On Tue, 16 Feb 2016, KKing wrote:
>>> I'm using Gambas 3.5.4 on Linux Mint
>>>
>>> I want to use XmlDocument but can't seem to load an existing xml
>>> document file.
>>>
>>> It errors on loads and just gives error text of "Null object"
>>>
>>> I can open and read the same file via XmlReader, but I want to work with
>>> the whole document via DOM.
>>>
>>> Is this likely to be something in the version of 3.5.4 that I'm using,
>>> that if I take trouble to compile newer version from source will resolve?
>>>
>>> Or am I misunderstanding usage of the XmlDocument?
>>>
>> You are not. This issue is very possibly related to bug #894 in the bug
>> tracker, but I guess you can't access bug reports if you are not registered.
>> XmlDocument.FromString() and XmlDocument.Open() both basically only delegate
>> their work to the same routine XMLDocument_SetContent() and we both get a
>> "Null object" error.
>>
>> It appears that Adrien, the author of the component, is busy these days. I
>> may be able to look into the issue later.
>>
> I spoke too soon. The problem in bug #894 was not a "Null object" but a
> segfault and is fixed now.
>
> On my system with Gambas 3.8.90, I could not reproduce your problem at all.
> Did you by any chance forgot to instantiate the XmlDocument? Like so:
>
>Dim x As New XmlDocument
>
>x.Open(sPath)
>
> (Note the "New" in the declaration.) This would be an easy source of a "Null
> object" error.
>
> In any case, Gambas 3.5.4 is from July 2014. Gambas had ca. 1300 commits
> since then. It would probably be profitable to update if you can, and you
> should update if your problem was not the missing "New".
>
> Regards,
> Tobi
>
Tobi, with the new in Dim statement it works.
many thanks.

  - - - - -

--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151=/4140
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] XmlDocument.Open(filename) gives NULL

2016-02-16 Thread KKing
<<

*Try the following: - *Public Sub Form_Open() Dim hXmlDocument As 
XmlDocument hXmlDocument = New 
XmlDocument("/home/user1/test/myTest.xml") Print hXmlDocument.Content End

 >>

the line
<

hXmlDocument = New XmlDocument("/home/user1/test/myTest.xml")

 >

gives "Error loading file" error.
I've got around my problem for now by totally doing the changes I need 
via string manipulation.

I'll try to find time to test on another unit and or compile current 
Gambas version from source.

  - - - -
--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151=/4140
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] XmlDocument.Open(filename) gives NULL

2016-02-16 Thread KKing
I'm using Gambas 3.5.4 on Linux Mint

I want to use XmlDocument but can't seem to load an existing xml 
document file.

It errors on loads and just gives error text of "Null object"

I can open and read the same file via XmlReader, but I want to work with 
the whole document via DOM.

Is this likely to be something in the version of 3.5.4 that I'm using, 
that if I take trouble to compile newer version from source will resolve?

Or am I misunderstanding usage of the XmlDocument?


Below is a simplified version I tested with, and hit same issues.

simple test xml file:  myTest.xml
  = = = = =

 1

  = = = = =

tPathAndFilename = "/home/user1/test/myTest.xml"

Try xDoc.Open(tPathAndFilename)
 If Error Then
 Debug Error.Text
 Endif
  - - - - - -

--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151=/4140
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user