Microsoft Visual Basic 2010 Step by Step eBook
Chapter 13 Exploring Text Files and String Processing 333 Type the following text, or some text of your own, in the text box: ...
334 Part II Programming Fundamentals Click the Sort Text command on the File menu to sort the contents of the Abc .txt file. T ...
Chapter 13 Exploring Text Files and String Processing 335 The entire SortTextToolStripMenuItem_Click event procedure looks like ...
336 Part II Programming Fundamentals For i = span To numOfElements - 1 For j = (i - span) To 0 Step -span If sort(j) <= sort( ...
Chapter 13 Exploring Text Files and String Processing 337 Encrypt text by changing ASCII codes Close the Sort Text project, and ...
338 Part II Programming Fundamentals If you open this file in Microsoft Word or another text editor, you’ll see the same result— ...
Chapter 13 Exploring Text Files and String Processing 339 For i = 0 To charsInFile - 1 letter = txtNote.Text.Substring(i, 1) 'de ...
340 Part II Programming Fundamentals This type of simple encryption might be all you need to conceal the information in your tex ...
Chapter 13 Exploring Text Files and String Processing 341 Run the Xor Encryption program now to see how the Xor operator works i ...
342 Part II Programming Fundamentals The program opens the file and restores the text by using the Xor operator and the encrypti ...
Chapter 13 Exploring Text Files and String Processing 343 MsgBox("An error occurred." & vbCrLf & ex.Message) Finally If ...
344 Part II Programming Fundamentals Code = CShort(strCode) 'read encrypted numbers AllText = My.Computer.FileSystem.ReadAllText ...
Chapter 13 Exploring Text Files and String Processing 345 in your study of Visual Basic programming skills and in your use of th ...
346 Part II Programming Fundamentals To Do This Write a text file by using the My namespace Use the My.Computer.FileSystem objec ...
Chapter 13 Exploring Text Files and String Processing 347 To Do This Convert text characters to ASCII codes Use the Asc function ...
...
349 Part III Designing the User Interface In this part: Chapter 14: Managing Windows Forms and Controls at Run Time.......... 35 ...
...
351 Chapter 14 Managing Windows Forms and Controls at Run Time After completing this chapter, you will be able to: n Add new for ...
352 Part III Designing the User Interface How Forms Are Used Microsoft Visual Basic gives you significant flexibility when using ...
«
14
15
16
17
18
19
20
21
22
23
»
Free download pdf