There are still Panorama X and Beta 10.2 posting categories. At this time should we still be considering PanX to be Beta and use both categories? Or should all PanX questions start migrating to just one Category?
Towards the end of the 50 minute Web Browser video, Jim mentioned a Pan6 routine for pulling stock quotes and said he’d cover that “pulling data from the web” later. But I didn’t see any later video training titles that seemed to cover it - unless it’s in a “generic”, “Short Programming Topics”.
I was able to get the web page to display by putting a web object on the form, changing the type to Formula, and putting the URL of my destination in quotes in the formula window.
Amazingly, putting that final page URL path in, bypassed the requirement for a username/password to be entered that I’d incurred if I manually went to the first page and worked my way, vie menu choices, the target page. So that’s cool. I can go direct to my target page.
Now I’m seeing the text I want in the form web object with just
“https://www.MyTarget.org/members/MyTargetFile.txt”
in the formula window.
Eventually, I need to “calculate” the file name “MyTargetFile.txt” by including changing dates - like “MA2022Something.txt”, and "MJ2022Something.txt, etc.
If the text I want is displayed in the web object, I’d think I just need to assign that to a variable for further processing?
I’m sure there is some “Load” type function that will get it, But I’m unsure where to put it. Like if I have ThisData = SomeCommand, it seems I’ve moved from function to procedure.
I see
displaydata loadurl(“http://www.apple.com”)
in the documentation.
But it seems to me, if it’s going to put content in displaydata, that 1) displaydata needs to be defined, and there should be an = sign. Something like
Local displaydata
displaydata = loadurl(“http://www.apple.com”)
If I can just pull the content, I don’t have to see the webpage at all (via a web object). It’s just kinda neat to see it there - for now. If I can get that content in a variable, I don’t need to see the actual page anymore.
Maybe I can have a GetTheGold procedure that pulls it into a variable and I don’t even need the form that has the web object. It’s 1 AM and I don’t want to have all the fun in one day. I can struggle with it, but if there are any examples around, please point me to them.