Chapter 1. Block Diagram. Text .. 1

Size: px
Start display at page:

Download "Chapter 1. Block Diagram. Text .. 1"

Transcription

1 Chapter 1 ก Visual Basic Scilab ก ก Visual Basic Scilab ก ก (Temporary File) ก ก ก ก ก ก Visual Basic ก (Interface) ก Scilab Text File ก Visual Basic ก ก ก ก Block Diagram ก ก Visual Basic ก Scilab ก.sce ก Scilab ก ก Scilab ก ก.txt ก Visual Basic ก ก Text Block Diagram ก ก ก ก ก ก ก ก ก Visual Basic ก ก ก ก C ก ก ก ก ก ก ก ก ก Visual Basic 6.. 1

2 ก ก Visual Basic ก FileSystemObject ก ก ก ก Window ก ก Scilab FileSystemObject Drive Folder File Text Stream ก กก FileSystemObject ก ก ก 4,,, ก ก ก ก ก ก ก 3 ก FileSystemObject ก,, ก ก,, ก ก Drive ก ก ก ก ก ก ก Drive Folder ก ก ก ก ก Files ก ก ก ก ก Text Stream ก ก ก ก ก FileSystemObject ก ก ก ก Microsoft Scripting Runtime ก ก ก ก Text Stream ก ก - ก.. 2

3 ก ก Microsoft Scripting Runtime ก ก ก ก ก ก ก ก ก 1. ก Visual Basic ก ก Standard --> Open 1.1 ก ก StandardEXE ก ก Open 1.1 New Project 2. ก ก ก ก Visual Basic ก ก ก ก FileSystemObject ก Project --> References ก ก Microsoft Scripting Runtime ก ก ก.. 3

4 ก ก ก Option Explicit Option Explicit ก ก ก ก ก ก form ก ก ก ก Visual Basic ก ก ก ก ก ก Visual Basic ก Error ก ก ก General FileSystemObject Dim fso As New FileSystemObject ก fso ก FileSystemObject ก ก FileSystemObject ก ก General New ก ก ก กก ก ก ก ก pointer ก ก ก ก ก ก Set Set strm = fso ก ก fso strm ก ก ก ก ก ก Shell Shell(PathName, [Window Style]) ก ก ก ก PathName ก ก ก Window Style ก ก ก.. 4

5 Msgbox MsgBox Prompt[,Buttons][,Title] ก ก ก Click ก ก ก ก App.Path Prompt ก MessageBox ก ก ก chr(13) Buttons ก ก ก MessageBox Title ก MessageBox App.Path ก ก ก ก ก ก ก ก (remote) App.Path ก UNC (Universal Naming Convention) \ \ \ \ ).. 5

6 ก FileSystemObject ก ก FileSystemObject ก ก ก Drive ก Folder ก File ก TextStream ก ก ก ก ก File ก TextStream ก ก ก. ก ก ofilesysobj. Method ก ก Visual Basic ก ก. ก Auto List Members ก ก ก ก ก File ก TextStream CreateTextFile ก ก ofilesysobj.createtextfile (Filename [, Overwrite[, Unicode]]) ofilesysobj ก ก Filename String Overwrite ก ก Boolean (True or False) Unicode กก ก ก Unicode ASCII Boolean (True or False) ก 1. ก ก Visual Basic ก ก Standard EXE ก ก ก commandbutton ก CreateTextFile.. 6

7 2. ก ก ก / ก Form Caption ก CreateTextFile CommandButton Name Command1 Caption ก CreateTextFile 3. ก CommandButton ก View Code ก Public fso As New FileSystemObject Private Sub Command1_Click() fso.createtextfile ("D:\test.txt") End Sub 4. ก ก ก ก ก <F5> ก ก ก ก ก commandbutton ก ก CreateTextFile ก ก ก ก Visual Basic ก ก Scilab ก ก Scilab ก ก ก. ก - ก TextStreamObject ( ก ก ก ) ก ก ก ก,,.. 7

8 ก ก ก ก TextStreamObject ก ก (CreateTextFile) ก ก ก Dim strm As TextStream ก ก ก ก Set ( ก ก ) ก - ก (TextStreamObject) Close ก กก ก TextStream Object otextstreamobj.close otextstreamobj ก ก ก ก กก Read ก ก ก otextstreamobj.read(characters) otextstreamobj ก ก ก Characters ก ก ก ก ก Long ReadAll ก ก otextstreamobj.readall otextstreamobj ก ก ก ReadLine 1 ก ก otextstreamobj.readline otextstreamobj ก ก ก 1.. 8

9 Skip ก ก ก ก otextstreamobj.skip (Characters) otextstreamobj ก ก ก Characters ก ก Long SkipLine ก ก ก 1 otextstreamobj.skipline otextstreamobj ก ก ก Write ก ก otextstreamobj.write(text) otextstreamobj ก ก ก Text ก ก. WriteLine ก 1 otextstreamobj.writeline (String) otextstreamobj ก ก ก String ก. WriteBlankLines ก otextstreamobj.writeblanklines(lines) otextstreamobj ก ก ก Lines ก ก ก Long.. 9

10 DeleteFile ก ก ก ofilesysobj.deletefile( FileSpec [, Force]) ofilesysobj ก ก FileSpec ก String Force ก ก Boolean (True or False) ก 1. ก ก Notepad ก D:\ ก CreateFile ก ก ก ก ก Notepad 2. ก ก Visual Basic ก ก Standard EXE ก ก ก commandbutton ก DeleteFile.. 10

11 3. ก ก ก / ก Form Caption ก DeleteFile CommandButton Name Command1 Caption ก DeleteFile 4. ก CommandButton ก View Code ก Public fso As New FileSystemObject Private Sub Command1_Click() 4 fso.deletefile "D:\test.txt" 5 End Sub 5. ก ก ก ก ก <F5> ก ก ก ก ก commandbutton ก ก DeleteFile ก DeleteFile ก ก ก ก ก ก ก ก ก ก ก ก ก ก ก ก ก ก ก ก FileExists ก.. 11

12 FileExists ก ofilesysobj.fileexists(filespec) ofilesysobj ก ก FileSpec ก String ก 1. ก ก Notepad ก D:\ ก CreateFile ก ก ก ก ก Notepad 2. ก ก Visual Basic ก ก Standard EXE ก ก ก commandbutton Interface ก FileExists.. 12

13 3. ก ก ก / ก Form Caption ก FileExists CommandButton Name Command1 Caption ก FileExists 4. ก CommandButton ก View Code ก Public fso As New FileSystemObject Private Sub Command1_Click() 4 MsgBox fso.fileexists("d:\test.txt") 5 End Sub 5. ก ก ก ก ก <F5> ก ก ก ก ก commandbutton 1 ก 1.10 ก ก ก ก ก 1.11 ก ก ก ก ก FileExists ก ก ก ก FileExists MsgBox ก ก ก ก False ก ก ก ก ก True ก ก ก ก ก ก ก ก ก ก ก ก.. 13

14 GetFile ก ก ก ofilesysobj.getfile(filepath) ofilesysobj ก ก FilePath String ก 1. ก ก Notepad ก D:\ ก CreateFile ก ก ก ก ก Notepad 2. ก ก Visual Basic ก ก Standard EXE ก ก ก commandbutton ก GetFile.. 14

