BASICとVisual Basic

Similar documents
橡WINAPLI.PDF

untitled

コンピュータ概論

コンピュータ概論

橡vb_kikai0.PDF

B 5 (2) VBA R / B 5 ( ) / 34

Excel Excel Excel = Excel ( ) 1

2 X Y Y X θ 1,θ 2,... Y = f (X,θ 1,θ 2,...) θ k III 8 ( ) 1 / 39

My関数の作成演習問題集

Excel Excel Excel = Excel III 7 ( ) 1

Excel ではじめる数値解析 サンプルページ この本の定価 判型などは, 以下の URL からご覧いただけます. このサンプルページの内容は, 初版 1 刷発行時のものです.

untitled

94 expression True False expression FalseMSDN IsNumber WorksheetFunctionIsNumberexpression expression True Office support.office.com/ja-jp/ S

2X Y Y X θ 1, θ 2,... Y = f(x, θ 1, θ 2,...) θ k III 8 ( ) 1 / 39

Appendix A BASIC BASIC Beginner s All-purpose Symbolic Instruction Code FORTRAN COBOL C JAVA PASCAL (NEC N88-BASIC Windows BASIC (1) (2) ( ) BASIC BAS


D0050.PDF

PowerPoint プレゼンテーション

C++ ++ Wago_io.dll DLLDynamicLinkLibrary Microsoft VisualBasic Visual C Wago_io.dll Wago_io.dll Wago_io.dll WAGO_OpenCommPort WAGO_CloseCommPort WAGO_

工夫したエクセルの使い方

N88 BASIC 0.3 C: My Documents 0.6: 0.3: (R) (G) : enterreturn : (F) BA- SIC.bas 0.8: (V) 0.9: 0.5:

(Microsoft Word \203v\203\215\203O\203\211\203~\203\223\203O)


卒業論文.PDF

ルーレットプログラム

(J言語研究会 2007年2月14日)

KARACRIX

B Simon (Trump ) SimonU.pas SimonP.dpr Name FormSimon Caption Position podesktopcenter uses Windows, Messages, SysUtils,

CommandMatrix_8230E

csv csv

45 VBA Fortran, Pascal, C Windows OS Excel VBA Visual Basic Excel VBA VBA Visual Basic For Application Microsoft Office Office Excel VBA VBA Excel Acc

Lesson 1 1 EXVBA2000 Lesson01 Lesson01.xls 2

Microsoft Word 練習問題の解答.doc

ブロック パニック

08‘͆i”O“Z†j

sinfI2005_VBA.doc

Microsoft Word - VBA基礎(3).docx

受動的攻撃について

万年暦プログラム

D0090.PDF

3D回転体プログラム

回文作成支援プログラム

TOEIC

1. 入力画面

AccessVBA−‹ŠpŁÒ-flO“Z

LogisticaTRUCKServer-Ⅱ距離計算サーバ/Active-Xコントロール/クライアント 概略   

untitled

OS Windows Mac OS Windows Mac OS Windows XP Mac OS X OS Windows 95 Mac OS


Windows (L): D:\jyugyou\ D:\jyugyou\ D:\jyugyou\ (N): en2 OK 2

Canon Industrial Imaging Platform Vision Edition 使用説明書

2.2 Sage I 11 factor Sage Sage exit quit 1 sage : exit 2 Exiting Sage ( CPU time 0m0.06s, Wall time 2m8.71 s). 2.2 Sage Python Sage 1. Sage.sage 2. sa

第10回 コーディングと統合(WWW用).PDF

Tiny Basic for Windows 2 1 Tiny Basic for Windows Tiny Basic for Windows tbasic tbasic BASIC BASIC Visual Basic BASIC BASIC BASIC tbasic Help BASIC tb

回文作成支援プログラム

Title.PDF

高等学校学習指導要領

高等学校学習指導要領

3D回転体プログラム

D0020.PDF

万年暦プログラム

1 シミュレーションとは何か?

VB 資料 電脳梁山泊烏賊塾 音声認識 System.Speech の利用 System.Speech に依るディクテーション ( 音声を文字列化 ).NetFramework3.0 以上 (Visual Studio 2010 以降 ) では 標準で System.Speech が用意されて居るの


PowerPoint プレゼンテーション

Microsoft Word - …R…fi…s…–†[…^−î‚bII2004.doc

JavaとVisual Basicを使ったWebサービスの実装

PowerPoint プレゼンテーション

Microsoft PowerPoint - vp演習課題

橡実践Oracle Objects for OLE

MIFES Ver.7.0 マクロマニュアル

(Basic Theory of Information Processing) Fortran Fortan Fortan Fortan 1

情報処理 VB 音2

Microsoft Word - プログラミング基礎c.doc

D0120.PDF

Oracle Lite Tutorial

外国語としての英語の習得と運用能力向上に効果的なパーソナルコンピューター用学習ソフトウエアの開発

ProVisionaire Control V3.0セットアップガイド

untitled

n 第1章 章立ての部分は、書式(PC入門大見出し)を使います


Visual Studio2008 C# で JAN13 バーコードイメージを作成 xbase 言語をご利用の現場でバーコードの出力が必要なことが多々あります xbase 言語製品によっては 標準でバーコード描画機能が付加されているものもあるようで す C# では バーコードフォントを利用したりバー

PBASIC 2.5 PBASIC 2.5 $PBASIC directive PIN type New DEBUG control characters DEBUGIN Line continuation for comma-delimited lists IF THEN ELSE * SELEC

1. A0 A B A0 A : A1,...,A5 B : B1,...,B

MS-ExcelVBA 基礎 (Visual Basic for Application)

PowerPoint AppleScript


の包絡線を求めることになる 包絡線は一次式で表せるのでこのときの係数 ( 切片 ) を求 めればよいことになる この係数 ( 切片 ) が粘着力となる 包絡線はモールの応力円に外 接する直線であるため 包絡線の式は下記三式を解くことにより求めることができる 包絡線の式 Y=A1 X + B1 ---

2 1 F M m r G F = GMm r 2 (1.1) (1.1) (r = r ) F = GMmr r 3 (1.2) a F m F = kma k 1 F = ma (1.3) (1.2) (1.3) ma = GMmr r 3 (1.4)

VBAfiüŒåŁÒver2

PowerPoint プレゼンテーション

2 R : R R [ 1.1] [ 2.1] R R R plot() contour() 2

BRADY Worldwide, Inc. BRADY BRADY BRADY BMP 51 BRADY Worldwide, Inc. Microsoft Windows Microsoft BRADY 2011 BRADY Worldwide, Inc. All Rights Reserved

プログラミング演習

アプリケーション


9399-TOOLSGRJA

.NETプログラマー早期育成ドリル ~VB編 付録 文法早見表~

Microsoft PowerPoint - VBA解説1.ppt [互換モード]

Transcription:

Visual Basic

BASIC Visual Basic BASICBeginner's All purpose Symbolic Instruction Code Visual Basic Windows BASIC BASIC Visual Basic Visual Basic End Sub

.Visual Basic Visual Basic VB 1-1.Visual Basic VB [] [] [] [VisualBasic] EXE 1-2.

Visual Basic VB 1-3.Visual Basic Visual Basic [(F)] [Microsoft Visual Basic (X)]

. Windows Visual Basic 2-1. VB EXE Form1

2-2. 1. 2. 3. 4. 5. 6. 7. ON/OFF 8. 1 9. 10. 1 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. OLE 2-3. Form1 Form [] [] 1 VB

[] [] 2-4. Label Form1 Form1 Label1 Label Caption Caption Caption Visual Basic Font MS P 36 Label Label

2-5 Commond Button Form1 Command1 Private Sub End Sub End Command1 Click Command1_Click End Private Sub End Sub Sub Caption form1 Label1 Caption Private Sub Label1. Caption Caption

TAB ="" 2-5 Form1 Command Button Visual Basic 2-6. [(F)] [(E)] VB.frm [].vbp

2-7. [(F)] [ (0)] (O) 2-8. VB Visual Basic.bas.cls.ctl.ctx.dca.dep.dob.dox.dsr.dsx.frm.frx.log.oca.pag.pgx.res.swt.tlb.vbg.vbl.vbp.vbr.vbw.vbz Visual Basic Visual Basic Visual Basic Visual Basic

VB Click 3-1 Value On/Off On/Off On Click Value Sub Call Sub Misc chk_opt

3-2. BASIC INPUT VB Input Val Str Format Caption BMI (Kg) bmi = 2 (m) Command1_Click Sub Dim h,w.bmi Sub bmi bmi Bmi0 InputboxMsgbox

3-3. Interval (ms) Enabled Enabled = True Enabled = False General sts Dim Form_Load Command1 sts Caption Start/Stop If sts = Not sts Timer1.Enabled = sts If sts Then Command1.Caption = "Stop" sts Else sts sts Command1.Caption = "Start" End If

clock clock If Interval BMI BMI BMI Bmi If bmi < 19 Then Bmi 19 ElseIf bmi >= 19 And bmi < 25 Then 19 bmi 25 bmi 25 Else BMI endif bmi_img gif Picture Strech TrueVisible False BorderStyle 0 Visible True

. BASIC PRINT Show Hide 4-1 Additem Clear For For Text misc for For Next

step 0 Start End TWIPS BASIC PRINT Print Print TWIP 567twip=1cm (0,0) 1440twip=1 X Left,Top Hight,Width (Left,Top) (Height) Width, Height Y twip (Width) CurrentXCurrentY PRINT twip ScaleMode 0,1 0 VbUser 1 twip VbTwips 2 VbPoints 72 3 VbPixels 4 VbCharacters 120 twip()240 twip() 5 VbInches 6 VbMillimeters 7 VbCentimeters

ScaleMode 0,1 ScaleHeightScaleWidthScaleTopScaleLeft ScaleMode 0 ScaleMode 0,1 ScaleHeightScaleWidth Hight,Width ScaleMode 4 5-1.PRINT print Print Print Print AutoRedraw True False False AutoRedraw True Scale Form1 Additem print kuku2

5-2. (LINE CIRCLE ScaleHeightScaleWidthScaleTop ScaleLeft ScaleHeightScaleWidth ScaleTopScaleLeft (ScaleLeft,ScaleTop) (x1,y1) ScaleHeight (x2,y2) ScaleWidth Object.Scale (x1,y1) (x2,y2) Line

Scale Form1 Form_Load line line1,line2 Line1 Line2 line2 Form1 Picture1 Line Picture1.Line (x1,y1) (x2,y2) scale.exe 5-3. PrintForm PrintForm Object.PrintForm Common Dialog A Printer Printer

VB 6-1.Common Dialog ActiveX [(P)][(O)] OK Microsoft Common Dialog Control 6.0

Common Dialog ShowPrinter ShowPrinter FromPage ToPage Copies FromPageToPage 1 ShowPrinter PrintForm PrinForm Private Sub Form_Load() Dim x1, y1, x2, y2, r, rad Dim i As Integer, j As Integer AutoRedraw = True Height = 4000 Width = 4000 Scale (-2000, -2000)-(2000, 2000) r = 2000 rad = 3.1415926 / 180# For i = 0 To 360 Step 30 x1 = r * Cos(rad * i) y1 = r * Sin(rad * i) For j = i To 360 + i Step 30 x2 = r * Cos(rad * j) y2 = r * Sin(rad * j) Line (x1, y1)-(x2, y2) Next Next End Sub Private Sub print_click() Dim p_st, p_end, p_cp, i CommonDialog1.CancelError = True On Error GoTo ErrHandler CommonDialog1.ShowPrinter p_st = CommonDialog1.FromPage p_end = CommonDialog1.ToPage p_cp = CommonDialog1.Copies For i = 1 To p_cp PrintForm Next i Exit Sub ErrHandler: Exit Sub End Sub Private Sub end_click() End End Sub Copies Common Dialog ShowPrinter ShowOpen [] ShowSave [] ShowColor []

ShowFont [] ShowHelp Windows PrintForm [(T)][(M)] (P) (M)

. 8-1.Visul Basic Visual Basic "" 1 ""() " " Text1.Text = "Hi!" ' a b x 2 ( 1 x) ( 1 y)

Dim Dim Dim 1 [As ] [, 2 [ As ]...] Dim x,y x,y Dim a,b As Interger a:,b: DIm message As String 8-2. On Error GoTo On Error Resume Next On Error GoTo 0

Do..Loop While

SubFunction Sub Function Sub Sub CALL Function 1 [As ] [, 2 [As ],...]] Function

8-3. Str() Val() Format(,) IsNumeric() Abs() Atn() Cos() Exp() Fix() Int() Log() Rnd() Sin() Tan() InputBox([, ] [, ] [, X] [, ] [,helpfile, context])) MsgBox([, buttons] [, ] [, helpfile, context]) # 0 0 0 0 (Boolean) Atan Cos e e 0 1 < 0 > 0 = 0 Sin Tan

8-4. HELP(H) (C) (C) ActiveX HELP(H)(I) (B) (N) (W)