This is great, but is there a way to step through an xml document looking just for <section> tags (or others) and get the attributes from them?
I am trying to use an xhtml document as a template and imbed the sql queries to fill out the data.
Thanks
Search found 42 matches
- Mon Sep 29, 2014 5:42 pm
- Forum: Coding Questions
- Topic: XML nodes stepthrough
- Replies: 3
- Views: 1797
- Fri Sep 26, 2014 11:24 pm
- Forum: Coding Questions
- Topic: XML nodes stepthrough
- Replies: 3
- Views: 1797
XML nodes stepthrough
I need some help with the XML. I am trying to extract text from an XML document I load into a string.
<section id="sm51_title_bar_sql" class="sql"> /* SM51 Title Bar Query */
SELECT title AS sm51_title_bar,
description AS sm51_desc,
status AS sm51_status
FROM rep.sm51_title_bar;
</section ...
<section id="sm51_title_bar_sql" class="sql"> /* SM51 Title Bar Query */
SELECT title AS sm51_title_bar,
description AS sm51_desc,
status AS sm51_status
FROM rep.sm51_title_bar;
</section ...
- Tue Feb 12, 2013 9:16 pm
- Forum: Windows
- Topic: SQLite Library issue
- Replies: 10
- Views: 2809
Re: SQLite Library issue
Thanks Fred! You're the best!
- Tue Feb 12, 2013 7:15 pm
- Forum: Windows
- Topic: SQLite Library issue
- Replies: 10
- Views: 2809
Re: SQLite Library issue
Yes, you have been lucky. It took us a while to find it, but when we create a view with an ORDER BY statement:
SELECT DISTINCT jobid,
datetime(start_tmx,'unixepoch') start,
datetime(end_tmx,'unixepoch') end,
(strftime('%s','now','localtime') - start_tmx) / 3600 age,
CASE WHEN end_tmx > 0 THEN
end ...
SELECT DISTINCT jobid,
datetime(start_tmx,'unixepoch') start,
datetime(end_tmx,'unixepoch') end,
(strftime('%s','now','localtime') - start_tmx) / 3600 age,
CASE WHEN end_tmx > 0 THEN
end ...
- Tue Feb 12, 2013 4:51 pm
- Forum: Feature Requests and Wishlists
- Topic: Updated SQLite Library?
- Replies: 19
- Views: 4675
Re: Updated SQLite Library?
Can you share how you did it or the library? We are having an issue with earlier versions (like 3.7.9) of SQLite (the current compile version for v5.0 of PB). We need 3.7.13 or better.
Any help is appreciated. This is a commercial project we are working on.
Thanks
Any help is appreciated. This is a commercial project we are working on.
Thanks
- Tue Feb 12, 2013 4:27 pm
- Forum: Windows
- Topic: SQLite Library issue
- Replies: 10
- Views: 2809
Re: SQLite Library issue
2012-06-11 (3.7.13) is working. But 3.7.9 or earlier does not.
Thanks
Thanks
- Mon Feb 11, 2013 11:02 pm
- Forum: Windows
- Topic: SQLite Library issue
- Replies: 10
- Views: 2809
SQLite Library issue
Hello PB Group,
I discovered that the libraries that PB uses for SQLite have an error in them with ORDER BY statements. This is true of any program using the older libraries (discovered it in the SQLite Manger plug-in for FireFox). I don't know how to update the libraries, is there a way to do that ...
I discovered that the libraries that PB uses for SQLite have an error in them with ORDER BY statements. This is true of any program using the older libraries (discovered it in the SQLite Manger plug-in for FireFox). I don't know how to update the libraries, is there a way to do that ...
- Thu Jan 10, 2013 5:43 pm
- Forum: Coding Questions
- Topic: Simple DLL question
- Replies: 7
- Views: 2478
Re: Simple DLL question
OK. It is working now. I guess the compile with the ProcedureDLL statements did not compile or my AV program grabbed it. Thanks for the help. It looks like we should be using Prototypes instead so I will need to look at that further.
- Thu Jan 10, 2013 4:15 pm
- Forum: Coding Questions
- Topic: Simple DLL question
- Replies: 7
- Views: 2478
Simple DLL question
It has been a long time since I've worked with DLLs in PB. I created one using ProcedureDLL and compiled it, but when I connect and try to read the procedures, they don't seem to be recognized. What am I doing wrong?
Here is the code to read the library file. Do I need to DeclareDLL all the ...
Here is the code to read the library file. Do I need to DeclareDLL all the ...
- Sat Dec 22, 2012 8:35 pm
- Forum: Coding Questions
- Topic: Threading calls to Java program
- Replies: 1
- Views: 536
Re: Threading calls to Java program
What I am asking is, I need to run an outside program and feed it parameters. Then catch the output (stdout). Can that be done with threads so that the "RunProgram" calls happen asynchronously?
- Sat Dec 22, 2012 7:35 am
- Forum: Coding Questions
- Topic: Threading calls to Java program
- Replies: 1
- Views: 536
Threading calls to Java program
I have not used threading but I have a project that requires some calls (run program) to a Java program that returns information in the stdout. This is a communication call, my program takes the stdout and parses the information to a database. I know I can't get a return from a Thread, but is there ...
- Sat Jul 09, 2011 4:42 pm
- Forum: Coding Questions
- Topic: Confused about Multi-dimensional arrays
- Replies: 3
- Views: 1152
Re: Confused about Multi-dimensional arrays
It works (I don't know why) but I had to change it a bit cause I was getting an array out of bounds error.
Procedure.l zExecuteSQLQuery(SQL.s,Array dat.DatabaseRow(1))
Protected.l hndDB = zOpenSQLDatabase("","")
Protected.l ttlcol,col,count = 0
If IsDatabase(hndDB)
If DatabaseQuery(hndDB ...
Procedure.l zExecuteSQLQuery(SQL.s,Array dat.DatabaseRow(1))
Protected.l hndDB = zOpenSQLDatabase("","")
Protected.l ttlcol,col,count = 0
If IsDatabase(hndDB)
If DatabaseQuery(hndDB ...
- Sat Jul 09, 2011 4:13 pm
- Forum: Coding Questions
- Topic: Confused about Multi-dimensional arrays
- Replies: 3
- Views: 1152
Re: Confused about Multi-dimensional arrays
I will give it a try, but can you explain how it works?
DB
DB
- Sat Jul 09, 2011 3:50 pm
- Forum: Coding Questions
- Topic: Confused about Multi-dimensional arrays
- Replies: 3
- Views: 1152
Confused about Multi-dimensional arrays
Hello,
I am trying to create a procedure that will fill an array with data rows from a SQL query. I am having trouble passing the array. I want to dimension it and then redim to the size of the number of rows. Something like this:
Procedure.l zExecuteSQLQuery(SQL.s,Array dat(10))
Protected.l ...
I am trying to create a procedure that will fill an array with data rows from a SQL query. I am having trouble passing the array. I want to dimension it and then redim to the size of the number of rows. Something like this:
Procedure.l zExecuteSQLQuery(SQL.s,Array dat(10))
Protected.l ...
- Mon Jul 04, 2011 2:14 pm
- Forum: Coding Questions
- Topic: How do I trigger a Left-Click event?
- Replies: 15
- Views: 2844
Re: How do I trigger a Left-Click event?
I figured out what is going on. When I set the GadgetItemState() to select the previously selected tree item (the last time the program was run) and then use GetGadgetText() is selects the first item on the list.
I used this code to select the item.
SetActiveGadget(Main_treeClients ...
I used this code to select the item.
SetActiveGadget(Main_treeClients ...