15 3. ก ก ก / ก Form Caption ก GetFile CommandButton Name Command1 Caption ก GetFile 4. ก CommandButton ก View Code ก Public fso As New FileSystemObject Private Sub Command1_Click() MsgBox fso.getfile("d:\test.txt") End Sub 5. ก ก ก ก ก <F5> ก ก ก ก ก commandbutton ก ก ก ก GetFile ก - ก ก ก ก ก ก Error Run-time error '53' File not found ก GetFile ก ก ก ก ก App.Path ก ก ก ก Run ( ก ก ก ก ).. 15

16 GetFileName ก ก ofilesysobj.getfilename (Path) ofilesysobj ก ก FilePath String. ก 1. ก ก Notepad ก D:\ ก CreateFile ก ก ก ก ก Notepad 2. ก ก Visual Basic ก ก Standard EXE ก ก ก commandbutton ก GetFileName.. 16

17 3. ก ก ก / ก Form Caption ก GetFileName CommandButton Name Command1 Caption ก GetFileName 4. ก CommandButton ก View Code ก Public fso As New FileSystemObject Private Sub Command1_Click() MsgBox fso.getfilename("d:\test.txt") End Sub 5. ก ก ก ก ก <F5> ก ก ก ก ก commandbutton ก ก ก ก GetFilename ก ก ก ก ก ก ก ก ก ก ก ก ก ก.. 17

18 ก ก ก ก Scilab ก file ก ก ก unit = file('open', filename, [status]) 'open' ก ก ก filename filename ก ก status ก ก 4 º "new" ก º "old" ก º "unknown" ก ก º "scratch" ก ก ก unit ก filename ก ก ก ก ก file('close', unit) ก ก ก ก fprintf ก ก ก ก ก ก fprintf(file, format, value_1,..., value_n) file ก ก value_1 - n format ก value_i - n ก ก.. 18

19 1.1 ก SCILAB %d (signed integer) %u (unsigned integer) %x %X ก %f %e กก %c ก %s ก 1.2 ก ก SCILAB ก \n \t (tab) \v \b ก ก \r return ก ก ก Enter \f \a ก \\ \ (backslash) \ (single quote) \ (double quote) \?? (question mark) \ooo ก ก ooo \xhh ก ก ก hh.. 19

20 ก 1.18 ก Notepad ก ก results.txt -->u = file('open', 'results.txt', 'unknown'); -->for t = 0:%pi/10:%pi --> fprintf(u, 'time = %6.3f value = %6.3f\n', t, cos(t)); -->end -->file('close', u); ก Scilab ก results.txt ก ก ก fprintf ก ก Notepad WordPad results.txt ก ก 1.18 exec ก ก ก ก Scilab ก exec(path) file.. 20

21 ก -->exec(' test.sci'); savematfile ก ก binary ASCII savematfile('filename', 'var1', 'var2') filename var1 ก -->savematfile('001.txt','ans') xs2gif ก กก ก.gif xs2gif(win_num,filen) win_num ก ก 0 N filen ก ก ก.gif ก -->xs2gif(0,'001.gif').. 21

22 Chapter 2 ก ก Visual Basic Scilab ก Visual Basic ก ก Scilab ก ก Log 2 ก ก ก ก 1. ก Visual Basic ก Scilab 2. ก Visual Basic ก ก Scilab 3. ก Visual Basic ก ก ก ก Scilab Block Diagram ก ก Visual Basic ก ก Scilab ก ก ก ก.. 22

23 1. ก ก Visual Basic ก Scilab ก ก Visual Basic ก Scilab ก ก ก 2 (Base) ก Textbox ก Scilab ก log2(x) log 2 x ก ก ก ก ก ก ก ก ก (ก " " กก ) ก x b n x = b n log b (x) = n Log 2 (128) = 7 2 x 2 x 2 x 2 x 2 x 2 x 2 = 128 ก ก ก 2 (Log2) 1.1. ก ก Microsoft scripting Runtime ก ก 2.1 ก ก Textbox ก Scilab ก 2.1 ก Log

24 1.3. View Code General ก ก FileSystemObject Public fso New FileSystemObject ก ก ก ก ก Code General 1.4. ก ก ก / ก CommandButton Name Command1 Caption Text1 Text N/A 1.5. ก ก Command1_Click() Code ก Public fso As New FileSystemObject ก ก Private Sub Command1_Click() Dim strm As TextStream ก TextStream Set strm = fso.createtextfile("d:\test.sce", True) ก ก strm strm.writeline ("log2(" & Text1.Text & ")") ก strm.close ก End Sub ก 1.6. ก Run ก ก ก F5 ก 2.3 ก 128 ก 1 ก ก test.sce D: ก SciPad Notepad ก log2(128)

25 ก 2.3 ก ก ก test.sce ก 2.4 test.sce ก D:\ test.sce 2.5 test.sce ก SciPad Notepad ก ก ก ก ก ก CreateTextFile ก String. ก ก ก ก Write ก String ก ก ก ก ก ก ก.. 25

26 2. ก Visual Basic ก ก Scilab ก ก ก ก ก ก Scilab ก 2.1 ก Shell ก Scilab f ก ก Scilab ( ก help ก Scilab ) ก Window Style ก (vbhide) 9 Shell "C:\Program Files\scilab-4.1.1\bin\Scilex.exe -f D:\test.sce", vbhide test.sce 2.2 ก ก ก ก Scilab ก savematfile ก ก ก ก ก ก ก ก Command1_Click() ก 6 ก 8 strm.writeline ("savematfile('001.txt','ans')") 9 test.sce Public fso As New FileSystemObject ก ก Private Sub Command1_Click() Dim strm As TextStream ก TextStream Set strm = fso.createtextfile("d:\test.sce", True) ก ก strm strm.writeline ("log2(" & Text1.Text & ")") ก strm.writeline ("savematfile('001.txt','ans')") ก 001.txt strm.close ก Shell "C:\Program Files\scilab-4.1.1\bin\Scilex.exe -f D:\test.sce", vbhide test.sce End Sub ก 2.3 ก Run ก ก ก F5 ก ก 2.6 test.sce ก 001.txt 2.7 ก ก Notepad Log

27 ก 2.6 ก ก ก 2.7 test.sce ก SciPad Notepad 2.8 test.sce ก Notepad ก ก ก ก ก ก ก Visual Basic file fprintf ก ก ก ก ก ก Scilab.. 27

28 3. ก Visual Basic ก ก ก ก Scilab กก ก 2 ก savematfile ก ก ก ก (String) ก ก ก ก ก Val ก Visual Basic ก ก ก ก Scilab 3.1 ก ก ก ก ก Scilab ก ก textbox 1 ก 1 ก ก Timer 1 ก 2.9 ก Timer1 Interval 3000 ( 3 ) Enabled ก False textbox Timer 2.10 ก

29 3.2 ก ก ก / ก CommandButton Name Command1 Caption Timer1 Enabled False Interval 3000 Text2 Text N/A 3.3 ก View Code ก Public fso As New FileSystemObject ก ก Private Sub Command1_Click() Dim strm As TextStream ก TextStream Set strm = fso.createtextfile("d:\test.sce", True) ก ก strm strm.writeline ("log2(" & Text1.Text & ")") ก strm.writeline ("savematfile('001.txt','ans','-double')") ' ก 001.txt strm.close ก Shell "C:\Program Files\scilab-4.1.1\bin\Scilex.exe -f D:\test.sce", vbhide test.sce Timer1.Enabled = True ก Text2.Text = "" text2 End Sub ก Private Sub Timer1_Timer() Dim strm2 As TextStream ก TextStream If Timer1.Interval = 3000 Then Timer ก 3000 Set strm2 = fso.opentextfile("d:\001.txt") ก ก strm2 Do Until strm2.atendofstream Text2 = Text2 & Val(strm2.ReadLine) ก text2 Loop End If Timer1.Enabled = False ก End Sub ก.. 29

