> I just want to know if I could do some web programming using visual foxpro mate, let's say I want my visual foxpro program to input certain value on the textbox in the http://www.xe.com/ucc/ and then my program will also click the command button "go" stuff like that... is there any website where I could refer to get codes suitable for doing such program?
>
> thanks for your time
> norms
>
> > You want to know a website to post a value? http://www.xe.com/ucc/, Post a value in the unit box. If you want the code to do this, then I misunderstood your question.
> >
> > Mike Gagnon
> >
> >
> >
> > > WOW! thanks a lot mate its working now, just as I wanted =) thank you very much! btw you know of some sites I could refer to do a bit of web programming using visual foxpro? let's say I wanted to put values on certain fields on a webpage etc.?
> > >
> > > thanks again
> > > norms
> > >
> > > > > yeah I wanted to load the codes of an html so I read it directly from net is this code you gave me run on visual foxpro 6? Sorry bout very noob questions guys =S
> > > >
> > > > I no longer use VFP6.0, but as far as I know, yes it works on VFP.6. If you get an error, it might be that the webpage takes a long time to load, you may want to add an INKEY() to makes sure the page is loaded.
> > > >
> > > >
> > > > Mike Gagnon
> > > >
> > > >
> > > > > > Perhaps you want to load the content of webpage (and either keep the tags or strip them)
> > > > > >
> > > > > > No tags
> > > > > > oIE = createobject('internetexplorer.application')
> > > > > > oIE.Navigate('www.tek-tips.com')
> > > > > > lcStr=oIe.Document.body.innertext
> > > > > > ?lcStr
> > > > > >
> > > > > > With Tags
> > > > > >
> > > > > > oIE = createobject('internetexplorer.application')
> > > > > > oIE.Navigate('www.tek-tips.com')
> > > > > > lcStr=oIe.Document.body.innerHTML
> > > > > > ?lcStr
> > > > > >
> > > > > >
> > > > > > Mike Gagnon
> > > > > >
> > > > > >
> > > > > > > Hi Guys!
> > > > > > >
> > > > > > > Do you have any idea how can I read source code of an html? is it possible in visual foxpro 6?
> > > > > > >
> > > > > > > Thanks a lot
> > > > > > > Norms
> > > > >
> > > > >
> > > > >Best way for me to do this is to analyze the website how it gets his variables (GET/POST) and to
add the variables to the url like this:
http://www.somebody.de/index.php?name=Sven&submit=1The Output you can show in Webbrowser-Control or store to string by WinHTTP-Object.
This if for an website which has a textbox with name="name" and a button with name"submit".
But on all website it can be different. you must analyse the sourcecode of website and search for -Tag.
Hope this helps.
____________________________________
Best Regards
S.Meyfarth
VFP8,MySQL,PHP,Image Procession