19.12.2012 Views

Computer Programming Concepts and Visual Basic David I. Schneider

Computer Programming Concepts and Visual Basic David I. Schneider

Computer Programming Concepts and Visual Basic David I. Schneider

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

392 <strong>Computer</strong> <strong>Programming</strong> <strong>Concepts</strong> <strong>and</strong> <strong>Visual</strong> <strong>Basic</strong><br />

objWord.FileOpen filespec ‘Open the specified document<br />

objWord.FontSize n ‘Assign the value n to the font size<br />

objWord.StartOfLine ‘Move the insertion point to the ‘beginning<br />

of the current line<br />

objWord.EndOfLine ‘Move the insertion point to the ‘end of<br />

the current line<br />

objWord.StartOfDocument ‘Move the insertion point to the ‘beginning<br />

of the document<br />

objWord.EndOfDocument ‘Move the insertion point to the ‘end of<br />

the document<br />

objWord.FileSave ‘Save the current document<br />

7. The following key combinations can be used to carry out tasks with an embedded<br />

Excel application:<br />

Ctrl+; Insert the date in the current cell<br />

Alt+= Sum continuous column of numbers containing the current cell<br />

Ctrl+Z Undo the last operation<br />

Shift+F3 Invoke the Function Wizard<br />

F7 Check spelling<br />

8. The st<strong>and</strong>ard prefix for the name of an OLE container control is ole.<br />

9. OLE replaces an earlier technology known as Dynamic Data Exchange (DDE)<br />

that was used to integrate applications into <strong>Visual</strong> <strong>Basic</strong> programs. DDE is<br />

slower <strong>and</strong> more difficult to use than OLE.<br />

13.2 ACCESSING THE INTERNET WITH VISUAL BASIC<br />

■ WHAT IS THE INTERNET?<br />

The Internet began in the late 1960s as a plan to link computers at scientific laboratories across<br />

the country so that researchers could share computer resources. This plan was funded by the<br />

Defense Department’s Advanced Research Projects Agency (ARPA) <strong>and</strong> initially was known<br />

as ARPANET. Over time, many research institutions <strong>and</strong> universities connected to this network.<br />

Eventually, the National Science Foundation took over ARPANET <strong>and</strong> ultimately it became<br />

what we now know as the Internet. The past few years has seen an amazing amount of growth<br />

in this global network. It more than doubles in size every 6 months.<br />

The Internet often is confused with one of its most popular components, the World Wide<br />

Web (WWW) or “the Web.” The Internet is much more than the Web. It also consists of electronic<br />

mail (e-mail), file transfer (FTP), news groups, <strong>and</strong> remote login capabilities. E-mail<br />

allows people to send messages to one another over the Internet. FTP allows people to transfer<br />

files from one machine to another. This is often the preferred method of retrieving shareware<br />

or freeware programs over the Internet. Usenet is a large collection of electronic<br />

discussion groups called newsgroups. There are newsgroups dedicated to every topic imaginable.<br />

People can post messages that all members of the group can read <strong>and</strong> answer.<br />

The World Wide Web is made up of documents called pages, which contain pictures <strong>and</strong><br />

text. The pages are accessed through programs called browsers. The best known Web<br />

browsers are Netscape, Mosaic, Lynx, <strong>and</strong> Internet Explorer. Web pages usually include links<br />

to other pages. These links are often set apart from the regular text by using boldface, underlining,<br />

or color. When you click on a link, you call up the page referred to by that link. This<br />

technology for connecting documents is called hypertext.

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

Saved successfully!

Ooh no, something went wrong!