30 ก ก run ก ก ก ก <F5> ก 128 ก ก 1 ก กก Scilab ก ก (Timer) ก CPU (Central Processing Unit) ก ก ก ก ก Visual Basic Scilab ก ก ก ก ก ก ก ก ก ก ก

31 Chapter 3 ก ก ก ก ก Chapter 1 Chapter 2 ก ก ก ก ก ก ก ก ก ก Scilab ก ก ก SCILAB ( ) ก ก ก ก ก Scilab ก (Tool) ก Scilab ก ก ก ก ก 1. ก det ก 2x2 2. ก ก 3. ก ก ก 1. ก det ก 2x2 ก ก 1. ก ก Visual Basic ก ก Standard EXE ก ก ก ก ก det ก.. 31

32 2. ก ก ก / ก Form Caption ก det ก CommandButton Name Command1 Caption Text1 text N/A Text2 text N/A Text3 text N/A Text4 text N/A Text5 text N/A Timer1 Enabled False Interval 3000 Label1 Caption A = Label2 Caption det(a) = 3. ก View Code ก Public fso As New FileSystemObject Private Sub Command1_Click() Dim strm As TextStream Set strm = fso.createtextfile( D:\matrix.sce, True) strm.writeline ("cd D:\") strm.writeline ("A=[" & Text1 & " " & Text2 & " ; " & Text3 & " " & Text4 & "]") strm.writeline ("ans = det(a)") strm.writeline ("savematfile('om.txt','ans','-double')") strm.writeline ("exit") strm.close Shell "C:\Program Files\scilab-4.1.1\bin\Scilex.exe -f D:\matrix.sce", vbhide Timer1.Enabled = True Text5.Text = "" End Sub Private Sub Timer1_Timer().. 32

33 Dim strm2 As TextStream If Timer1.Interval = 3000 Then Set strm2 = fso.opentextfile("d:\om.txt") Do Until strm2.atendofstream Text5 = Text5 & Val(strm2.ReadLine) Loop Timer1.Enabled = False End If End Sub 1 ก ก ก fso 3 15 ก ก ก ก matrix.sce 4 ก ก 2x2 ก det ก ก ก ก om.txt 9 ก ก ก ก Scilab exit 10 ก 11 ก ก shell 12 Timer1 text5.txt Timer1 ก ก textstream strm2 17 ก Timer1.interval = 3000 ก om.txt 18 ก ก text5 19, ก ก 22 ก ก ก ก ก run ก <F5> ก ก ก 2 x 2 A = ก ก ก matrix.sce ก Scilab กก ก ก om.txt ก ก ก

34 3.2 ก ก ก det ก 2. ก ก 3.3 ก ก 1. ก ก Visual Basic ก ก Standard EXE ก ก ก ก ก Scilab กก ก ก (Control) ก 1 กก webbrowser ก ก ก Components ก ก Project ก Components ก Ctrl + T 3.4 ก components ก ก Microsoft Internet Controls 3.5 webbrowser ToolBox 3.6 ก ก ก ก

35 ก ก components ก Visual Basic 3.5 Components ก ก control.. 35

36 3.6 webbrowser ToolBox 3.7 ก ก ก.. 36

37 3.8 ก TextBox2 2. ก ก ก / ก Form Caption ก ก CommandButton Name Command1 Caption Text1 text N/A MultLine True Text2 ScrollBars 2 - Vertical text N/A Timer1 Enabled False Interval 3000 Label1 Caption y = Label2 Caption x = ก ก ก ก ก x = 0 3 ก textbox ก textbox ก ก ก textbox ก ก ก Properties ก ก ก MultLine ก true ScrollBars ก 2 Vertical 3.8 ก textbox scrollbars

38 3. ก View Code ก Code Visual Basic 1 Public fso As New FileSystemObject 2 Private Sub Command1_Click() 3 Dim strm As TextStream 4 clear 5 Set strm = fso.createtextfile(app.path & "\poly.sce", True) 6 strm.writeline ("cd '" & App.Path & "' ") 7 strm.writeline ("exec('pohtml.sci',-1);") 8 strm.writeline ("x= poly(0,'x')") 9 strm.writeline ("y = " & Text1.Text & "") 10 strm.writeline ("result= roots(y)") 11 strm.writeline ("savematfile('op.txt','result','-double')") 12 strm.writeline ("y2 = pol2tex(y)") 13 strm.writeline ("pohtml(y2,'y','fp.html');") 14 strm.writeline ("exit") 15 strm.close 16 Shell "C:\Program Files\scilab-4.1.1\bin\scilex.exe -f " & App.Path & "\poly.sce", vbhide 17 Timer1.Enabled = True 18 End Sub 19 Private Sub Form_Load() 20 clear 21 End Sub 22 Private Sub Timer1_Timer() 23 Dim strm2 As TextStream 24 If Timer1.Interval = 3000 Then 25 Set strm2 = fso.opentextfile(app.path & "\op.txt") 26 Do Until strm2.atendofstream 27 Text2.Text = Text2.Text & Format(strm2.ReadLine, " ") 28 Text2.Text = Text2.Text & vbcrlf 29 Loop 30 WebBrowser1.Navigate "" & App.Path & "\" & "fp.html" 31 Timer1.Enabled = False.. 38

39 End If End Sub Public Function clear() Text2.Text = "" WebBrowser1.Navigate "about:blank" End Function 1 ก ก ก ก ก 2 18 ก ก poly.sce 5 ก ก root 10 ก ก ก pol2tex 12 poly text ก ก pohtml.sci ก ก pohtml 13 ก ก ก Scilab 14 ก 15 ก ก shell 16 Timer Timer1 25 ก ก op.txt ก ก op.txt text2 30 ก (HTML) ก ก Scilab 31 ก Timer ก ก textbox2 WebBrowser1 ก 4. ก ก ก ก ก ก ก <F5> ก ก 2-3*x + x^ ก ก.. 39

40 3.10 Code Scilab ก 5. ก ก ก ก ก ก ก (Arithmetic operator) ก ก + ก ก - ก * ก / ก \ ก ^ กก 3x 2 +1 => 3*x^2+1-2x 4 +3x 2 +x-5 => -2*x^4 + 3*x^2 +x-5 x 5 +3x 3-2x-1 => x^5+3*x^3-2*x-1 10x 13-9x 11 +x 7-10x+1 => 10*x^13-9*x^11+x^7-10*x

41 3.11 ก ก Editor ก SciPad 3.12 ก SciPad.. 41

42 ก ก กก visual Basic ก ก ก Scilab ก ก.html ก HTML ก ก < กก > HTML ( tag) ก กก sup ก <sup> </sup> ก pohtml.sci ก ก ก ก Visual Basic Pohtml.sci 1 function [] = pohtml(stext,stype,fhtml) 2 fid = mopen(fhtml, 'w'); 3 mfprintf(fid,"<html>\n<head>\n"); 4 mfprintf(fid,"</head>\n"); 5 mfprintf(fid,"<body>\n"); 6 mfprintf(fid,"%s = ",stype); 7 mfprintf(fid,"<br> "); 8 Lstext = length(stext); 9 for i = 1:Lstext 10 L2stext = part(stext,i) 11 if L2stext =="^" then 12 elseif L2stext =="{" then 13 mfprintf(fid,"<sup>"); 14 elseif L2stext =="}" then 15 mfprintf(fid,"</sup>"); 16 elseif L2stext <> "\" & L2stext <> "*" then 17 mfprintf(fid,"%s",l2stext); 18 end 19 end 20 mfprintf(fid,"<\body>\n"); 21 mfprintf(fid,"<\html>\n"); 22 mclose(fid); 23 endfunction.. 42

43 3. ก ก ก ก ก 1. ก ก Visual Basic ก ก Standard EXE ก ก ก ก ก (temporary Files) ก Visual Basic ก GIF ก ก Visual Basic PictureBox ก ก ก ก ก ก 2. ก ก ก / ก Form Caption ก ก ก CommandButton Name Command1 Caption Text1 text N/A Text2 text N/A.. 43

44 Text3 text N/A Text4 text N/A Picture1 N/A N/A Timer1 Enabled False Interval 3000 Label1 Caption x = Label2 Caption Y(x) = 3. ก View Code ก Option Explicit Dim fso As New FileSystemObject Dim address As String Dim strm As TextStream Private Sub Command1_Click() Set strm = fso.createtextfile(app.path & "\graphic.sce", True) strm.writeline ("cd '" & App.Path & "' ") strm.write ("x=" & Text1.Text & ":" & Text2.Text & ":" & Text3.Text & ";" & vbcrlf) strm.write ("y=" & Text4.Text & ";" & vbcrlf) strm.write ("plot(x,y)" & ";" & vbcrlf) strm.write ("xs2gif(0,'001.gif');" & vbcrlf) strm.write ("exit") strm.close Shell "C:\Program Files\scilab-4.1.1\bin\Scilex.exe -f " & App.Path & "\graphic.sce", vbhide Timer1.Enabled = True End Sub Private Sub Timer1_Timer() If Timer1.Interval = 3000 Then Picture1 = LoadPicture(App.Path & "\001.gif") Timer1.Enabled = False End If End Sub.. 44

45 1 ก ก ก ก ก 2 16 ก ก graphic.sce 6 ก plot 10 ก กก GIF xs2gif 11 ก ก ก Scilab 12 ก ก 13 shell 14 Timer Timer1 ก ก PictureBox loadpicture 19 ก Timer ก ก run ก ก ก ก <F5> ก ก x = -10 : 0.01 : 10 y(x) = 2*x^3-3*x^2-2*x ก ก ก ก ก.. 45

46 3.15 ก ก ก x ก ก Scilab ก ก ก ก ก ก กก ก ก ก ก Error.. 46

47 ก [1] Ron Petrusha, Mary Anne Weeks Mayo, VB & VBA IN A NUTSHELL October [2], ก Visual Basic 6,, [3].., ก SCILAB ( 2), ก,

Chapter 14 Sequential Files

Chapter 14 Sequential Files CHAPTER 14 SEQUENTIAL FILES 1 Chapter 14 Sequential Files (Main Page) 14.1 DirListBox, FileListBox, and DriveListBox toolbox icons. 14.2 Some DirListBox, FileListBox, and DriveListBox common properties

More information

Visual Basic 6 Lecture 7. The List Box:

Visual Basic 6 Lecture 7. The List Box: The List Box: The function of the List Box is to present a list of items where the user can click and select the items from the list or we can use the List Box control as a simple memory to save data.

More information

Programming with visual Basic:

Programming with visual Basic: Programming with visual Basic: 1-Introdution to Visual Basics 2-Forms and Control tools. 3-Project explorer, properties and events. 4-make project, save it and its applications. 5- Files projects and exercises.

More information

Angel International School - Manipay 1 st Term Examination November, 2015

Angel International School - Manipay 1 st Term Examination November, 2015 Angel International School - Manipay 1 st Term Examination November, 2015 Information & Communication Technology Grade 11A & C Duration: 3.00 Hours Part 1 Choose the most appropriate answer. 1) Find the

