10.07.2015 Views

Programming Guide - Actian

Programming Guide - Actian

Programming Guide - Actian

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

External ClassesExample—ActiveX ControlsThe following code is an example of how an ActiveX control can be coded inOpenROAD. It displays a web page in an OpenROAD frame. It assumes thatthe frame contains the following fields:browserSpecifies an OpenROAD external object (an ActiveX control inserted intothe frame)urlfieldSpecifies an OpenROAD entry fieldforwardbackSpecifies an OpenROAD button fieldSpecifies an OpenROAD button fieldinitialize()=declareenddeclarebegincurframe.flush();urlfld = 'http://www.cai.com';browser.navigate(urlfld);endon click forward =beginbrowser.goforward();endon click back =beginbrowser.goback();endon setvalue urlfld =beginbrowser.navigate(urlfld);end;on extclassevent 'statustextchange'(text = varchar(256) not null)=begincurframe.statustext = text;end;on extclassevent 'beforenavigate'(url = varchar(256) not null) =beginurlfld = url;end;138 <strong>Programming</strong> <strong>Guide</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!