OK, you guys answered my SQL query question so quickly it was obviously too simple for you; maybe you can advise me on this issue?
I was using (from prior version of QM) the following to extract data from a web page that lists routing info I place into a database. (I originally created this with the handy QM wizard on the add-in bar that QM comes with).
However, the IHTMLElement has been deprecated in favor of the HTM function. But when I try to duplicate the process with HTM(), I can't get a match (although if I add copies of the system functions that apply to the old IHTMLElement to the new version of QM, I can again match using IHTMLElement-but this is obviously not ideal.)
HTM() function as I am using it now:
Htm el=htm("TD" "Part / service #DescriptionSent airbillReturn airbillRMA #Notes[]3DFORCEFX-5200 VIDEO CARD 97493765784 A45422707621 0000725634 " "" win("Nexxon Services - Maxthon Browser" "IEFrame") 0 64 0x21)
str partstext=el.Text
Can anyone advise of any obvious goofs or suggest QM method for identifying this area of HTML so the data can be extracted as IHTMLElement accomplished?
I can provide a copy of the page if needed, I can't figure out why it's not working as I am using the wizard, as I described...
As I said, I reintroduced the IHTMLElement into the new version of QM, so I am pulling data ok for the moment, but if you have any suggestions, let me know, please, or if you need more data from me.
Here is the code I am using to extract data from the web page.
Using the (old) MSHTML.IHTMLElement line, it extracts fine. using the HTM line, errors out with window not found' error.
(As previously mentioned, I copied the old functions pertaining to IHTMLElement into v2.19 to be able to use that function in new version, simply as stopgap measure.)
I created both initially with the wizard bar in QM; Note each has an accompanying 'str s' line; REM out one pair of lines to see the two effects.
I have attached an example of the web page I search on; it remains static except for customer data.
Let me know if you need more info. I am using 2.19 QM (Altho I have tried 2.18 with same effect). Thanks for your input.
Tip2: use wildcard characters for part of html and/or text that may change or is not useful.
Tip3: don't check Regexp if you don't use regular expression.
Tip4: don't use HTML if the element can be found using text. HTML may change in the future and you will not see it as you would see text change.
Hey, thanks, obviously I have a ways to go towards becoming a qm pro. But got it working now.
Last thing, is there any written documentation on the htm coding, i.e. options, etc. I am not sure what could be applied to the command, and can't find anything in detail. Can you post this, or is it TBD?
Only what is in QM Help. Click htm and press F1. If you need info about IHTMLElement and all other interfaces that you can use with html elements, you'll find it in MSDN Library, http://msdn.microsoft.com/library/ .