More information

Upgrading Applications

Upgrading Applications C0561587x.fm Page 77 Thursday, November 15, 2001 2:37 PM Part II Upgrading Applications 5 Your First Upgrade 79 6 Common Tasks in Visual Basic.NET 101 7 Upgrading Wizard Ins and Outs 117 8 Errors, Warnings,

More information

Start Visual Basic. Session 1. The User Interface Form (I/II) The Visual Basic Programming Environment. The Tool Box (I/II)

Start Visual Basic. Session 1. The User Interface Form (I/II) The Visual Basic Programming Environment. The Tool Box (I/II) Session 1 Start Visual Basic Use the Visual Basic programming environment Understand Essential Visual Basic menu commands and programming procedure Change Property setting Use Online Help and Exit Visual

More information

Introduction to Computer Use II

Introduction to Computer Use II Winter 2006 (Section M) Topic F: External Files and Databases Using Classes and Objects Friday, March 31 2006 CSE 1530, Winter 2006, Overview (1): Before We Begin Some administrative details Some questions

More information

11-1 11-1.1 11-1.2 11-2 11-2.1 11-2.2 108 II 11-1 Timer 11-1.1 Windows 11-1 11-1 Visual Basic Animation Animation 11 109 Animation Animation RLE AVI AVI 11-2 Visual Basic Animation / Microsoft Windows

More information

Angel International School - Manipay 1 st Term Examination November, 2015

Angel International School - Manipay 1 st Term Examination November, 2015 Grade 10 Angel International School - Manipay 1 st Term Examination November, 2015 Information & Communication Technology Duration: 3.00 Hours Part 1 Choose the appropriate answer 1) Find the correct type

More information

HELP - VB TIPS. ANIMATE AN IMAGE BOX Insert a module. In this module, create a global variable: Global x

HELP - VB TIPS. ANIMATE AN IMAGE BOX Insert a module. In this module, create a global variable: Global x HELP - VB TIPS Load an image to an image box from a certain folder If you use this method, won t work on N:\ To load an image to a image control Image1.Picture = LoadPicture("H:\MyVBfolder\stop.gif") Load

More information

NATIONAL DIPLOMA IN COMPUTER TECHNOLOGY

NATIONAL DIPLOMA IN COMPUTER TECHNOLOGY UNESCO-NIGERIA TECHNICAL & VOCATIONAL EDUCATION REVITALISATION PROJECT-PHASE II NATIONAL DIPLOMA IN COMPUTER TECHNOLOGY OOBASIC/VISUAL BASIC PROGRAMMING COURSE CODE: COM 211 YEAR I SEMESTER II PRACTICAL

More information

2Practicals Visual Basic 6.0

2Practicals Visual Basic 6.0 2Practicals Visual Basic 6.0 Practical 1: 1. Navigation of Visual Basic Integrated Development Environment The Visual Basic IDE is made up of a number of components Menu Bar Tool Bar Project Explorer Properties

More information

Visual Basic

Visual Basic 12-1 12-2 12-3 12-1.1 12-1.2 12-2.1 12-2.2 12-3.1 12-3.2 12-4 12-5 12-4.1 12-4.2 12-5.1 12-5.2 140 II 12-1 data file 12-1.1 record field 4 12-1 4 12 141 12-1... 12-1.2 sequential file random file binary

More information

University of Technology Laser & Optoelectronics Engineering Department Visual basic Lab.

University of Technology Laser & Optoelectronics Engineering Department Visual basic Lab. DriveListBox Control, DirListBox Control, and FileListBox Control CommonDialog Control 1 2 DriveListBox Control disk drive Important Properties object.drive [= drive] Drive Floppy disks "a:" or "b:", and

More information

Las Vegas, Nevada, December 3 6, Kevin Vandecar. Speaker Name:

Las Vegas, Nevada, December 3 6, Kevin Vandecar. Speaker Name: Las Vegas, Nevada, December 3 6, 2002 Speaker Name: Kevin Vandecar Course Title: Introduction to Visual Basic Course ID: CP11-3 Session Overview: Introduction to Visual Basic programming is a beginning

More information

Object Oriented Programming with Visual Basic.Net

Object Oriented Programming with Visual Basic.Net Object Oriented Programming with Visual Basic.Net By: Dr. Hossein Hakimzadeh Computer Science and Informatics IU South Bend (c) Copyright 2007 to 2015 H. Hakimzadeh 1 What do we need to learn in order

More information

Contents Introduction Getting Started Visual Basic Form Configuration Entering the VB Code

Contents Introduction Getting Started Visual Basic Form Configuration Entering the VB Code Your comments and suggestions on the operation of this software are welcome. Please address them to: ICONICS 100 Foxborough Blvd. Foxborough, MA 02035 Tel: 508-543-8600 Fax: 508-543-1503 E-mail: support@iconics.com

More information

An Introduction to MATLAB

An Introduction to MATLAB An Introduction to MATLAB Day 1 Simon Mitchell Simon.Mitchell@ucla.edu High level language Programing language and development environment Built-in development tools Numerical manipulation Plotting of

More information

Download the files from you will use these files to finish the following exercises.

Download the files from  you will use these files to finish the following exercises. Exercise 6 Download the files from http://www.peter-lo.com/teaching/x4-xt-cdp-0071-a/source6.zip, you will use these files to finish the following exercises. 1. This exercise will guide you how to create

More information

PROGRAMMING LANGUAGE 2 (SPM3112) NOOR AZEAN ATAN MULTIMEDIA EDUCATIONAL DEPARTMENT UNIVERSITI TEKNOLOGI MALAYSIA

PROGRAMMING LANGUAGE 2 (SPM3112) NOOR AZEAN ATAN MULTIMEDIA EDUCATIONAL DEPARTMENT UNIVERSITI TEKNOLOGI MALAYSIA PROGRAMMING LANGUAGE 2 (SPM3112) INTRODUCTION TO VISUAL BASIC NOOR AZEAN ATAN MULTIMEDIA EDUCATIONAL DEPARTMENT UNIVERSITI TEKNOLOGI MALAYSIA Topics Visual Basic Components Basic Operation Screen Size

More information

DATABASE AUTOMATION USING VBA (ADVANCED MICROSOFT ACCESS, X405.6)

DATABASE AUTOMATION USING VBA (ADVANCED MICROSOFT ACCESS, X405.6) Technology & Information Management Instructor: Michael Kremer, Ph.D. Database Program: Microsoft Access Series DATABASE AUTOMATION USING VBA (ADVANCED MICROSOFT ACCESS, X405.6) AGENDA 3. Executing VBA

More information

Developing Motion Systems in Measurement Studio for Visual Basic

Developing Motion Systems in Measurement Studio for Visual Basic Application Note 176 Developing Motion Systems in Measurement Studio for Visual Basic Introduction With the Motion Control Module for Measurement Studio, you can develop motion control applications using

More information

Function: function procedures and sub procedures share the same characteristics, with

Function: function procedures and sub procedures share the same characteristics, with Function: function procedures and sub procedures share the same characteristics, with one important difference- function procedures return a value (e.g., give a value back) to the caller, whereas sub procedures

More information

Visual Basic. The Integrated Development Environment. Menu Bar

Visual Basic. The Integrated Development Environment. Menu Bar Visual Basic Visual Basic is initiated by using the Programs option > Microsoft Visual Basic 6.0 > Visual Basic 6.0. Clicking the Visual Basic icon, we can view a copyright screen enlisting the details

More information

Overview About KBasic

Overview About KBasic Overview About KBasic The following chapter has been used from Wikipedia entry about BASIC and is licensed under the GNU Free Documentation License. Table of Contents Object-Oriented...2 Event-Driven...2

More information

The Control Properties

The Control Properties The Control Properties Figure Before writing an event procedure for the control to response to a user's input, you have to set certain properties for the control to determine its appearance and how it

More information

Using Visual Basic Studio 2008

Using Visual Basic Studio 2008 Using Visual Basic Studio 2008 Recall that object-oriented programming language is a programming language that allows the programmer to use objects to accomplish a program s goal. An object is anything

More information

(0,0) (600, 400) CS109. PictureBox and Timer Controls

(0,0) (600, 400) CS109. PictureBox and Timer Controls CS109 PictureBox and Timer Controls Let s take a little diversion and discuss how to draw some simple graphics. Graphics are not covered in the book, so you ll have to use these notes (or the built-in

More information

Scilab Programming. The open source platform for numerical computation. Satish Annigeri Ph.D.

Scilab Programming. The open source platform for numerical computation. Satish Annigeri Ph.D. Scilab Programming The open source platform for numerical computation Satish Annigeri Ph.D. Professor, Civil Engineering Department B.V.B. College of Engineering & Technology Hubli 580 031 satish@bvb.edu

More information

PROGRAMATICALLY STARTING AND STOPPING AN SAP XMII UDS EXECUTABLE INSTANCE

PROGRAMATICALLY STARTING AND STOPPING AN SAP XMII UDS EXECUTABLE INSTANCE SDN Contribution PROGRAMATICALLY STARTING AND STOPPING AN SAP XMII UDS EXECUTABLE INSTANCE Summary Some data sources run as executable programs which is true of most SCADA packages. In order for an SAP

More information

SAULT COLLEGE OF APPLIED ARTS & TECHNOLOGY SAULT STE MARIE, ON COURSE OUTLINE

SAULT COLLEGE OF APPLIED ARTS & TECHNOLOGY SAULT STE MARIE, ON COURSE OUTLINE SAULT COLLEGE OF APPLIED ARTS & TECHNOLOGY SAULT STE MARIE, ON COURSE OUTLINE Course Title: Introduction to Visual Basic Code No.: Semester: Three Program: Computer Programming Author: Willem de Bruyne

More information

Getting started 7. Setting properties 23

Getting started 7. Setting properties 23 Contents 1 2 3 Getting started 7 Introducing Visual Basic 8 Installing Visual Studio 10 Exploring the IDE 12 Starting a new project 14 Adding a visual control 16 Adding functional code 18 Saving projects

More information

Reading and Writing Files. Keeping Data

Reading and Writing Files. Keeping Data Reading and Writing Files Keeping Data Why do we use files? For permanently storing data. For dealing with information too large to fit in memory. Sequential Access Files Think of files as being stored

More information

Tools for the VBA User

Tools for the VBA User 11/30/2005-3:00 pm - 4:30 pm Room:Mockingbird 1/2 [Lab] (Swan) Walt Disney World Swan and Dolphin Resort Orlando, Florida R. Robert Bell - MW Consulting Engineers and Phil Kreiker (Assistant); Darren Young

More information

17. Introduction to Visual Basic Programming

17. Introduction to Visual Basic Programming 17. Introduction to Visual Basic Programming Visual Basic (VB) is the fastest and easiest way to create applications for MS Windows. Whether you are an experienced professional or brand new to Windows

More information

PROGRAM 1: SIMPLE CALCULATOR

PROGRAM 1: SIMPLE CALCULATOR PROGRAM 1: SIMPLE CALCULATOR Option Explicit Dim operand1 As Double, operand2 As Double Dim op1 As Double, op2 As Double Dim operator As String Dim cleardisplay As Boolean Private Sub Cmdclear_Click()

More information

Preview from Notesale.co.uk Page 3 of 43

Preview from Notesale.co.uk Page 3 of 43 Drawbacks: 1. Costly tool 2. All the areas can t be automated. Types of Automated Tool: Automated tools can be broadly divided into 3 types: 1. Functional Tools: QTP,Selenium,Win Runner, 2. Management

More information

CMPT 110 MIDTERM OCTOBER 18, 2001

CMPT 110 MIDTERM OCTOBER 18, 2001 CMPT 110 MIDTERM OCTOBER 18, 2001 1 What will be displayed when the command button is clicked? 7% Level of difficulty 7 (out of 10) Assume there is a command button called cmdbutton Assume there is a picturebox

More information

The FileSystemObject Object. Active Server Pages

The FileSystemObject Object. Active Server Pages The FileSystemObject Object Active Server Pages Objectives In this chapter, you will: Describe a drive, a folder, and a file Describe and use the different objects in the FileSystemObject object Describe

More information

2-26 Learn Visual Basic 6.0

2-26 Learn Visual Basic 6.0 2-26 Learn Visual Basic 6.0 cmdcompute Click Event: Private Sub cmdcompute_click() Dim Mean As Single Dim StdDev As Single txtinput.setfocus Make sure there are at least two values If NumValues < 2 Then

More information

Textbook. Topic 8: Files and Exceptions. Files. Types of Files

Textbook. Topic 8: Files and Exceptions. Files. Types of Files Textbook Topic 8: Files and A common mistake that people make when trying to design something completely foolproof is to underestimate the ingenuity of complete fools. -Douglas Adams 1 Strongly Recommended

More information

Visual Basic.NET. 1. Which language is not a true object-oriented programming language?

Visual Basic.NET. 1. Which language is not a true object-oriented programming language? Visual Basic.NET Objective Type Questions 1. Which language is not a true object-oriented programming language? a.) VB.NET b.) VB 6 c.) C++ d.) Java Answer: b 2. A GUI: a.) uses buttons, menus, and icons.

More information

Lab 5a Shell Script Lab 4 Using Arithmetic Operators in shell script

Lab 5a Shell Script Lab 4 Using Arithmetic Operators in shell script Lab 5a Shell Script Lab 4 Using Arithmetic Operators in shell script Objective Upon completion of this lab, the student will be able to use arithmetic operators in Linux shell script. Scenario The student

More information

( ) 1.,, Visual Basic,

( ) 1.,, Visual Basic, ( ) 1. Visual Basic 1 : ( 2012/2013) :. - : 4 : 12-14 10-12 2 http://www.institutzamatematika.com/index.ph p/kompjuterski_praktikum_2 3 2 / ( ) 4 90% 90% 10% 90%! 5 ? 6 "? : 7 # $? - ( 1= on 0= off ) -

More information

Tech-Talk Using the PATROL Agent COM Server August 1999 Authored By: Eric Anderson

Tech-Talk Using the PATROL Agent COM Server August 1999 Authored By: Eric Anderson Tech-Talk Using the PATROL Agent COM Server August 1999 Authored By: Eric Anderson Introduction Among the many new features of PATROL version 3.3, is support for Microsoft s Component Object Model (COM).

More information

Programming 1. Script files. help cd Example:

Programming 1. Script files. help cd Example: Programming Until now we worked with Matlab interactively, executing simple statements line by line, often reentering the same sequences of commands. Alternatively, we can store the Matlab input commands

More information

Human Factors Engineering Short Course Topic: A Simple Numeric Entry Keypad

Human Factors Engineering Short Course Topic: A Simple Numeric Entry Keypad Human Factors Engineering Short Course 2016 Creating User Interface Prototypes with Microsoft Visual Basic for Applications 3:55 pm 4:55 pm, Wednesday, July 27, 2016 Topic: A Simple Numeric Entry Keypad

More information

Lecture 1: Hello, MATLAB!

Lecture 1: Hello, MATLAB! Lecture 1: Hello, MATLAB! Math 98, Spring 2018 Math 98, Spring 2018 Lecture 1: Hello, MATLAB! 1 / 21 Syllabus Instructor: Eric Hallman Class Website: https://math.berkeley.edu/~ehallman/98-fa18/ Login:!cmfmath98

More information

Creating a Dynamo with VBA Scripts

Creating a Dynamo with VBA Scripts Creating a Dynamo with VBA Scripts Creating a Dynamo with VBA 1 Table of Contents 1. CREATING A DYNAMO WITH VBA... 3 1.1 NAMING CONVENTIONS FOR DYNAMO OBJECTS...3 1.2 CREATING A DYNAMO...4 1.3 DESIGNING

More information

Programming in Mathematics. Mili I. Shah

Programming in Mathematics. Mili I. Shah Programming in Mathematics Mili I. Shah Starting Matlab Go to http://www.loyola.edu/moresoftware/ and login with your Loyola name and password... Matlab has eight main windows: Command Window Figure Window

More information

Text box. Command button. 1. Click the tool for the control you choose to draw in this case, the text box.

Text box. Command button. 1. Click the tool for the control you choose to draw in this case, the text box. Visual Basic Concepts Hello, Visual Basic See Also There are three main steps to creating an application in Visual Basic: 1. Create the interface. 2. Set properties. 3. Write code. To see how this is done,

More information

Building an Interactive Web Page with DataSocket

Building an Interactive Web Page with DataSocket Application Note 127 Introduction Building an Interactive Web Page with DataSocket Heather Edwards This application note explains how you can create an interactive Web page with which users can view data

More information

LAMPIRAN A : LISTING PROGRAM

LAMPIRAN A : LISTING PROGRAM LAMPIRAN A : LISTING PROGRAM 1. frmmenu.frm Dim CN As Connection Dim rshapus As Recordset Private Sub DfaHasil_Click() Call frmlap.cetak Private Sub Form_Load() Set CN = New ADODB.Connection CN.ConnectionString

More information

Introduction to Scicoslab

Introduction to Scicoslab Introduction to Scicoslab Introduction Scicoslab is an open source alternative for modeling and simulation of dynamical system Latest version 4.4 can be downloaded from http://www.scicoslab.org/ getting

More information

UNIT 1 INTRODUCTION TO VISUAL BASICS 6.0

UNIT 1 INTRODUCTION TO VISUAL BASICS 6.0 UNIT 1 INTRODUCTION TO VISUAL BASICS 6.0 The VB6 IDE (Integrated Development Environment) is a very simple and fully featured IDE. If you start out programming in VB6 you may end up being too spoiled to

More information

MATLAB BASICS. < Any system: Enter quit at Matlab prompt < PC/Windows: Close command window < To interrupt execution: Enter Ctrl-c.

MATLAB BASICS. < Any system: Enter quit at Matlab prompt < PC/Windows: Close command window < To interrupt execution: Enter Ctrl-c. MATLAB BASICS Starting Matlab < PC: Desktop icon or Start menu item < UNIX: Enter matlab at operating system prompt < Others: Might need to execute from a menu somewhere Entering Matlab commands < Matlab

More information

<excelunusual.com> Easy Zoom -Chart axis Scaling Using VBA - by George Lungu. <www.excelunusual.com> 1. Introduction: Chart naming: by George Lungu

<excelunusual.com> Easy Zoom -Chart axis Scaling Using VBA - by George Lungu. <www.excelunusual.com> 1. Introduction: Chart naming: by George Lungu Easy Zoom -Chart axis Scaling Using VBA - by George Lungu Introduction: - In certain models we need to be able to change the scale of the chart axes function of the result of a simulation - An Excel chart

More information

Lecture 1: Introduction to Scilab

Lecture 1: Introduction to Scilab Lecture 1: Introduction to Scilab Ahmed Kebaier kebaier@math.univ-paris13.fr HEC, Paris Outline 1 First Steps with Scilab 2 Outline 1 First Steps with Scilab 2 After launching Scilab, you can test the

More information

MATLAB Introduction to MATLAB Programming

MATLAB Introduction to MATLAB Programming MATLAB Introduction to MATLAB Programming MATLAB Scripts So far we have typed all the commands in the Command Window which were executed when we hit Enter. Although every MATLAB command can be executed

More information

PROJECT ELECTRONIC CONTROL GAS INJECTION SYSTEM

PROJECT ELECTRONIC CONTROL GAS INJECTION SYSTEM PROJECT ELECTRONIC CONTROL GAS INJECTION SYSTEM SOURCE CODE VISUAL BASIC Dim WR As Boolean Dim pw Dim data Dim oxg Public index1 Dim index2 Dim k Dim u Dim refd Dim datar1$(1000, 9) Dim c_data Dim A$(10)

More information

Files and File Management Scripts Logical Operations Conditional Statements

Files and File Management Scripts Logical Operations Conditional Statements Files and File Management Scripts Logical Operations Conditional Statements Files and File Management Matlab provides a group of commands to manage user files pwd: Print working directory displays the

More information

File Organization and Management

File Organization and Management 1 UNESCO-NIGERIA TECHNICAL & VOCATIONAL EDUCATION REVITALISATION PROJECT-PHASE II NATIONAL DIPLOMA IN COMPUTER TECHNOLOGY File Organization and Management YEAR II- SE MESTER I PRACTICAL Version 1: December

More information

Lab Sheet 4.doc. Visual Basic. Lab Sheet 4: Non Object-Oriented Programming Practice

Lab Sheet 4.doc. Visual Basic. Lab Sheet 4: Non Object-Oriented Programming Practice Visual Basic Lab Sheet 4: Non Object-Oriented Programming Practice This lab sheet builds on the basic programming you have done so far, bringing elements of file handling, data structuring and information

More information

Inno Setup Preprocessor: Introduction

Inno Setup Preprocessor: Introduction Page 1 of 12 Introduction Inno Setup Preprocessor (ISPP) is a preprocessor add-on for Inno Setup. The main purpose of ISPP is to automate compile-time tasks and decrease the probability of typos in your

More information

Agenda. First Example 24/09/2009 INTRODUCTION TO VBA PROGRAMMING. First Example. The world s simplest calculator...

Agenda. First Example 24/09/2009 INTRODUCTION TO VBA PROGRAMMING. First Example. The world s simplest calculator... INTRODUCTION TO VBA PROGRAMMING LESSON2 dario.bonino@polito.it Agenda First Example Simple Calculator First Example The world s simplest calculator... 1 Simple Calculator We want to design and implement

More information

= = 170

= = 170 Section 1 20 marks. In your exam, this section should take 20 minutes to complete. The questions below should take no more than 30 mins. 1. Convert the value 52 into an 8-bit binary number. Show your working.

More information

MATLAB Operators, control flow and scripting. Edited by Péter Vass

MATLAB Operators, control flow and scripting. Edited by Péter Vass MATLAB Operators, control flow and scripting Edited by Péter Vass Operators An operator is a symbol which is used for specifying some kind of operation to be executed. An operator is always the member

More information

CSCI 1061U Programming Workshop 2. C++ Basics

CSCI 1061U Programming Workshop 2. C++ Basics CSCI 1061U Programming Workshop 2 C++ Basics 1 Learning Objectives Introduction to C++ Origins, Object-Oriented Programming, Terms Variables, Expressions, and Assignment Statements Console Input/Output

More information

4 Working with WSH objects

4 Working with WSH objects 4 Working with WSH objects In the preceding chapter I have discussed a few basics of script programming. We have also used a few objects, methods and properties. In this chapter I would like to extend

More information

OPTIS Labs Tutorials 2013

OPTIS Labs Tutorials 2013 OPTIS Labs Tutorials 2013 Table of Contents Virtual Human Vision Lab... 4 Doing Legibility and Visibility Analysis... 4 Automation... 13 Using Automation... 13 Creation of a VB script... 13 Creation of

More information

Introduction to MATLAB

Introduction to MATLAB Introduction to MATLAB The Desktop When you start MATLAB, the desktop appears, containing tools (graphical user interfaces) for managing files, variables, and applications associated with MATLAB. The following

More information

NiceForm User Guide. English Edition. Rev Euro Plus d.o.o. & Niceware International LLC All rights reserved.

NiceForm User Guide. English Edition. Rev Euro Plus d.o.o. & Niceware International LLC All rights reserved. www.nicelabel.com, info@nicelabel.com English Edition Rev-0910 2009 Euro Plus d.o.o. & Niceware International LLC All rights reserved. www.nicelabel.com Head Office Euro Plus d.o.o. Ulica Lojzeta Hrovata

More information

How to modify convert task to use variable value from source file in output file name

How to modify convert task to use variable value from source file in output file name Page 1 of 6 How to modify convert task to use variable value from source file in output file name The default SolidWorks convert task add-in does not have support for extracting variable values from the

More information

CS 112: Intro to Comp Prog

CS 112: Intro to Comp Prog CS 112: Intro to Comp Prog Importing modules Branching Loops Program Planning Arithmetic Program Lab Assignment #2 Upcoming Assignment #1 Solution CODE: # lab1.py # Student Name: John Noname # Assignment:

More information

Visual Programming 1. What is Visual Basic? 2. What are different Editions available in VB? 3. List the various features of VB

Visual Programming 1. What is Visual Basic? 2. What are different Editions available in VB? 3. List the various features of VB Visual Programming 1. What is Visual Basic? Visual Basic is a powerful application development toolkit developed by John Kemeny and Thomas Kurtz. It is a Microsoft Windows Programming language. Visual

More information

Chapter 2.4: Common facilities of procedural languages

Chapter 2.4: Common facilities of procedural languages Chapter 2.4: Common facilities of procedural languages 2.4 (a) Understand and use assignment statements. Assignment An assignment is an instruction in a program that places a value into a specified variable.

More information

DATA MIRROR FOR PT USER S GUIDE. Multiware, Inc. Oct 9, 2012 *Changes are in red font*

DATA MIRROR FOR PT USER S GUIDE. Multiware, Inc. Oct 9, 2012 *Changes are in red font* DATA MIRROR FOR PT USER S GUIDE Multiware, Inc. Oct 9, 2012 *Changes are in red font* Table of Contents 1. Introduction...3 2. Prerequisites...4 3. MirrorControl Class...5 3.1 Methods...5 ClearALLPTData...5

More information

Chapter 24. Displaying Reports

Chapter 24. Displaying Reports 154 Student Guide 24. Displaying Reports Chapter 24 Displaying Reports Copyright 2001, Intellution, Inc. 24-1 Intellution Dynamics ifix 24. Displaying Reports Section Objectives This section continues

More information

A simple realization of the computer virus

A simple realization of the computer virus Information and Computer Security (2018) Original Research Article A simple realization of the computer virus Qinghong Liang,Shangying Cao,Zhengan Qi Information Engineering College, Panzhihua University

More information

AN Interfacing RSView with Mint Controllers

AN Interfacing RSView with Mint Controllers AN00138-001 - Interfacing RSView with Mint Controllers Overview ActiveX controls, formerly known as OLE controls or OCX controls, are components (or objects) that can be inserted into an application to

More information

Investintech.com Inc. Software Development Kit: PDFtoImage Function Library User s Guide

Investintech.com Inc. Software Development Kit: PDFtoImage Function Library User s Guide Investintech.com Inc. Software Development Kit: PDFtoImage Function Library User s Guide Novemebr 6, 2007 http://www.investintech.com Copyright 2007 Investintech.com, Inc. All rights reserved Adobe is

More information

Visual BASIC Creating an Application. Choose File New Project from the menu

Visual BASIC Creating an Application. Choose File New Project from the menu Creating an Application Choose File New Project from the menu Choose Windows Application Name the project Copyright Project Place a check in the Create directory for solution box Click Browse Choose and/or

More information

Step 1: Start a GUI Project. Start->New Project->Visual C# ->Windows Forms Application. Name: Wack-A-Gopher. Step 2: Add Content

Step 1: Start a GUI Project. Start->New Project->Visual C# ->Windows Forms Application. Name: Wack-A-Gopher. Step 2: Add Content Step 1: Start a GUI Project Start->New Project->Visual C# ->Windows Forms Application Name: Wack-A-Gopher Step 2: Add Content Download the Content folder (content.zip) from Canvas and unzip in a location

More information

Module-1 QTP Fundamentals. Module 2 Basics of QTP. Vasundhara Sector 14-A, Plot No , Near Vaishali Metro Station,Ghaziabad

Module-1 QTP Fundamentals. Module 2 Basics of QTP. Vasundhara Sector 14-A, Plot No , Near Vaishali Metro Station,Ghaziabad Module-1 QTP Fundamentals Why QTP? When do we use QTP? Which application will we test? Will be doing live applications testing Downloading and installing trial version Installing addins Installing script

More information

Introduction to C# Applications

Introduction to C# Applications 1 2 3 Introduction to C# Applications OBJECTIVES To write simple C# applications To write statements that input and output data to the screen. To declare and use data of various types. To write decision-making

More information

You can call the project anything you like I will be calling this one project slide show.

You can call the project anything you like I will be calling this one project slide show. C# Tutorial Load all images from a folder Slide Show In this tutorial we will see how to create a C# slide show where you load everything from a single folder and view them through a timer. This exercise

More information

Contents. LS-DYNA is a registered trademark of Livermore Software Technology Corporation. back to contents

Contents. LS-DYNA is a registered trademark of Livermore Software Technology Corporation. back to contents REPORTER 9.2 Contents Introduction to Reporter User interface menu layout Creating a template first steps Text Editing objects Variables D3PLOT images T/HIS graphs Lines, arrows, etc Library programs Ordering

More information

5/20/2007. Touring Essential Programs

5/20/2007. Touring Essential Programs Touring Essential Programs Employing fundamental utilities. Managing input and output. Using special characters in the command-line. Managing user environment. Surveying elements of a functioning system.

More information

Answer: C. 7. In window we can write code A. Immediate window B. Locals window C. Code editor window D. None of these. Answer: C

Answer: C. 7. In window we can write code A. Immediate window B. Locals window C. Code editor window D. None of these. Answer: C 1. Visual Basic is a tool that allows you to develop application in A. Real time B. Graphical User Interface C. Menu Driven D. None Of These 2. IDE stands for.. A. Internet Development Environment B. Integrated

More information

Context-sensitive Help

Context-sensitive Help USER GUIDE MADCAP DOC-TO-HELP 5 Context-sensitive Help Copyright 2018 MadCap Software. All rights reserved. Information in this document is subject to change without notice. The software described in this

More information

Data Acquisition over Ethernet using Serial Device Server - NPort 5210 PRL-TN

Data Acquisition over Ethernet using Serial Device Server - NPort 5210 PRL-TN Data Acquisition over Ethernet using Serial Device Server - NPort 5210 PRL-TN-2010-96 Data Acquisition over Ethernet using Serial Device Server - NPort 5210 PRL-TN-2010-96 Introduction 1 Serial Device

More information

Starting Out with Java: From Control Structures Through Objects Sixth Edition

Starting Out with Java: From Control Structures Through Objects Sixth Edition Starting Out with Java: From Control Structures Through Objects Sixth Edition Chapter 11 I/O File Input and Output Reentering data all the time could get tedious for the user. The data can be saved to

More information

Location of menu elements

Location of menu elements E Creating Menus Appendix E C5779 39147 Page 1 07/10/06--JHR In Visual Basic 2005, you use a MenuStrip control to include one or more menus in an application. You instantiate a MenuStrip control using

More information

IFA/QFN VBA Tutorial Notes prepared by Keith Wong

IFA/QFN VBA Tutorial Notes prepared by Keith Wong IFA/QFN VBA Tutorial Notes prepared by Keith Wong Chapter 5: Excel Object Model 5-1: Object Browser The Excel Object Model contains thousands of pre-defined classes and constants. You can view them through

More information

Crystal Reports. Overview. Contents. Using Crystal Reports Print Engine calls (API) in Microsoft Visual Basic

Crystal Reports. Overview. Contents. Using Crystal Reports Print Engine calls (API) in Microsoft Visual Basic Using Crystal Reports Print Engine calls (API) in Microsoft Visual Basic Overview Contents This document describes how to preview a report using Microsoft (MS) Visual Basic, by making direct API calls

More information

IS 320 Spring 96 Page 1 Exam 1. Please use your own paper to answer the following questions. Point values are shown in parentheses.

IS 320 Spring 96 Page 1 Exam 1. Please use your own paper to answer the following questions. Point values are shown in parentheses. IS 320 Spring 96 Page 1 Please use your own paper to answer the following questions. Point values are shown in parentheses. 1. (10) Consider the following segment of code: If txtansicode.text < "0" Or

More information

Unit 9 Spreadsheet development. Create a user form

Unit 9 Spreadsheet development. Create a user form Unit 9 Spreadsheet development Create a user form So far Unit introduction Learning aim A Features and uses Assignment 1 Learning aim B - Design a Spreadsheet Assignment 2 Learning aim C Develop and test

More information

2.1. Project Information and Protection Global Settings Working with Tags... 15

2.1. Project Information and Protection Global Settings Working with Tags... 15 2.1. Project Information and Protection... 1 2.2. Global Settings... 3 2.2.1. Languages...4 2.2.2. Font Templates...5 2.2.3. Picture Database...6 2.2.4. Sound Database...10 2.2.5. Text Database...12 2.3.

More information

CDS 32 Version 2.xx File Utilities

CDS 32 Version 2.xx File Utilities CDS 32 Version 2.xx File Utilities c2004 Pristine Systems, Inc. CONTENTS Addendum, 7 Addendum, Marking Multiple Selections, 7 Audio File Manager, 3 A Move, 3 M N E Network Audio Manager, 4 Exit, 4 R F

More information