home *** CD-ROM | disk | FTP | other *** search
/ Planet Source Code Jumbo …e CD Visual Basic 1 to 7 / 1_2002.ISO / Data / Zips / learnvb01a245358122001.psc / learnvis.frm (.txt)
Encoding:
Visual Basic Form  |  2001-08-12  |  102.1 KB  |  2,772 lines

  1. VERSION 5.00
  2. Begin VB.Form Form1 
  3.    AutoRedraw      =   -1  'True
  4.    Caption         =   "Learning Visual Basic"
  5.    ClientHeight    =   4545
  6.    ClientLeft      =   720
  7.    ClientTop       =   1470
  8.    ClientWidth     =   6585
  9.    LinkTopic       =   "Form1"
  10.    ScaleHeight     =   4545
  11.    ScaleWidth      =   6585
  12.    Begin VB.CommandButton cmdcopy 
  13.       Caption         =   "--> textbox"
  14.       Height          =   375
  15.       Left            =   1200
  16.       TabIndex        =   41
  17.       Top             =   600
  18.       Visible         =   0   'False
  19.       Width           =   1095
  20.    End
  21.    Begin VB.TextBox txtcode 
  22.       Height          =   1665
  23.       Left            =   2085
  24.       MultiLine       =   -1  'True
  25.       ScrollBars      =   3  'Both
  26.       TabIndex        =   40
  27.       Top             =   2115
  28.       Visible         =   0   'False
  29.       Width           =   2550
  30.    End
  31.    Begin VB.CommandButton cmdnext 
  32.       Caption         =   "next"
  33.       Height          =   375
  34.       Left            =   4920
  35.       TabIndex        =   38
  36.       Top             =   3960
  37.       Width           =   650
  38.    End
  39.    Begin VB.CommandButton cmdback 
  40.       Caption         =   "back"
  41.       Height          =   375
  42.       Left            =   4320
  43.       TabIndex        =   37
  44.       Top             =   3960
  45.       Visible         =   0   'False
  46.       Width           =   600
  47.    End
  48.    Begin VB.CommandButton cmdbc9 
  49.       Caption         =   "back"
  50.       Height          =   375
  51.       Left            =   4320
  52.       TabIndex        =   29
  53.       Top             =   3960
  54.       Visible         =   0   'False
  55.       Width           =   600
  56.    End
  57.    Begin VB.CommandButton cmdA0 
  58.       Caption         =   "next"
  59.       Height          =   375
  60.       Left            =   4920
  61.       TabIndex        =   28
  62.       Top             =   3960
  63.       Visible         =   0   'False
  64.       Width           =   650
  65.    End
  66.    Begin VB.ComboBox cmbvtyp 
  67.       Height          =   315
  68.       ItemData        =   "LEARNVIS.frx":0000
  69.       Left            =   0
  70.       List            =   "LEARNVIS.frx":0002
  71.       TabIndex        =   27
  72.       Text            =   "VarTypes"
  73.       Top             =   360
  74.       Visible         =   0   'False
  75.       Width           =   1095
  76.    End
  77.    Begin VB.ComboBox cmbansi 
  78.       Height          =   315
  79.       ItemData        =   "LEARNVIS.frx":0004
  80.       Left            =   0
  81.       List            =   "LEARNVIS.frx":0006
  82.       TabIndex        =   26
  83.       Text            =   "ANSI"
  84.       Top             =   600
  85.       Visible         =   0   'False
  86.       Width           =   735
  87.    End
  88.    Begin VB.VScrollBar VScroll1 
  89.       Height          =   1215
  90.       Left            =   120
  91.       TabIndex        =   25
  92.       Top             =   2520
  93.       Visible         =   0   'False
  94.       Width           =   255
  95.    End
  96.    Begin VB.CommandButton cmdgoback 
  97.       Caption         =   "Unmore"
  98.       Height          =   375
  99.       Left            =   360
  100.       TabIndex        =   24
  101.       Top             =   840
  102.       Visible         =   0   'False
  103.       Width           =   855
  104.    End
  105.    Begin VB.CommandButton cmdsimplify 
  106.       Caption         =   "More.."
  107.       Height          =   375
  108.       Left            =   360
  109.       TabIndex        =   23
  110.       Top             =   840
  111.       Visible         =   0   'False
  112.       Width           =   855
  113.    End
  114.    Begin VB.TextBox txtin 
  115.       Height          =   285
  116.       Left            =   480
  117.       TabIndex        =   22
  118.       Top             =   3360
  119.       Visible         =   0   'False
  120.       Width           =   255
  121.    End
  122.    Begin VB.CommandButton cmdcd5 
  123.       Caption         =   "5"
  124.       Height          =   255
  125.       Left            =   6120
  126.       TabIndex        =   20
  127.       Top             =   120
  128.       Visible         =   0   'False
  129.       Width           =   255
  130.    End
  131.    Begin VB.CommandButton cmdcd4 
  132.       Caption         =   "4"
  133.       Height          =   255
  134.       Left            =   5880
  135.       TabIndex        =   19
  136.       Top             =   120
  137.       Visible         =   0   'False
  138.       Width           =   255
  139.    End
  140.    Begin VB.CommandButton cmdcd3 
  141.       Caption         =   "3"
  142.       Height          =   255
  143.       Left            =   5640
  144.       TabIndex        =   18
  145.       Top             =   120
  146.       Visible         =   0   'False
  147.       Width           =   255
  148.    End
  149.    Begin VB.CommandButton cmdcd2 
  150.       Caption         =   "2"
  151.       Height          =   255
  152.       Left            =   5400
  153.       TabIndex        =   17
  154.       Top             =   120
  155.       Visible         =   0   'False
  156.       Width           =   255
  157.    End
  158.    Begin VB.CommandButton cmdcd1 
  159.       Caption         =   "1"
  160.       Height          =   255
  161.       Left            =   5160
  162.       TabIndex        =   16
  163.       Top             =   120
  164.       Visible         =   0   'False
  165.       Width           =   255
  166.    End
  167.    Begin VB.CommandButton cmdrnd 
  168.       Caption         =   "randm"
  169.       Height          =   375
  170.       Left            =   3360
  171.       TabIndex        =   15
  172.       Top             =   840
  173.       Visible         =   0   'False
  174.       Width           =   735
  175.    End
  176.    Begin VB.ListBox lstdt 
  177.       Height          =   840
  178.       ItemData        =   "LEARNVIS.frx":0008
  179.       Left            =   5850
  180.       List            =   "LEARNVIS.frx":0027
  181.       TabIndex        =   14
  182.       Top             =   -315
  183.       Visible         =   0   'False
  184.       Width           =   1815
  185.    End
  186.    Begin VB.CommandButton cmdboxoffice 
  187.       Caption         =   "calc"
  188.       Height          =   375
  189.       Left            =   840
  190.       TabIndex        =   13
  191.       Top             =   3720
  192.       Visible         =   0   'False
  193.       Width           =   615
  194.    End
  195.    Begin VB.CommandButton cmd2lv1 
  196.       Caption         =   "+2"
  197.       Height          =   375
  198.       Left            =   1800
  199.       TabIndex        =   12
  200.       Top             =   3840
  201.       Visible         =   0   'False
  202.       Width           =   615
  203.    End
  204.    Begin VB.CommandButton cmd1lv1 
  205.       Caption         =   "+1"
  206.       Height          =   375
  207.       Left            =   1080
  208.       TabIndex        =   11
  209.       Top             =   3840
  210.       Visible         =   0   'False
  211.       Width           =   615
  212.    End
  213.    Begin VB.CommandButton cmd2mv1 
  214.       Caption         =   "+2"
  215.       Height          =   375
  216.       Left            =   1800
  217.       TabIndex        =   10
  218.       Top             =   3840
  219.       Visible         =   0   'False
  220.       Width           =   615
  221.    End
  222.    Begin VB.CommandButton cmd1mv1 
  223.       Caption         =   "+1"
  224.       Height          =   375
  225.       Left            =   1080
  226.       TabIndex        =   9
  227.       Top             =   3840
  228.       Visible         =   0   'False
  229.       Width           =   615
  230.    End
  231.    Begin VB.HScrollBar HScroll1 
  232.       Height          =   255
  233.       Left            =   120
  234.       Max             =   22
  235.       Min             =   8
  236.       TabIndex        =   8
  237.       Top             =   3720
  238.       Value           =   8
  239.       Visible         =   0   'False
  240.       Width           =   1455
  241.    End
  242.    Begin VB.CommandButton cmdrun 
  243.       Caption         =   "&Run"
  244.       Height          =   375
  245.       Left            =   480
  246.       TabIndex        =   7
  247.       Top             =   960
  248.       Visible         =   0   'False
  249.       Width           =   615
  250.    End
  251.    Begin VB.PictureBox piccode 
  252.       AutoRedraw      =   -1  'True
  253.       BackColor       =   &H8000000E&
  254.       Height          =   1815
  255.       Left            =   120
  256.       ScaleHeight     =   1755
  257.       ScaleWidth      =   3315
  258.       TabIndex        =   6
  259.       Top             =   1440
  260.       Visible         =   0   'False
  261.       Width           =   3375
  262.    End
  263.    Begin VB.PictureBox picTable 
  264.       AutoRedraw      =   -1  'True
  265.       AutoSize        =   -1  'True
  266.       BackColor       =   &H8000000E&
  267.       Height          =   1095
  268.       Left            =   3840
  269.       ScaleHeight     =   1035
  270.       ScaleWidth      =   2475
  271.       TabIndex        =   2
  272.       Top             =   1440
  273.       Visible         =   0   'False
  274.       Width           =   2535
  275.    End
  276.    Begin VB.Label lblobj 
  277.       Caption         =   "last"
  278.       BeginProperty Font 
  279.          Name            =   "Small Fonts"
  280.          Size            =   6.75
  281.          Charset         =   0
  282.          Weight          =   700
  283.          Underline       =   0   'False
  284.          Italic          =   0   'False
  285.          Strikethrough   =   0   'False
  286.       EndProperty
  287.       Height          =   165
  288.       Left            =   120
  289.       TabIndex        =   39
  290.       Top             =   4350
  291.       Width           =   615
  292.    End
  293.    Begin VB.Label lblalg 
  294.       Caption         =   "Algebra Reference"
  295.       BeginProperty Font 
  296.          Name            =   "Small Fonts"
  297.          Size            =   6.75
  298.          Charset         =   0
  299.          Weight          =   700
  300.          Underline       =   0   'False
  301.          Italic          =   0   'False
  302.          Strikethrough   =   0   'False
  303.       EndProperty
  304.       Height          =   165
  305.       Left            =   210
  306.       TabIndex        =   36
  307.       Top             =   165
  308.       Visible         =   0   'False
  309.       Width           =   1825
  310.    End
  311.    Begin VB.Label lblqa2 
  312.       Caption         =   "You just clicked a text label, what are you going to do next?   ""i'm going to Disneyland!"""
  313.       ForeColor       =   &H00404040&
  314.       Height          =   4575
  315.       Left            =   1565
  316.       TabIndex        =   35
  317.       Top             =   500
  318.       Visible         =   0   'False
  319.       Width           =   3495
  320.    End
  321.    Begin VB.Label lblqa1 
  322.       Caption         =   $"LEARNVIS.frx":039D
  323.       ForeColor       =   &H00400000&
  324.       Height          =   4575
  325.       Left            =   1305
  326.       TabIndex        =   34
  327.       Top             =   1000
  328.       Visible         =   0   'False
  329.       Width           =   3945
  330.    End
  331.    Begin VB.Label lblqadv 
  332.       Caption         =   "For Advanced Reference"
  333.       BeginProperty Font 
  334.          Name            =   "Small Fonts"
  335.          Size            =   6.75
  336.          Charset         =   0
  337.          Weight          =   700
  338.          Underline       =   0   'False
  339.          Italic          =   0   'False
  340.          Strikethrough   =   0   'False
  341.       EndProperty
  342.       Height          =   165
  343.       Left            =   0
  344.       TabIndex        =   33
  345.       Top             =   0
  346.       Visible         =   0   'False
  347.       Width           =   1935
  348.    End
  349.    Begin VB.Label lblqskip 
  350.       Caption         =   "Skip to:"
  351.       BeginProperty Font 
  352.          Name            =   "Verdana"
  353.          Size            =   8.25
  354.          Charset         =   0
  355.          Weight          =   400
  356.          Underline       =   0   'False
  357.          Italic          =   0   'False
  358.          Strikethrough   =   0   'False
  359.       EndProperty
  360.       Height          =   195
  361.       Left            =   75
  362.       TabIndex        =   32
  363.       Top             =   3750
  364.       Width           =   735
  365.    End
  366.    Begin VB.Label lblfunct 
  367.       Caption         =   "make a Function"
  368.       BeginProperty Font 
  369.          Name            =   "Small Fonts"
  370.          Size            =   6.75
  371.          Charset         =   0
  372.          Weight          =   700
  373.          Underline       =   0   'False
  374.          Italic          =   0   'False
  375.          Strikethrough   =   0   'False
  376.       EndProperty
  377.       Height          =   165
  378.       Left            =   110
  379.       TabIndex        =   31
  380.       Top             =   4150
  381.       Width           =   1335
  382.    End
  383.    Begin VB.Label lblbuil 
  384.       Caption         =   "Reference Section"
  385.       BeginProperty Font 
  386.          Name            =   "Small Fonts"
  387.          Size            =   6.75
  388.          Charset         =   0
  389.          Weight          =   700
  390.          Underline       =   0   'False
  391.          Italic          =   0   'False
  392.          Strikethrough   =   0   'False
  393.       EndProperty
  394.       Height          =   165
  395.       Left            =   90
  396.       TabIndex        =   30
  397.       Top             =   3975
  398.       Width           =   1455
  399.    End
  400.    Begin VB.Label lblqpage 
  401.       Caption         =   "Page"
  402.       Height          =   255
  403.       Left            =   4680
  404.       TabIndex        =   21
  405.       Top             =   120
  406.       Visible         =   0   'False
  407.       Width           =   735
  408.    End
  409.    Begin VB.Line linept2 
  410.       Visible         =   0   'False
  411.       X1              =   3720
  412.       X2              =   3480
  413.       Y1              =   2280
  414.       Y2              =   2640
  415.    End
  416.    Begin VB.Line linept1 
  417.       Visible         =   0   'False
  418.       X1              =   3360
  419.       X2              =   3720
  420.       Y1              =   2400
  421.       Y2              =   2280
  422.    End
  423.    Begin VB.Line lineshaft 
  424.       Visible         =   0   'False
  425.       X1              =   2280
  426.       X2              =   3720
  427.       Y1              =   3360
  428.       Y2              =   2280
  429.    End
  430.    Begin VB.Label lblqprop 
  431.       Alignment       =   1  'Right Justify
  432.       Caption         =   "Properties"
  433.       Height          =   255
  434.       Left            =   5160
  435.       TabIndex        =   5
  436.       Top             =   1200
  437.       Visible         =   0   'False
  438.       Width           =   1215
  439.    End
  440.    Begin VB.Label lblqcom 
  441.       Caption         =   "comment:"
  442.       Height          =   255
  443.       Left            =   840
  444.       TabIndex        =   4
  445.       Top             =   3480
  446.       Visible         =   0   'False
  447.       Width           =   735
  448.    End
  449.    Begin VB.Label lblcom 
  450.       Height          =   855
  451.       Left            =   1680
  452.       TabIndex        =   3
  453.       Top             =   3480
  454.       Width           =   2415
  455.    End
  456.    Begin VB.Label lblmain 
  457.       AutoSize        =   -1  'True
  458.       BackColor       =   &H80000004&
  459.       Caption         =   $"LEARNVIS.frx":04F6
  460.       Height          =   780
  461.       Left            =   1635
  462.       TabIndex        =   1
  463.       Top             =   480
  464.       Width           =   3540
  465.       WordWrap        =   -1  'True
  466.    End
  467.    Begin VB.Label lblchaptr 
  468.       Alignment       =   2  'Center
  469.       Caption         =   "Welcome!"
  470.       BeginProperty Font 
  471.          Name            =   "MS Sans Serif"
  472.          Size            =   13.5
  473.          Charset         =   0
  474.          Weight          =   400
  475.          Underline       =   0   'False
  476.          Italic          =   0   'False
  477.          Strikethrough   =   0   'False
  478.       EndProperty
  479.       Height          =   375
  480.       Left            =   1920
  481.       TabIndex        =   0
  482.       Top             =   120
  483.       Width           =   2775
  484.    End
  485. Attribute VB_Name = "Form1"
  486. Attribute VB_GlobalNameSpace = False
  487. Attribute VB_Creatable = False
  488. Attribute VB_PredeclaredId = True
  489. Attribute VB_Exposed = False
  490. 'Visual Basic tutorial inspired by the notion that a _
  491. 10-year-old could program if they only knew the code _
  492. and of course, had a vision.
  493. Dim caseinpoint As Integer 'see VScroll1_Scroll
  494. Dim mn As String, sn As String 'VScroll1_Scroll
  495. Dim backtrue As Boolean 'specific select case values _
  496.  in contentspre() use this to display different data _
  497.  if the back button was most-recently clicked.
  498. Dim prevtext As String 'txtin_Change, txtin_KeyPress
  499. 'Form resize variables applied to every control
  500. Dim scw As Single, sch As Single, _
  501.  fsr As Single, fs As Single
  502. 'these get a value so I can Call _
  503.  qscolor("string",blue,1) see Form_Load for vals
  504. Dim blu As Byte, blue As Byte
  505. Dim grn As Byte, green As Byte
  506. Dim mag As Byte, magenta As Byte
  507. Dim bla As Byte, black As Byte
  508. Dim whi As Byte, white As Byte
  509. Dim cyan As Byte
  510. Dim yel As Byte, yellow As Byte
  511. Dim red As Byte
  512. Dim clicktwice(1 To 5) As Byte 'used by piccode_Click
  513. Dim cancelbyte(1) As Byte 'disables click for lblmain _
  514.  after first time.  If I actually disable lblmain, _
  515.  the text becomes light.
  516. Dim aIndex 'added Tue Oct 24, 2000 for cmdA0 and _
  517.  cmdbc9 - only two next and back buttons, beyond _
  518.  the old and kept method of click next, new next _
  519.  becomes Visible, old becomes Invis..
  520. Dim pIndex 'pre-index - temporary while I convert _
  521.  previous 'multi-next/back' into another _
  522.  'only one back, only one next' set.
  523. Dim q As String 'will represent double quote
  524. Dim qs(1 To 99) As String 'piccode lines of text
  525. Dim qps As String 'qps = "Private Sub "
  526. Dim qhello As String
  527. Dim fn1 As Integer
  528. Dim strM5, strM7 As String 'string for commentary
  529. Dim strVi, strv2, strc3 As String 'more comments
  530. Dim mv1 As Integer 'used for demonstration - see cmdvar1
  531. Dim subj As Byte 'subjects are assigned a value and _
  532.  accessed by 'Page' (cmdcd*) commandbuttons
  533. Dim npage As Byte 'cmdc6 will 'nextpage' rather than _
  534.  'nextsubject'.
  535. Dim com5 As String 'comment variable
  536. Dim firsttime(1 To 5) As Byte 'when firsttime(n) = 1, _
  537.  subroutines do not (disable buttons to guide the user)
  538. Dim clscount As Integer 'Clears pic at so many lines
  539. 'For graphics section
  540. Dim X(40) As Single, Y(40) As Single, r(40) As Single
  541. Dim incred(40) As Single, incgrn(40) As Single, incblu(40) As Single
  542. Dim ared(40) As Integer, agrn(40) As Integer, ablu(40) As Integer
  543. Dim colorshift As Integer, cs As Integer, sc As Integer, scl As Integer
  544. Dim old6785 As Integer, old4950 As Integer
  545. 'Control (object) dimensions set by case Index and aIndex _
  546. (when back or next is clicked) found in contentspre() and _
  547. contents(), and changed in form_resize()
  548. Dim cmdnextwidth As Integer, cmdnextheight As Integer, _
  549.  cmdnextleft As Integer, cmdnexttop As Integer
  550. Dim cmdnextfs As Single 'fs stands for fontsize
  551. Dim cmdbackwidth As Integer, cmdbackheight As Integer, _
  552.  cmdbackleft As Integer, cmdbacktop As Integer
  553. Dim cmdbackfs As Single
  554. Dim cmdbc9width As Integer, cmdbc9height As Integer, _
  555.  cmdbc9left As Integer, cmdcd9top As Integer
  556. Dim cmdbc9fs As Single
  557. Dim cmda0width As Integer, cmda0height As Integer, _
  558.  cmda0left As Integer, cmda0top As Integer
  559. Dim cmda0fs As Single
  560. Dim cd1width As Integer, cd1height As Integer, _
  561.  cd1left As Integer, cd1top As Integer
  562. Dim cd2width As Integer, cd2height As Integer, _
  563.  cd2left As Integer, cd2top As Integer
  564. Dim cd3width As Integer, cd3height As Integer, _
  565.  cd3left As Integer, cd3top As Integer
  566. Dim cd4width As Integer, cd4height As Integer, _
  567.  cd4left As Integer, cd4top As Integer
  568. Dim cd5width As Integer, cd5height As Integer, _
  569.  cd5left As Integer, cd5top As Integer
  570. Dim lblalgwidth As Integer, lblalgheight As Integer, _
  571.  lblalgleft As Integer, lblalgtop As Integer
  572. Dim lblobjwidth As Integer, lblobjheight As Integer, _
  573.  lblobjleft As Integer, lblobjtop As Integer
  574. Dim lblfunctwidth As Integer, lblfunctheight As Integer, _
  575.  lblfunctleft As Integer, lblfuncttop As Integer
  576. Dim lblbuilwidth As Integer, lblbuilheight As Integer, _
  577.  lblbuilleft As Integer, lblbuiltop As Integer
  578. Dim lblqa1width As Integer, lblqa1height As Integer, _
  579.  lblqa1left As Integer, lblqa1top As Integer
  580. Dim lblqa2width As Integer, lblqa2height As Integer, _
  581.  lblqa2left As Integer, lblqa2top As Integer
  582. Dim lblmainwidth As Integer, lblmainheight As Integer, _
  583.  lblmainleft As Integer, lblmaintop As Integer
  584. Dim lblcomwidth As Integer, lblcomheight As Integer, _
  585.  lblcomleft As Integer, lblcomtop As Integer
  586. Dim lblqadvwidth As Integer, lblqadvheight As Integer, _
  587.  lblqadvleft As Integer, lblqadvtop As Integer
  588. Dim lblqcomwidth As Integer, lblqcomheight As Integer, _
  589.  lblqcomleft As Integer, lblqcomtop As Integer
  590. Dim lblqpagewidth As Integer, lblqpageheight As Integer, _
  591.  lblqpageleft As Integer, lblqpagetop As Integer
  592. Dim lblqpropwidth As Integer, lblqpropheight As Integer, _
  593.  lblqoropleft As Integer, lblqproptop As Integer
  594. Dim lblqskipwidth As Integer, lblqskipheight As Integer, _
  595.  lblqskipleft As Integer, lblqskiptop As Integer
  596. Dim lblchaptrwidth As Integer, lblchaptrheight As Integer, _
  597.  lblchaptrleft As Integer, lblchaptrtop As Integer
  598. Dim cmdcopywidth As Integer, cmdcopyheight As Integer, _
  599.  cmdcopyleft As Integer, cmdcopytop As Integer
  600. Dim cmd1lv1width As Integer, cmd1lv1height As Integer, _
  601.  cmd1lv1left As Integer, cmd1lv1top As Integer
  602. Dim cmd2lv1width As Integer, cmd2lv1height As Integer, _
  603.  cmd2lv1left As Integer, cmd2lv1top As Integer
  604. Dim cmd1mv1width As Integer, cmd1mv1height As Integer, _
  605.  cmd1mv1left As Integer, cmd1mv1top As Integer
  606. Dim cmd2mv1width As Integer, cmd2mv1height As Integer, _
  607.  cmd2mv1left As Integer, cmd2mv1top As Integer
  608. Dim cmdgobackwidth As Integer, cmdgobackheight As Integer, _
  609.  cmdgobackleft As Integer, cmdgobacktop As Integer
  610. Dim cmdsimplifywidth As Integer, cmdsimplifyheight As Integer, _
  611.  cmdsimplifyleft As Integer, cmdsimplifytop As Integer
  612. Dim cmdrunwidth As Integer, cmdrunheight As Integer, _
  613.  cmdrunleft As Integer, cmdruntop As Integer
  614. Dim cmdrndwidth As Integer, cmdrndheight As Integer, _
  615.  cmdrndleft As Integer, cmdrndtop As Integer
  616. Dim cmdboxofficewidth As Integer, cmdboxofficeheight As Integer, _
  617.  cmdboxofficeleft As Integer, cmdboxofficetop As Integer
  618. Dim cmbvtypleft As Integer, cmbvtypwidth As Integer, _
  619.  cmbvtypheight As Integer, cmbvtyptop As Integer
  620. Dim cmbansileft As Integer, cmbansiwidth As Integer, _
  621.  cmbansiheight As Integer, cmbansitop As Integer
  622. Dim hscroll1width As Integer, hscroll1height As Integer, _
  623.  hscroll1left As Integer, hscroll1top As Integer
  624. Dim piccodewidth As Integer, piccodeheight As Integer, _
  625.  piccodeleft As Integer, piccodetop As Integer
  626. Dim pictablewidth As Integer, pictableheight As Integer, _
  627.  pictableleft As Integer, pictabletop As Integer
  628. Dim txtcodewidth As Integer, txtcodeheight As Integer, _
  629.  txtcodeleft As Integer, txtcodetop As Integer
  630. Dim txtinwidth As Integer, txtinheight As Integer, _
  631.  txtinleft As Integer, txtintop As Integer
  632. Dim vscroll1width As Integer, vscroll1height As Integer, _
  633.  vscroll1left As Integer, vscroll1top As Integer
  634. Dim lstdtwidth As Integer, lstdtheight As Integer, _
  635.  lstdtleft As Integer, lstdttop As Integer
  636. Private Sub form_resize()
  637. Call resizeall
  638. If cmdback.Visible = True Then
  639.  Call contentspre
  640. End If
  641. Call contents
  642. End Sub
  643. Private Sub form_lostfocus()
  644. 'Call resizeall
  645. End Sub
  646. Private Sub form_gotfocus()
  647. 'Call resizeall
  648. End Sub
  649. Private Sub form_load()
  650.  q = Chr(34) 'double quote
  651.  qps = "Private Sub " 'often printed to piccode
  652.  old6785 = 6785 'default form dimensions
  653.  old4950 = 4950
  654.  piccode.ForeColor = vbBlack 'necessary for certain win _
  655.  colorschemes
  656.  picTable.ForeColor = vbBlack
  657.  piccode.BackColor = vbWhite
  658.  picTable.BackColor = vbWhite
  659.  bla = 0: black = 0
  660.  blu = 1: blue = 1
  661.  red = 2
  662.  grn = 4: green = 4
  663.  mag = 6: magenta = 6
  664.  whi = 5: white = 5
  665.  yel = 3: yellow = 3
  666.  cyan = 7
  667.  Dim ansindx As Integer
  668.  Dim ansilist(0 To 255) As String
  669.  For ansindx = 0 To 255
  670.   ansilist(ansindx) = Chr(ansindx) & "   " & ansindx
  671.  Next ansindx
  672.  ansilist(0) = "(null)   0"
  673.  ansilist(9) = "(tab)    9"
  674.  ansilist(10) = "(line feed) 10"
  675.  ansilist(13) = "(carriage return)"
  676.  ansilist(32) = "(space)   32"
  677.  For ansindx = 0 To 255
  678.   cmbansi.AddItem ansilist(ansindx)
  679.  Next ansindx
  680.  cmbvtyp.AddItem "Byte" & "  1 byte" & "  0 to 255"
  681.  cmbvtyp.AddItem "Boolean" & "  2 bytes" & "  True or False"
  682.  cmbvtyp.AddItem "Integer" & "  2 bytes" & " -32,768 to 32,767"
  683.  cmbvtyp.AddItem "Long" & "  4 bytes" & " -2,147,483,648 to 2,147,483,647"
  684.  cmbvtyp.AddItem "Single " & "  4 bytes" & " -3.402823E38 to -1.401298E-45 for - vals"
  685.  cmbvtyp.AddItem " 1.401298E-45 to 3.402823E38 for +"
  686.  cmbvtyp.AddItem "Double" & "  8 bytes" & " -1.79769313486232E308 to -49065645841247E-324"
  687.  cmbvtyp.AddItem " 4.94065645841247E-324 to 1.79769313486232E308"
  688.  cmbvtyp.AddItem "Currency" & "  8 bytes" & " -922,337,203,685,477.5808 to 922,337,203,685,477.5807"
  689.  cmbvtyp.AddItem "Decimal" & "  14 bytes"
  690.  cmbvtyp.AddItem " +/- 79,228,162,514,264,337,593,543,950,335 (no dec point)"
  691.  cmbvtyp.AddItem " +/-7.9228162514264337593543950335 (that's 28 after dec)"
  692.  cmbvtyp.AddItem " smallest non-zero is +/-0.0000000000000000000000000001"
  693.  cmbvtyp.AddItem "Date" & "  8 bytes" & "     Jan 1, 100 to Dec 31, 9999"
  694.  cmbvtyp.AddItem "String" & "  Length of string" & "     1 to approx 65,400"
  695.  cmbvtyp.AddItem "String var-length" & "  10 bytes + str len" & "     0 to approx 2 billion"
  696.  cmbvtyp.AddItem "Variant (nums)" & "  16 bytes" & "  Any numeric value up to a Double's range"
  697.  cmbvtyp.AddItem "Variant (char)" & "  22 bytes + str len" & "     0 to approx 2 billion"
  698.  cmbvtyp.AddItem "User-defined" & "  # req. by elements" & "   The range of each elem = data type range"
  699.  lblmaintop = 480
  700.  lblcomtop = 3480
  701.  lblalgtop = 165
  702.  lblqa1top = 1000
  703.  lblqa2top = 500
  704.  lblfuncttop = 4150
  705.  lblqadvtop = 300
  706.  lblqcomtop = 3480
  707.  lblqpagetop = 120
  708.  lblqproptop = 1200
  709.  lblqskiptop = 3750
  710.  lblchaptrtop = 120
  711.  lblbuiltop = 3975
  712.  cmdcd1top = 120
  713.  cmdcd2top = 120
  714.  cmdcd3top = 120
  715.  cmdcd4top = 120
  716.  cmdcd5top = 120
  717.  cmd1lv1top = 3840
  718.  cmd2lv1top = 3840
  719.  cmd1mv1top = 3840
  720.  cmd2mv1top = 3840
  721.  cmda0top = 3960
  722.  cmdnexttop = 3960
  723.  cmdbc9top = 3960
  724.  cmdbacktop = 3960
  725.  cmdboxofficetop = 1055
  726.  cmdrndtop = 750
  727.  txtintop = 3430
  728.  lblmainheight = 780
  729.  lblcomheight = 855
  730.  lblalgheight = 165
  731.  lblqa1height = 4575
  732.  lblqa2height = 4575
  733.  lblfunctheight = 165
  734.  lblqadvheight = 165
  735.  lblqcomheight = 255
  736.  lblqpageheight = 255
  737.  lblqpropheight = 255
  738.  lblqskipheight = 195
  739.  lblchaptrheight = 375
  740.  lblbuilheight = 165
  741.  cmdcd1height = 255
  742.  cmdcd2height = 255
  743.  cmdcd3height = 255
  744.  cmdcd4height = 255
  745.  cmdcd5height = 255
  746.  cmdgobackheight = 375
  747.  cmdsimplifyheight = 375
  748.  cmdrndheight = 375
  749.  cmdrunheight = 375
  750.  cmd1lv1height = 375
  751.  cmd2lv1height = 375
  752.  cmd1mv1height = 375
  753.  cmd2mv1height = 375
  754.  cmda0height = 375
  755.  cmdnextheight = 375
  756.  cmdbc9height = 375
  757.  cmdbackheight = 375
  758.  lblchaptrleft = 1920
  759.  lblmainleft = 1635
  760.  lblcomleft = 1680
  761.  lblqcomleft = 840
  762.  lblalgleft = 210
  763.  lblqpropleft = 5160
  764.  lblqpageleft = 4680
  765.  lblqskipleft = 75
  766.  lblbuilleft = 90
  767.  lblfunctleft = 120
  768.  cmda0left = 4920
  769.  cmdnextleft = 4920
  770.  cmdbackleft = 4320
  771.  cmdbc9left = 4320
  772.  cmdcd1left = 5160
  773.  cmdcd2left = cmdcd1.Left + 240
  774.  cmdcd3left = cmdcd2.Left + 240
  775.  cmdcd4left = cmdcd3.Left + 240
  776.  cmdcd5left = cmdcd4.Left + 240
  777.  cmdrunleft = 850
  778.  cmdrndleft = 2300
  779.  txtinleft = 255
  780.  lblchaptrwidth = 2775
  781.  lblmainwidth = 3540
  782.  lblcomwidth = 2415
  783.  lblqcomwidth = 735
  784.  lblalgwidth = 1825
  785.  lblqpropwidth = 1215
  786.  lblqpagewidth = 475
  787.  lblqskipwidth = 735
  788.  lblbuilwidth = 1695
  789.  lblfunctwidth = 1695
  790.  cmda0width = 650
  791.  cmdnextwidth = 650
  792.  cmdbackwidth = 600
  793.  cmdbc9width = 600
  794.  cmdrunwidth = 615
  795.  cmdrndwidth = 735
  796.  cmdboxofficewidth = 615
  797.  txtinwidth = 255
  798.  pictableheight = 1095
  799.  pictablewidth = 2535
  800.  pictableleft = 3840
  801.  pictabletop = 1440
  802.  piccodeheight = 1815
  803.  piccodewidth = 3375
  804.  piccodetop = 1440
  805.  piccodeleft = 120
  806.  'cmbansileft = 1160
  807.  cmbansileft = 140
  808.  cmbansiwidth = 735
  809.  cmbansitop = 170
  810.  cmbvtypleft = 980
  811.  cmbvtyptop = 170
  812.  hscroll1top = 3720
  813.  hscroll1left = 120
  814.  hscroll1width = 1455
  815.  vscroll1top = 2520
  816.  vscroll1left = 120
  817.  vscroll1height = 1215
  818.  cmdsimplifytop = 500
  819.  cmdsimplifyleft = 500
  820.  cmdsimplifywidth = 855
  821.  cmdgobacktop = 500
  822.  cmdgobackleft = 500
  823.  cmdgobackwidth = 855
  824. End Sub
  825. Private Sub resizeall()
  826.  'called by piccode_Click, contentspre(), contents(), ..
  827.  scw = old6785 / Form1.Width  'ratios based on defaults
  828.  sch = old4950 / Form1.Height
  829.  fsr = 2 / (scw + sch) 'font size ratio is the average _
  830.   of new ratios of Form height and width
  831.  fs = 8
  832.  lblmain.FontSize = fs * fsr
  833.  lblcom.FontSize = fs * fsr
  834.  piccode.FontSize = fs * fsr
  835.  picTable.FontSize = fs * fsr
  836.  lblqcom.FontSize = fs * fsr
  837.  'lblalg.FontSize = 7 * fsr
  838.  lblqskip.FontSize = 8.25 * fsr
  839.  'lblqadv.FontSize = 7 * fsr
  840.  'lblbuil.FontSize = 7 * fsr
  841.  'lblfunct.FontSize = 7 * fsr
  842.  lblqpage.FontSize = fs * fsr
  843.  lblqprop.FontSize = fs * fsr
  844.  cmdcd1.FontSize = fs * fsr
  845.  cmdcd2.FontSize = fs * fsr
  846.  cmdcd3.FontSize = fs * fsr
  847.  cmdcd4.FontSize = fs * fsr
  848.  cmdcd5.FontSize = fs * fsr
  849.  cmdnext.FontSize = fs * fsr
  850.  cmdback.FontSize = fs * fsr
  851.  cmdA0.FontSize = fs * fsr
  852.  cmdbc9.FontSize = fs * fsr
  853.  cmdrun.FontSize = fs * fsr
  854.  cmdboxoffice.FontSize = fs * fsr
  855.  cmdrnd.FontSize = fs * fsr
  856.  cmbvtyp.FontSize = fs * fsr
  857.  cmbansi.FontSize = fs * fsr
  858.  txtcode.FontSize = fs * fsr
  859.  lblmain.Top = 480 / sch
  860.  lblcom.Top = 3480 / sch
  861.  lblalg.Top = 165 / sch
  862.  lblqa1.Top = 1000 / sch
  863.  lblqa2.Top = 500 / sch
  864.  lblfunct.Top = 4150 / sch
  865.  'lblqadv.Top = 20 / sch
  866.  lblqcom.Top = 3480 / sch
  867.  lblqpage.Top = 120 / sch
  868.  lblqprop.Top = 1200 / sch
  869.  lblqskip.Top = 3750 / sch
  870.  lblchaptr.Top = 120 / sch
  871.  lblbuil.Top = 3975 / sch
  872.  lblobj.Top = 4350 / sch
  873.  cmdcopy.Top = cmdcopytop / sch
  874.  cmdcd1.Top = 120 / sch
  875.  cmdcd2.Top = 120 / sch
  876.  cmdcd3.Top = 120 / sch
  877.  cmdcd4.Top = 120 / sch
  878.  cmdcd5.Top = 120 / sch
  879.  cmd1lv1.Top = 3840 / sch
  880.  cmd2lv1.Top = 3840 / sch
  881.  cmd1mv1.Top = 3840 / sch
  882.  cmd2mv1.Top = 3840 / sch
  883.  cmdA0.Top = 3960 / sch
  884.  cmdnext.Top = 3960 / sch
  885.  cmdbc9.Top = 3960 / sch
  886.  cmdback.Top = 3960 / sch
  887.  txtcode.Top = txtcodetop / sch
  888.  lblmain.Height = 780 / sch
  889.  lblcom.Height = 855 / sch
  890.  lblalg.Height = 165 / sch
  891.  lblqa1.Height = 4575 / sch
  892.  lblqa2.Height = 4575 / sch
  893.  lblfunct.Height = 165 / sch
  894.  lblqadv.Height = 165 / sch
  895.  lblqcom.Height = 255 / sch
  896.  lblqpage.Height = 255 / sch
  897.  lblqprop.Height = 255 / sch
  898.  lblqskip.Height = 195 / sch
  899.  lblchaptr.Height = 375 / sch
  900.  lblbuil.Height = 165 / sch
  901.  lblobj.Height = 165 / sch
  902.  cmdcopy.Height = 255 / sch
  903.  cmdcd1.Height = 255 / sch
  904.  cmdcd2.Height = 255 / sch
  905.  cmdcd3.Height = 255 / sch
  906.  cmdcd4.Height = 255 / sch
  907.  cmdcd5.Height = 255 / sch
  908.  cmdgoback.Height = 375 / sch
  909.  cmdsimplify.Height = 375 / sch
  910.  cmdrnd.Height = 375 / sch
  911.  cmdrun.Height = 375 / sch
  912.  cmdboxoffice.Height = 375 / sch
  913.  cmd1lv1.Height = 375 / sch
  914.  cmd2lv1.Height = 375 / sch
  915.  cmd1mv1.Height = 375 / sch
  916.  cmd2mv1.Height = 375 / sch
  917.  cmdA0.Height = 375 / sch
  918.  cmdnext.Height = 375 / sch
  919.  cmdbc9.Height = 375 / sch
  920.  cmdback.Height = 375 / sch
  921.  txtcode.Height = txtcodeheight / sch
  922.  lblchaptr.Left = 1920 / scw
  923.  lblmain.Left = 1635 / scw
  924.  lblqadv.Left = 20 / scw
  925.  lblcom.Left = 1680 / scw
  926.  lblqcom.Left = 840 / scw
  927.  lblalg.Left = 210 / scw
  928.  lblqprop.Left = 5160 / scw
  929.  lblqpage.Left = 4680 / scw
  930.  lblqskip.Left = 75 / scw
  931.  lblbuil.Left = 90 / scw
  932.  lblfunct.Left = 110 / scw
  933.  lblobj.Left = 120 / scw
  934.  cmdcopy.Left = cmdcopyleft / scw
  935.  txtcode.Left = txtcodeleft / scw
  936.  cmdA0.Left = 4920 / scw
  937.  cmdnext.Left = 4920 / scw
  938.  cmdback.Left = 4320 / scw
  939.  cmdbc9.Left = 4320 / scw
  940.  cmdcd1.Left = 5160 / scw
  941.  cmdcd2.Left = cmdcd1.Left + 240
  942.  cmdcd3.Left = cmdcd2.Left + 240
  943.  cmdcd4.Left = cmdcd3.Left + 240
  944.  cmdcd5.Left = cmdcd4.Left + 240
  945.  lblchaptr.Width = 2775 / scw
  946.  lblmain.Width = 3540 / scw
  947.  lblcom.Width = 2415 / scw
  948.  lblqcom.Width = 735 / scw
  949.  lblalg.Width = 1825 / scw
  950.  lblqprop.Width = 1215 / scw
  951.  lblqpage.Width = 375 / scw
  952.  lblqskip.Width = 735 / scw
  953.  lblbuil.Width = 1695 / scw
  954.  lblfunct.Width = 1695 / scw
  955.  lblobj.Width = 615 / scw
  956.  cmdcopy.Width = 975 / scw
  957.  cmdA0.Width = 650 / scw
  958.  cmdnext.Width = 650 / scw
  959.  cmdback.Width = 600 / scw
  960.  cmdbc9.Width = 600 / scw
  961.  cmdrun.Width = 615 / scw
  962.  cmdrnd.Width = 735 / scw
  963.  cmdboxoffice.Width = 615 / scw
  964.  txtcode.Width = txtcodewidth / scw
  965.  piccode.Top = piccodetop / sch
  966.  VScroll1.Top = vscroll1top / sch
  967.  HScroll1.Top = hscroll1top / sch
  968.  cmdrun.Top = cmdruntop / sch
  969.  cmdrnd.Top = cmdrndtop / sch
  970.  cmdsimplify.Top = cmdsimplifytop / sch
  971.  cmdgoback.Top = cmdgobacktop / sch
  972.  cmdboxoffice.Top = cmdboxofficetop / sch
  973.  piccode.Height = piccodeheight / sch
  974.  VScroll1.Height = vscroll1height / sch
  975.  piccode.Left = piccodeleft / scw
  976.  VScroll1.Left = vscroll1left / scw
  977.  HScroll1.Left = hscroll1left / scw
  978.  cmdrun.Left = cmdrunleft / scw
  979.  cmdrnd.Left = cmdrndleft / scw
  980.  cmdsimplify.Left = cmdsimplifyleft / scw
  981.  cmdgoback.Left = cmdgobackleft / scw
  982.  cmdboxoffice.Left = cmdboxofficeleft / scw
  983.  piccode.Width = piccodewidth / scw
  984. If aIndex <> 11 Then
  985.  picTable.Top = pictabletop / sch
  986.  picTable.Width = pictablewidth / scw
  987.  picTable.Height = pictableheight / sch
  988.  picTable.Left = pictableleft / scw
  989. End If
  990.  HScroll1.Width = hscroll1width / scw
  991.  cmdrun.Width = cmdrunwidth / scw
  992.  cmdrnd.Width = cmdrndwidth / scw
  993.  cmdsimplify.Width = cmdsimplifywidth / scw
  994.  cmdgoback.Width = cmdgobackwidth / scw
  995.  cmdboxoffice.Width = cmdboxofficewidth / scw
  996.  'old6785 = Form1.width
  997.  'old4950 = Form1.height
  998.  cmbvtyp.Width = cmbvtypwidth / scw 'set in _dropdown and _Validate
  999.  cmbvtyp.Left = cmbvtypleft / scw
  1000.  cmbvtyp.Top = cmbvtyptop / sch
  1001.  cmbansi.Width = cmbansiwidth / scw
  1002.  cmbansi.Left = cmbansileft / scw
  1003.  cmbansi.Top = cmbansitop / sch
  1004.  txtin.Left = txtinleft / scw
  1005.  txtin.Width = txtinwidth / scw
  1006.  txtin.Top = txtintop / sch
  1007.  'Call contentspre
  1008. End Sub
  1009. Private Sub qscolor(qline As String, ByVal qcolor As Byte, ByVal append As Byte)
  1010. Select Case qcolor
  1011. Case 0
  1012. piccode.ForeColor = vbBlack
  1013. Case 1
  1014.  piccode.ForeColor = vbBlue
  1015. Case 2
  1016.  piccode.ForeColor = vbRed
  1017. Case 3
  1018.  piccode.ForeColor = vbYellow
  1019. Case 4
  1020.  piccode.ForeColor = vbGreen
  1021. Case 5
  1022.  piccode.ForeColor = vbWhite
  1023. Case 6
  1024.  piccode.ForeColor = vbMagenta
  1025. Case 7
  1026.  piccode.ForeColor = vbCyan
  1027. End Select
  1028. If append = 0 Then
  1029.  piccode.Print qline
  1030.  piccode.Print qline;
  1031. End If
  1032. piccode.ForeColor = vbBlack
  1033. End Sub
  1034. Private Sub cmbvtyp_DropDown()
  1035. 'cmbvtyp.Left = 170 / scw
  1036. cmbvtyp.Width = 5740 / scw
  1037. End Sub
  1038. Private Sub cmbvtyp_Validate(Cancel As Boolean)
  1039. 'cmbvtyp.Left = 900 / scw
  1040. cmbvtyp.Width = cmbvtypwidth / scw
  1041. cmbvtyp.Text = "VarTypes"
  1042. End Sub
  1043. Private Sub cmbansi_DropDown()
  1044. cmbansi.Width = 1435 / scw
  1045. cmbvtyp.Left = 1650 / scw
  1046. End Sub
  1047. Private Sub cmbansi_Validate(Cancel As Boolean)
  1048. cmbansi.Width = 865 / scw
  1049. cmbansi.Text = "ANSI"
  1050. cmbvtyp.Left = 1090 / scw
  1051. End Sub
  1052. Private Sub lblmain_Click()
  1053. If cancelbyte(1) = 0 Then
  1054. lblqa1.Visible = True
  1055. cancelbyte(1) = 1
  1056. lblfunct.Visible = False
  1057. lblbuil.Visible = False
  1058. lblobj.Visible = False
  1059. lblqskip.Visible = False
  1060. lblmain.Visible = False
  1061. End If
  1062. End Sub
  1063. Private Sub lblqa1_Click()
  1064. lblqa1.Visible = False
  1065. lblqa2.Visible = True
  1066. End Sub
  1067. Private Sub lblqa2_click()
  1068. lblqa2.Visible = False
  1069. lblmain.Visible = True
  1070. lblmain.Caption = "We're ready to start.  Click the Command Button that says 'next'."
  1071. End Sub
  1072. Private Sub cmdA0_Click()
  1073. npage = 1
  1074. aIndex = aIndex + 1
  1075. backtrue = False
  1076. cmdbc9.Visible = True
  1077. Call contents
  1078. End Sub
  1079. Private Sub enableform()
  1080. cmdcd3.Enabled = True
  1081. cmdcd4.Enabled = True
  1082. cmdcd5.Enabled = True
  1083. cmdA0.Enabled = True
  1084. cmdbc9.Enabled = True
  1085. firsttime(1) = 1
  1086. firsttime(2) = 1
  1087. firsttime(3) = 1
  1088. firsttime(4) = 1
  1089. firsttime(5) = 1
  1090. End Sub
  1091. Private Sub clearform()
  1092. cmdrun.Visible = False: cmdcd1.Visible = False
  1093. cmdcd2.Visible = False: cmdcd4.Visible = False
  1094. HScroll1.Visible = False: cmdcd5.Visible = False
  1095. VScroll1.Visible = False: cmdcd3.Visible = False
  1096. cmd2mv1.Visible = False: cmd1mv1.Visible = False
  1097. cmd2lv1.Visible = False: cmd1lv1.Visible = False
  1098. txtin.Visible = False
  1099. 'lblqpage.Visible = False
  1100. 'lblqprop.Visible = False
  1101. cmdgoback.Visible = False
  1102. cmdsimplify.Visible = False
  1103. End Sub
  1104. Private Sub clearqs() 'this sub is called just before _
  1105.  a sub assigns values to qs().
  1106.  For fn1 = 1 To 99
  1107.   qs(fn1) = ""
  1108.  Next fn1
  1109. End Sub
  1110. Private Sub contents()
  1111. Select Case aIndex
  1112. Case 1
  1113.  Call resizeall
  1114.  cmdback.Visible = False
  1115.  lblqpage.Caption = ""
  1116.  lblchaptr.Caption = "Indexing"
  1117.  lblmain.Caption = "'Slowly poofed' to me how to use only one next and one back command button."
  1118.  Call clearform
  1119.  lblcom.Caption = ""
  1120.  piccode.Visible = False: picTable.Visible = False
  1121. Case 2
  1122.  lblmain.Caption = "First I created a subroutine to make a general Form 'wipe'."
  1123.  piccodetop = 960: piccodeleft = 400: piccodewidth = 3540: piccodeheight = 2050
  1124.  Call resizeall
  1125.  piccode.Cls: piccode.Visible = True
  1126.  picTable.Visible = False
  1127.  piccode.Print "Private Sub clearform()"
  1128.  piccode.Print " cmdrun.Visible = False: cmdcd1.Visible = False"
  1129.  piccode.Print " cmdcd2.Visible = False: cmdcd3.Visible = False"
  1130.  piccode.Print " cmdcd4.Visible = False: cmdcd5.Visible = False"
  1131.  piccode.Print " HScroll1.Visible = False"
  1132.  piccode.Print " VScroll1.Visible = False"
  1133.  piccode.Print " piccode.Visible = False"
  1134.  piccode.Print " picTable.Visible = False"
  1135.  piccode.Print " txtin.Visible = False"
  1136.  piccode.Print "End Sub ";: Call qscolor("'cmdcd* are my page buttons", blue, 0)
  1137.  lblcom.Caption = ""
  1138. Case 3
  1139.  piccode.Visible = False: picTable.Visible = False
  1140.  lblmain.Caption = "Then I made the new next and back buttons.  aIndex can be accessed by all subs."
  1141.  piccodeleft = 3290: piccodewidth = 2090
  1142.  pictablewidth = 2170: pictableleft = 990: piccodetop = 960
  1143.  pictabletop = 960: pictableheight = 1600: piccodeheight = 1250
  1144.  Call resizeall
  1145.  lblcom.Caption = "Private Sub contents() is an entire menu, where aIndex is a menu item."
  1146.   piccode.Visible = True: picTable.Visible = True
  1147.  piccode.Cls
  1148.  picTable.Print "Dim aIndex As Integer"
  1149.  piccode.Print "Private Sub cmdnext_Click()"
  1150.  piccode.Print " aIndex = aIndex + 1"
  1151.  piccode.Print " If aIndex > 34 Then"
  1152.  piccode.Print "  aIndex = 34: End If"
  1153.  piccode.Print " Call contents"
  1154.  piccode.Print "End Sub"
  1155.  picTable.Cls: picTable.Visible = True
  1156.  picTable.Print "Private Sub cmdback_Click()"
  1157.  picTable.Print " aIndex = aIndex - 1"
  1158.  picTable.Print " If aIndex < 1 Then"
  1159.  'picTable.Print "  cmdback.Visible = False"
  1160.  picTable.Print "  aIndex = 1"
  1161.  picTable.Print " Else"
  1162.  picTable.Print "  Call contents"
  1163.  picTable.Print " End If"
  1164.  picTable.Print "End Sub"
  1165. Case 4
  1166.  lblchaptr.Caption = "Indexing"
  1167.  cmdbc9.Caption = "back": cmdA0.Caption = "next"
  1168.  lblmain.Caption = "Here is the meat and potatoes.": picTable.Visible = False
  1169.  piccode.Cls: piccodeheight = 2650: piccodeleft = 95
  1170.  piccodewidth = 6260: piccodetop = 800
  1171.  cmdcopy.Visible = False: txtcode.Visible = False
  1172.  Call resizeall
  1173.  piccode.Visible = True
  1174.  piccode.Print "Private Sub contents()"
  1175.  piccode.Print " Select Case aIndex"
  1176.  piccode.Print " Case 1"
  1177.  piccode.Print "  lblchaptr.Caption = " & q & "Indexing" & q
  1178.  piccode.Print "  Call clearform"
  1179.  piccode.Print "  lblmain.Caption = " & q & "'Slowly poofed' to me how to use only one next and one back command button." & q
  1180.  piccode.Print "  lblcom.Caption = " & q & "I will keep my previous buttons." & q
  1181.  piccode.Print
  1182.  piccode.Print " Case 2"
  1183.  piccode.Print "  lblmain.Caption =" & q & "First I created a subroutine to make a general Form 'wipe'." & q
  1184.  piccode.Print "  piccodetop = 960: piccodeleft = 400: piccodewidth = 3500: piccodeheight = 2000"
  1185.  piccode.Print "  piccode.Cls: piccode.Visible = True"
  1186.  piccode.Print "  .."
  1187.  lblcom.Caption = "cmdback drops the value of aIndex, and cmdnext increases the value."
  1188. Case 5
  1189.  Dim lintx As Byte  'For-Next counter
  1190.  lblchaptr.Caption = "File Access"
  1191.  lblmain.Caption = "A simple matter of knowing the code.  I'm using more regular programming conventions now, with 'l(local)str(string)quote'."
  1192.  piccodetop = 1115: piccodeleft = 40
  1193.  piccodewidth = 4150: piccodeheight = 3400
  1194.  pictabletop = 1055: pictableleft = 3490
  1195.  pictableheight = 1850: pictablewidth = 3430
  1196.  cmdcopyleft = 300: cmdcopytop = 750
  1197.  txtcodeleft = 400: txtcodewidth = 5700
  1198.  txtcodetop = 1100: txtcodeheight = 2650
  1199.  Call resizeall
  1200.  If txtcode.Visible = False Then
  1201.   cmdcopy.Visible = True
  1202.   picTable.Cls
  1203.   piccode.Cls: picTable.Visible = False: piccode.Visible = True
  1204.   piccode.Print qps & "LoadFavoriteQuotes()"
  1205.   piccode.Print " Dim lstrquote(1 To 100) As String"
  1206.   piccode.Print " Dim lstrauthor(1 To 100) As String"
  1207.   piccode.Print " Dim lbytindx As Byte: lbytindx = 1"
  1208.   piccode.Print " Open " & q & "c:\favquots.txt" & q & " For Input As #1"
  1209.   Call qscolor(" 'Input into 'Buffer 1'", red, 0)
  1210.   Call qscolor(" 'EOF(buffer 1)(line below) is a handy 'End Of File' function", red, 0)
  1211.   Call qscolor(" Do While ", mag, 1): piccode.Print "Not EOF(1)"
  1212.   piccode.Print "  Input #1, lstrquote(lbytindx), lstrauthor(lbytindx)"
  1213.   piccode.Print "  Call randomjumble(lstrquote(lbytindx), lstrauthor(lbytindx))"
  1214.   Call qscolor("  If ", blue, 1): piccode.Print "LCase(lstrauthor(lbytindx)) = " & q & "einstein" & q & " Then"
  1215.   piccode.Print "   Exit Do  ";: Call qscolor("'A quote from Einstein is a good place to stop.", red, 0)
  1216.   Call qscolor("  End If", blue, 0)
  1217.   piccode.Print "  lbytindx = lbytindx + 1";: Call qscolor("  'increment to next array slot", red, 0)
  1218.   Call qscolor(" Loop", mag, 0)
  1219.   piccode.Print " Close #1"
  1220.   piccode.Print "End Sub"
  1221.   lblcom.Caption = "Exit Do is a nice option."
  1222.  Else
  1223.   Call cmdcopy_Click
  1224.  End If
  1225. ' For lintx = 1 To 6
  1226. '  picTable.Print q & qs(lintx) & q & ", " & q & qs(lintx + 6)
  1227. ' Next lintx
  1228. Case 6
  1229.  lblmain.Caption = ""
  1230.  cmdrnd.Visible = False: picTable.Visible = False
  1231.  piccodetop = 685: piccodeleft = 130
  1232.  piccodewidth = 6190: piccodeheight = 2800
  1233.  cmdcopytop = 400
  1234.  txtcodeleft = 400: txtcodewidth = 5700
  1235.  txtcodetop = 1100: txtcodeheight = 2650
  1236.  txtcode.Visible = False
  1237.  Call resizeall
  1238.  If txtcode.Visible = False Then
  1239.   piccode.Cls
  1240.   piccode.Visible = True
  1241.   piccode.Print qps & "randomjumble(ByRef quote As String, ByRef author As String)"
  1242.   piccode.Print " Dim lsngrandom As Single, lstrjumble As String"
  1243.   piccode.Print " lstrjumble = " & q & q
  1244.   piccode.Print " Dim lintcount As Integer"
  1245.   piccode.Print " For lintcount = 1 To Len(author + quote)"
  1246.   piccode.Print "  lsngrandom = Rnd * 10  ";: Call qscolor("'deciding variable for lower or uppercase", blue, 0)
  1247.   piccode.Print "  If lsngrandom < 5 Then  ";: Call qscolor("'half of the time, we're making lowercase", blue, 0)
  1248.   piccode.Print "   lstrjumble = lstrjumble + LCase(Mid(author + quote, lintcount, 1))"
  1249.   piccode.Print "  Else"
  1250.   piccode.Print "   lstrjumble = lstrjumble + UCase(Mid(author + quote, lintcount, 1))"
  1251.   piccode.Print "  End If";: Call qscolor("    'Adds 1 character from author+quote string, randomly upper or lower-cased", blue, 0)
  1252.   piccode.Print " Next lintcount";: Call qscolor("   'each time.", blue, 0)
  1253.   piccode.Print " picTable.Print q & Right(lstrjumble, Len(quote) & q & " & q & " - " & q & " & Left(lstrjumble, Len(author))"
  1254.   piccode.Print "End Sub"
  1255.   lblcom.Caption = ""
  1256.  Else
  1257.   Call cmdcopy_Click
  1258.  End If
  1259. Case 7
  1260.  cmdcopy.Visible = False
  1261.  lblchaptr.Caption = "File Access"
  1262.  lblcom.Caption = ""
  1263.  lblmain.Caption = "The strings here are stored in an array in this tutorial."
  1264.  cmdcopy.Visible = False
  1265.  txtcode.Visible = False
  1266.  qs(1) = "Healthy food is tasty."
  1267.  qs(2) = "Today is watering day."
  1268.  qs(3) = "Did you see that?"
  1269.  qs(4) = "The rainbow softened the meadow."
  1270.  qs(5) = "Cool."
  1271.  qs(6) = "Hey there, chalupa."
  1272.  qs(7) = "Captain Veggie"
  1273.  qs(8) = "neighbor"
  1274.  qs(9) = "the cat"
  1275.  qs(10) = "somebody"
  1276.  qs(11) = "Einstein"
  1277.  qs(12) = "me"
  1278.  cmdrndtop = 870
  1279.  cmdrnd.Visible = True
  1280.  piccode.Visible = False: picTable.Visible = False
  1281.  picTable.Cls
  1282.  piccodeleft = 120: pictableleft = 2000
  1283.  pictabletop = 1260: pictableheight = 1050
  1284.  pictablewidth = 4100: picTable.Visible = True
  1285.  piccodetop = 2400: piccodewidth = 3740
  1286.  piccodeheight = 1640: piccode.Visible = True
  1287.  Call resizeall
  1288.  picTable.Print "Took me 2 hours to get this to work"
  1289.  piccode.Cls
  1290.  piccode.Print "   contents of " & q & "C:\favquots.txt" & q
  1291.  piccode.Print
  1292.  For fn1 = 1 To 6
  1293.   piccode.Print q & qs(fn1) & q & ", " & q & qs(fn1 + 6) & q
  1294.  Next fn1
  1295. Case 8
  1296.  cmdrnd.Visible = False
  1297.  'Form1.Scale (0, 0)-(6675, 4920)
  1298.  picTable.Scale (0, 0)-(100, 100)
  1299.  picTable.Visible = False: piccode.Visible = False
  1300.  'I do this sometimes because certain instances of _
  1301.   resizing look glitchy
  1302.  lblchaptr.Caption = "Arrays 2"
  1303.  lblmain.Caption = "A 2-dimensional Array, like a calendar grid .. we see Varname(First col To Last col, First row To Last row) .. Arrays can have more than 2 dimensions."
  1304.  piccodetop = 1355: piccodeleft = 700: piccodewidth = 3200: piccodeheight = 2000
  1305.  pictabletop = 2765: pictableleft = 3990: picTable.Cls: pictableheight = 450
  1306.  pictablewidth = 1530
  1307.  Call resizeall
  1308.  piccode.Cls: picTable.Visible = True: piccode.Visible = True
  1309.  piccode.Print " Dim i As Integer, j As Integer"
  1310.  piccode.Print " Dim arraymult(";: Call qscolor("2 To 3", mag, 1): piccode.Print ", ";: Call qscolor("1 To 5", blue, 1): piccode.Print ") As Integer"
  1311.  piccode.Print " 'each 'rectangle' holds an integer"
  1312.  piccode.Print
  1313.  Call qscolor(" For i = 2 To 3", mag, 0)
  1314.  Call qscolor("  For j = 1 To 5", blue, 0)
  1315.  piccode.Print "   arraymult(";: Call qscolor("i", mag, 1): piccode.Print ", ";: Call qscolor("j", blue, 1): piccode.Print ") = j * i"
  1316.  piccode.Print "   picTable.Print arraymult(";: Call qscolor("i", mag, 1): piccode.Print ", ";: Call qscolor("j", blue, 1): piccode.Print "); " & q & "  " & q & ";"
  1317.  Call qscolor("  Next j", blue, 1): piccode.Print ": picTable.Print"
  1318.  Call qscolor(" Next i", mag, 0)
  1319.  Dim i As Integer, j As Integer
  1320.  Dim arraymult(2 To 3, 1 To 5) As Integer
  1321.  For i = 2 To 3: For j = 1 To 5: arraymult(i, j) = j * i
  1322.   picTable.Print arraymult(i, j); "  ";: Next j: picTable.Print: Next i
  1323.  lblcom.Caption = "I am simply loading values quickly into each 'compartment' or 'rectangle'."
  1324.  VScroll1.Visible = False
  1325. Case 9
  1326.  piccodetop = 860: piccodeleft = 120
  1327.  piccodeheight = 3500: piccodewidth = 4100
  1328.  Call resizeall
  1329.  lblchaptr.Caption = "Boolean"
  1330.  lblmain.Caption = "Boolean Variables"
  1331.  piccode.Cls
  1332.  piccode.Print "Dim tall As Boolean"
  1333.  piccode.Print "Dim nplayers As Integer"
  1334.  piccode.Print " .."
  1335.  piccode.Print qps + "heighttest(feet As Integer, inches As Single)"
  1336.  piccode.Print " Dim totalinches As Single"
  1337.  'piccode.Print " standtall = False  ";: Call qscolor("'Setting this as Default", blue, 0)
  1338.  piccode.Print " totalinches = inches + feet * 12"
  1339.  piccode.Print " If totalinches > 73 Then"
  1340.  piccode.Print "  ";: Call qscolor("tall", blue, 1): piccode.Print " = True"
  1341.  piccode.Print "  nplayers = nplayers + 1"
  1342.  piccode.Print " Else"
  1343.  piccode.Print "  ";: Call qscolor("tall", blue, 1): piccode.Print " = False"
  1344.  piccode.Print " End If"
  1345.  piccode.Print "End Sub"
  1346.  piccode.Print " .."
  1347.  piccode.Print qps + "uniform(tall, team)"
  1348.  piccode.Print " If ";: Call qscolor("tall", blue, 1): piccode.Print " Then"
  1349.  piccode.Print "  lblusize = " & q & "XLarge" & q
  1350.  piccode.Print " End If"
  1351.  piccode.Print " .."
  1352.  picTable.BackColor = vbWhite: picTable.ForeColor = vbBlack
  1353.  picTable.Visible = False
  1354.  lblcom.Caption = ""
  1355. Case 10
  1356.  lblchaptr.Caption = "Graphics"
  1357.  picTable.BackColor = vbBlack
  1358.  pictabletop = 1160: pictableheight = 1400
  1359.  pictablewidth = 1800: pictableleft = 4320
  1360.  piccodetop = 1160
  1361.  piccodeheight = 3000
  1362.  piccodeleft = 220
  1363.  piccodewidth = 3920
  1364.  Call resizeall
  1365.  lblmain.Caption = q & "Wohoo!" & q & "  This is what I always look forward to learning in any programming language.  There are at least 3 methods for changing color."
  1366.  piccode.Cls
  1367.  piccode.Print " .."
  1368.  piccode.Print " Dim pi As Single: pi = 3.14159"
  1369.  piccode.Print " Dim x As Single"
  1370.  piccode.Print " picTable.backcolor = RGB(100, 95, 120)"
  1371.  piccode.Print " picTable.Cls"
  1372.  piccode.Print " picTable.Scale (-20, 12)-(120, -2)"
  1373.  piccode.Print
  1374.  piccode.Print " For x = 0 to 100 Step 0.2"
  1375.  Call qscolor(" 'plot about 500 points per function", blue, 0)
  1376.  piccode.Print "  picTable.PSet (5*x, sin(x/3)), RGB(199, 0, Int(255 - x*2))"
  1377.  piccode.Print "  picTable.Pset (x, Sin(x) + 3), vbGreen"
  1378.  piccode.Print "  picTable.Pset (x, Cos(x) + 2), vbYellow"
  1379.  piccode.Print " Next x"
  1380.  Dim x1 As Single
  1381.  picTable.BackColor = RGB(100, 95, 120)
  1382.  picTable.Cls
  1383.  picTable.Scale (-20, 12)-(120, -2)
  1384.  For x1 = 0 To 100 Step 0.2
  1385.  picTable.PSet (5 * x1, Sin(x1 / 3)), RGB(199, 0, Int(255 - x1 * 2))
  1386.  picTable.PSet (x1, Sin(x1) + 3), vbGreen
  1387.  picTable.PSet (x1, Cos(x1) + 2), vbYellow
  1388.  Next x1
  1389.  picTable.Visible = True
  1390.  piccode.Visible = True
  1391.  cmdrun.Visible = False
  1392. Case 11
  1393.  picTable.FillColor = vbBlack
  1394.  picTable.BackColor = vbWhite: picTable.ForeColor = vbBlack
  1395.  VScroll1.Visible = False: cmdrun.Visible = False
  1396.  piccode.Visible = False: piccode.Cls
  1397.  picTable.FontSize = 8
  1398.  picTable.Top = 1160 / sch: picTable.Left = 400 / scw
  1399.  picTable.Width = 5700: picTable.Height = 2600
  1400.  picTable.Scale (0, 0)-(70, 28)
  1401. 'piccodetop = 1160: piccodeleft = 200
  1402. 'piccodewidth = 2600: piccodeheight = 1400
  1403.  'Call resizeall
  1404.  picTable.Cls
  1405.  lblmain.Caption = "Bar, Bar Filled..  To use any of the fillstyles 1 to 7 you must use , , B"
  1406.  picTable.CurrentX = 0
  1407.  picTable.CurrentY = 0.5
  1408.  picTable.Print "(x1, y1)"; Tab(39); "(x1,y1)"
  1409.  picTable.Print: picTable.Print
  1410.  picTable.CurrentY = 5.8
  1411.  picTable.Print Tab(26); "(x2, y2)"; Tab(62); "(x2, y2)"
  1412.  picTable.Line (3, 3)-(26, 5.5), , B
  1413.  picTable.Line (38.3, 3)-(59.4, 5.5), , BF
  1414.  picTable.Print: picTable.Print
  1415.  picTable.Print "picTable.Line (x1, y1) - (x2, y2), , B"; Tab(39); "picTable.Line (x1, y1) - (x2, y2), , BF"
  1416.  picTable.Print: picTable.CurrentX = 38.8
  1417.  picTable.CurrentY = 15
  1418.  picTable.Print "picTable.DrawStyle = "
  1419.  Dim CY As Single
  1420.  For fn1 = 0 To 4
  1421.  CY = (fn1 + 1) * 2.1 + 16
  1422.  picTable.CurrentX = 36: picTable.CurrentY = CY - 1
  1423.  picTable.Print fn1
  1424.  picTable.DrawStyle = fn1
  1425.  picTable.Line (39, CY)-(60, CY)
  1426.  Next fn1
  1427.  picTable.DrawStyle = 0
  1428.  picTable.CurrentX = 0
  1429.  picTable.CurrentY = 13.5: picTable.Print "picTable.Fillstyle ="
  1430.  picTable.Print
  1431.  For fn1 = 1 To 4
  1432.  CY = (fn1 + 1) * 2.9 + 10.8
  1433.  picTable.FillStyle = fn1 - 1
  1434.  picTable.CurrentX = 0: picTable.CurrentY = CY + 0.2
  1435.  picTable.Print fn1 - 1
  1436.  picTable.Line (3, CY)-(13, CY + 2.4), , B
  1437.  picTable.CurrentX = 16: picTable.CurrentY = CY + 0.2
  1438.  picTable.Print fn1 + 3
  1439.  picTable.FillStyle = fn1 + 3
  1440.  picTable.Line (19, CY)-(31, CY + 2.4), , B
  1441.  Next fn1
  1442.  picTable.FillStyle = 1
  1443. Case 12
  1444.  lblmain.Caption = "Positioning Text"
  1445.  picTable.Cls: piccode.Cls: cmdruntop = 870
  1446.  cmdrun.Visible = True
  1447.  piccodeleft = 440: piccodetop = 1300
  1448.  piccodeheight = 2200: piccodewidth = 3960
  1449.  piccode.Visible = True
  1450.  pictableleft = 4510: pictabletop = 1300
  1451.  pictablewidth = 1830: pictableheight = 1830
  1452.  Call resizeall
  1453.  Call clearqs: VScroll1.Min = 1: VScroll1.Max = 14
  1454.  VScroll1.Value = 1
  1455.  VScroll1.Visible = True
  1456.  qs(1) = "Private Sub cmdrun_Click"
  1457.  qs(2) = " Select Case aIndex"
  1458.  qs(3) = " .."
  1459.  qs(4) = " Case 12"
  1460.  qs(5) = " Dim qx As Single, qy As Single"
  1461.  qs(6) = " picTable.Cls"
  1462.  qs(7) = " picTable.Scale (-1.8, 11) - (11, -1.8)"
  1463.  qs(8) = " picTable.Line (0, 0) - (0, 10)"
  1464.  qs(9) = " picTable.Line (0, 0) - (10, 0)"
  1465. 'qs(10) = " picTable.currentY = 3 - picTable.TextHeight(" & q & "y=3" & q & ") / 2"
  1466.  qs(11) = " For fn1 = 0 To 10  'modular all-purpose Integer"
  1467.  qs(12) = "  picTable.Line (n1, .2)-(n1, -0.2), vbBlue"
  1468.  qs(13) = "  picTable.CurrentX = n1 - picTable.TextWidth(n1)"
  1469.  qs(14) = "  picTable.CurrentY = -.3"
  1470.  qs(15) = "  picTable.Print n1"
  1471.  qs(16) = "  qy = Int(2.8 * n1 - 10)"
  1472.  qs(17) = "  If qy >= 0 and qy <= 10 Then"
  1473.  qs(18) = "   picTable.Line (-.3, qy) - (.2, qy), vbMagenta"
  1474.  qs(19) = "   picTable.CurrentX = -1.4"
  1475.  qs(20) = "   picTable.CurrentY = qy - picTable.TextHeight(qy) / 2"
  1476.  qs(21) = "   picTable.Print qy"
  1477.  qs(22) = "   End If: Next n1"
  1478.  qs(23) = "End Sub"
  1479.  Call VScommon
  1480. Case 13 'cmdrun_Click sel case aIndex
  1481.  'lblmain.Caption = "Arc-circle option and the FillStyle method"
  1482.  lblmain.Caption = ""
  1483.  picTable.Cls: piccode.Cls: cmdruntop = 760
  1484.  piccodeleft = 220: piccodetop = 1160
  1485.  piccodeheight = 2800: piccodewidth = 3560
  1486.  pictableleft = 4100: pictabletop = 1160
  1487.  pictablewidth = 1800: pictableheight = 1400
  1488.  Call resizeall
  1489.  piccode.Print "Private Sub cmdrun_Click()"
  1490.  piccode.Print " Dim c As Single, a As Single, b As Single"
  1491.  piccode.Print " picTable.cls"
  1492.  piccode.Print " picTableleft = 4100: picTabletop = 1160"
  1493.  piccode.Print " picTablewidth = 1800: picTableheight = 1400"
  1494.  piccode.Print " picTable.Scale (1, 1)-(60, 60)"
  1495.  piccode.Print " c = 2 * 3.14159"
  1496.  piccode.Print " a = .0000001"
  1497.  piccode.Print " b = .4  ";: Call qscolor("'40%", blue, 0)
  1498.  piccode.Print " picTable.Scale (1, 1)-(60, 60)"
  1499.  piccode.Print " picTable.FillStyle = 5"
  1500.  piccode.Print " picTable.FillColor = vbBlue"
  1501.  piccode.Print " picTable.Circle (30, 30), 20, , -a * c, -b * c"
  1502.  piccode.Print " picTable.FillStyle = 1";: Call qscolor("  'reset", blue, 0)
  1503.  piccode.Print "End Sub"
  1504.  VScroll1.Visible = False
  1505.  piccode.Visible = True: picTable.Visible = True
  1506.  cmdrun.Visible = True
  1507.  lblcom.Caption = ""
  1508. Case 14 'if change, remembr picTable_Click and VScommon Sel Case aIndex
  1509.  txtcode.Visible = False
  1510.  lblmain.Caption = "This will give you more of an idea about the RGB function and PSET method"
  1511.  VScroll1.Value = 2 'vscroll1.value = 1 later to _
  1512.  make text appear in piccode as VScroll1 changes.
  1513.  lblchaptr.Caption = "Graphics"
  1514.  piccodetop = 960: piccodeleft = 460
  1515.  piccodeheight = 2000: piccodewidth = 5200
  1516.  picTable.Scale (0, 0)-(100, 100)
  1517.  picTable.Cls
  1518.  pictabletop = 3110: pictableheight = 1200: pictableleft = 1800
  1519.  pictablewidth = 1600
  1520.  Call resizeall
  1521.  txtin.Visible = False
  1522.  Call clearqs
  1523.  lblcom.Caption = ""
  1524.  qs(1) = "Dim x(40) As Single, y(40) As Single, r(40) As Single"
  1525.  qs(2) = "Dim incred(40) As Single, incgrn(40) As Single, incblu(40) As Single"
  1526.  qs(3) = "Dim ared(40) As Integer, agrn(40) As Integer, ablu(40) As Integer"
  1527.  qs(4) = "Dim colorshift As Integer, csi As Integer, satur As Integer, scl As Integer"
  1528.  qs(6) = ""
  1529.  qs(5) = "Dim n As Byte"
  1530.  qs(7) = "Private Sub picTable_Click()"
  1531.  qs(8) = "Select Case aIndex"
  1532.  qs(9) = "Case 7: Dim z, az, angle, ar, pi, wx As Single"
  1533.  qs(10) = ""
  1534.  qs(11) = " pi = 3.141593: picTable.Cls"
  1535.  qs(12) = " picTable.Scale (-200, 200)-(200, -200)"
  1536.  qs(13) = " satur = 90 'saturation"
  1537.  qs(14) = ""
  1538.  qs(15) = " For n = 1 To 40"
  1539.  qs(16) = ""
  1540.  qs(17) = "  ared(n) = 255 * Rnd"
  1541.  qs(18) = "  agrn(n) = ared(n) + Rnd * satur - satur / 2.9"
  1542.  qs(19) = "  ablu(n) = agrn(n) + Rnd * satur - satur / 2.9"
  1543.  qs(20) = ""
  1544.  qs(21) = "  scl = 230 'larger value = more sparse cylinders"
  1545.  qs(22) = "  x(n) = Rnd * scl - scl / 2"
  1546.  qs(23) = "  y(n) = Rnd * scl - scl / 2"
  1547.  qs(24) = ""
  1548.  qs(25) = "  r(n) = 7 * Rnd + 10 'varying radii"
  1549.  qs(26) = ""
  1550.  qs(27) = "  csi = 2 'colorshift intensity"
  1551.  qs(28) = ""
  1552.  qs(29) = "  colorshift = Rnd * satur - satur / 2"
  1553.  qs(30) = "  incred(n) = colorshift"
  1554.  qs(31) = "  incgrn(n) = colorshift"
  1555.  qs(32) = "  incblu(n) = colorshift"
  1556.  qs(33) = " Next n"
  1557.  qs(34) = ""
  1558.  qs(35) = " For z = -70 To 400 Step 25"
  1559.  qs(36) = "  ar = 1250 / (1250 - z)"
  1560.  qs(37) = "  For n = 1 To 40"
  1561.  qs(38) = ""
  1562.  qs(39) = "   Call straightencolor(ared(n))"
  1563.  qs(40) = "   Call straightencolor(agrn(n))"
  1564.  qs(41) = "   Call straightencolor(ablu(n))"
  1565.  qs(42) = ""
  1566.  qs(43) = "   For a = 0 To 2 * pi Step 2 * pi / 9"
  1567.  qs(44) = "    picTable.PSet (ar * (r(n) * Sin(a) + x(n)), _"
  1568.  qs(45) = "    ar * (r(n) * Cos(a) + y(n))), _"
  1569.  qs(46) = "    RGB(ared(n), agrn(n), ablu(n))"
  1570.  qs(47) = "   Next a"
  1571.  qs(48) = ""
  1572.  qs(49) = "   ared(n) = ared(n) - incred(n)"
  1573.  qs(51) = "   agrn(n) = agrn(n) - incgrn(n)"
  1574.  qs(51) = "   ablu(n) = ablu(n) - incblu(n)"
  1575.  qs(52) = ""
  1576.  qs(53) = "  Next n"
  1577.  qs(54) = " Next z"
  1578.  qs(55) = "End Select"
  1579.  qs(56) = "End Sub"
  1580.  qs(57) = "Private Sub straightencolor(ByRef color As Integer)"
  1581.  qs(58) = " If color < 0 Then"
  1582.  qs(59) = "  color = color + 255: End If"
  1583.  qs(60) = " If color > 255 Then"
  1584.  qs(61) = "  color = color - 255: End If"
  1585.  qs(62) = "End Sub"
  1586.  VScroll1.Min = 1: VScroll1.Value = 1: VScroll1.Max = 57
  1587.  VScroll1.Visible = True: piccode.Visible = True
  1588.  picTable.Visible = True: picTable.Print "picTable"
  1589.  cmdrun.Visible = False
  1590. Case 15
  1591.  txtcode.Visible = False
  1592.  lblchaptr.Caption = "Text Filtering"
  1593.  subj = 7: npage = 3  'txtin_Change and txtin_KeyPress
  1594.  lblmain.Caption = "Here is how I axe non-numeric keystrokes and the Fifty thou": Call clearqs
  1595.  piccodeleft = 410: piccodewidth = 3700
  1596.  piccodetop = 1070: piccodeheight = 2300
  1597.  piccode.Visible = True: picTable.Visible = False
  1598.  VScroll1.Value = 1: VScroll1.Min = 1: VScroll1.Max = 17
  1599.  VScroll1.Visible = True: txtinwidth = 640
  1600.  txtinleft = 500: txtintop = 3380
  1601.  Call resizeall
  1602.  qs(1) = "Dim prevtext As String"
  1603.  qs(2) = "Private Sub txtin_change()"
  1604.  qs(3) = "Dim asc1 As String"
  1605.  qs(4) = "Dim lentxtin As Byte"
  1606.  qs(5) = " lentxtin = Len(txtin.Text)"
  1607.  qs(6) = " For fn1 = 1 To lentxtin  'no non-numeric keystrokes"
  1608.  qs(7) = "  asc1 = Asc(Mid(txtin.Text, fn1, 1))"
  1609.  qs(8) = "  If asc1 > 57 Or asc1 < 48 Then"
  1610.  qs(9) = "   txtin.Text = prevtext: Exit For: End If"
  1611.  qs(10) = " Next fn1"
  1612.  qs(11) = " If Val(txtin.Text) > 5hght = 255 = "  as"le.Visible = False
  1613.  "  as"le.Visible = FB agrn( For: End If"
  1614.  qs(10) = " Next fn1"
  1615.  qs(11) = " If Val(h15
  1616. For: g"
  1617. atyp.Left " Next f5 Val(tsc1 E2"
  1618.  lblmain1.Cls: cms(14) = ""
  1619.  qs(15) =blmain1.Cls: cms(14) = ""
  1620. (28) = "programming conventionA2ain1.Cls: 1Cls: cms(14)uqventionA2ain1.width = 7)uqve: cm40
  1621.  picTictablewi4)uqvent
  1622.  qs(47) = "   Nextsve: cm40a593: picTable.Cls"
  1623.  qs(1 g: 1Cls: cms(ccodldetopr - 255: End I
  1624.  qsOrings h55: Enqs
  1625.  topr - 255: End I
  1626.  qr("   ' fn1 = 1 Tapti2
  1627.  qs(6stB9"
  1628. , a As Single, b As n.V
  1629.  qsAs SingOri", blue, 1): 
  1630.  qs(11) = " If 22l (30lt(";: Call q colyqy A g, 0)
  1631.   piccode.Print " C(";:ifty thou": C(";:iftsjs(6smain.0uziB  N(6smain.0umain.0"
  1632.  qs(33) = " Next n" qy - picTme(5) rndwi" Next n" qy - picTme(ble = 25ksoin_B1.MaKor("'40%", blue, - picTme(bleFdwi" Neain.0"
  1633.  q'1yRef ctWiLPri5n.0"
  1634.  n" qy t. pipicTable.Pale (-200, 200870
  1635.  cmdrun.Visible ggef color 4 VScommon Sel Case aI
  1636. Caslec -b * c1dCls: piccode.Cls: cm
  1637.   piicTable.TextWOri", blue, 1): 
  1638.  qsdxer ode.Visible = False: icTable.Cls"3lec -b * c1dCls: piccode.C * c1dCls: piccode1picTable1dCls: piccodsmoluee.Visible = False
  1639.  "  as"le.Visi.) = "  coloru le (0, 0)37
  1640.  VScrE& q &y  -bs: piccode1picTable1"Private Sub t-icTable1"Private Sub t-icTabve: oll1l
  1641. th Table qs(6t
  1642.  " u pictablewnViscTable1"Prwtop = 3= " ared(n), agrn(n), ablu(n1dCls: pi14)uqvent, _"2000
  1643.  pictabletop = 2765: (
  1644. Case 8
  1645.  cnt, _"2000
  1646. = 3=: cms(14)pictablewnViskeystrokesnq  asc1 = Asc(
  1647.  End If
  1648. ' drnd.Vif col"lblm asc1 = Asc(
  1649.  End If
  1650. ' drn C= Asc(
  1651.  Endplbl: End48
  1652.  piccode.Print
  1653.  piccoqs(11) = "n.Visi"   txtin.Text = prev"s'p = 2765:o de.Xou2"s'p e = n1"98
  1654.  'p = 2765:= 7: npaFalse
  1655.  cmdrun.s"p Scr 'ratios F cmdcd3.Height = es"
  1656.  qs(7) = "d(n5:o de qsAs SingOri", blue, 1II9p = 2765:o dcTable"
  1657.  cmdrun.Vis6ojXf
  1658.  topr -picT
  1659.  qs(15) =blmain1.Cls: cms(14) = ""
  1660. (28) = "progr qs(51e = 1:  we = Tg this as Defaar qs(51e = 1:  we = Tg this as Defaar qseMr.Cap 22765 piccode.Print
  1661.  piccoqs(11) = "n.Vise
  1662. cmdbc9= CY +L End I
  1663.  qsO6= CY +L End I
  1664.  qsO6= CY +L End I
  1665.  qsO6= CY +Llb CY +L End I
  1666. esible =rFor: Endcolyqy A g
  1667. 2_cl End Iang"
  1668.  am sqs(26 I
  1669.  CY +Llb CYtop = 3380
  1670.  false
  1671.  "  as"le.Vi0(6 Next fn1"
  1672.  qs380
  1673.  farO6= CY +L End I
  1674.  q8) = ""
  1675.  qs(29).1"
  1676.  piccode3 I
  1677.  q8) = ""
  1678.  qs(29).1piccoqs(11) +xqI
  1679.  qsO6= CY : npaFaXf
  1680.  topt
  1681. esibles.s4-iscTablaEnd I
  1682.  q=id yo y (1.PSet (ain1Vs5:o :sain.0" End Iang"
  1683.  am sqs(26 I
  1684. ) = " Fo
  1685. F10 Then (ain) = end I
  1686. as"le.Visible = F
  1687.  Call resizeall
  1688.   " & q & q
  1689.   piccode
  1690. s"-s Deccode.Cls
  1691.   piccods Defaar qseMr.Cap 22765 picco iltyles 1 to 7 you mueMr.Cap 22765 picco ilt Else"
  1692. = CY +L End I
  1693.  q8) = DCls: piccode.Visible = True"
  1694.  piccode.Print "  .."
  1695.  lblcom.Caption = "cmdback droplption =o3mf 7:o;zi2 droplption =o3mf 7:o;zi2 droplp is a med9aaa med9aaa med9aaa med9aaa mer: Endcolyqy A g
  1696. 2scTablaEnd8med9a"  ..aa mer: Endcol5Visible = iccode.Pr6 1400
  1697.  pictabl: icTable.Cls"3lefarOq8) = DCls: piccode.Visible = T"bleyo y8f.9" th Table qs(6t
  1698.  " u pictabl-True
  1699.  5eu  holds an integeictae = o-K: npaFaXf
  1700.  topt
  1701. esibless2 ho2j = 375 ho2j = 375 ho2j = 375 ho2j = 375 ho2jTrue
  1702.  5eu5n ""
  1703.  qs(35) = qs(35)a
  1704.  VScrsn1.Cls: cms(cmdrue: txtinwidth = 640cmdrue: txtinwidth =y02u5n= nw= True"2h =nd Iang"
  1705.  1, 1)-(60, 60)"
  1706.  p rmon S)-(60, 60)"
  1707.  p rmon S)-(60R1Y +L Ene
  1708.  VScrE& q &y(60R1Y +L Ene
  1709.  VSle = True"
  1710.  piccode.PrinrE& q &y(60R1Y +L: piccode3 I
  1711. "GranPrint fn1
  1712.  picTable.
  1713. ast row) e.Linde.Pr6 1 Asc(
  1714.  5dn' drnnnd Iang"
  1715. 6_..Print " aIndex = aIndezi2 droplp i5 / schSingle"
  1716.  qs(2) = II9p plp i5 / schSingle"
  1717. ode.Pr6 1400
  1718.  pictab de.Pr6 1400
  1719.  pictab d6= "Did yp-3n = 865
  1720.  pictab " q..aa mer: Endcol5 If
  1721. ' drn C= Asc(
  1722.  Endplbl: run.s"po2j = 370
  1723.  pictab d6= "Did ll raor("    'Adds 1V  'Adds 1V  'Adds 1V aor("    'Adds 1"  ared(n) = 255 * Rnd"
  1724. ngle, qy As Single
  1725.  qs(59) , incgrn(  drn C= Asc(
  1726.  Endplbl: run.s"po2j = 370
  1727.  ,s5:o :sain.0" End 6drun.Dim ared(40) As Inj = 370
  1728.  ,sle
  1729.  qs(59) , incgr
  1730. d ll raor("    'Add
  1731.  qs(59) , incgr
  1732. dtfalse
  1733.  "  as"ley
  1734.  qsrL12p   'Add s 1"  abl: runr
  1735. d d6Dim z, apiccode.Print " If totalinsIf totalinsIf totae Ss
  1736.  C qs(2) = otaele1"Private Sub t-25"
  1737.  e.Visibl9W-25"55 * eancel As Boolean)
  1738. '.(6 Nexh=o3mf 7:o1isred(40) As Inj =k
  1739. cmdcplbl: run.s"poxe sf = 7)uqve: cm4r6 Inj =k
  1740. cmdcplbl: run.= n1 - picTable.Texu(02(cTable.Texu(02(cTable.Texu(02(cTable.Tet 500 poinable.Texu( 3 True"
  1741.  piccode.Prinsc(
  1742.  Endplbl: run.s"po2j = 370
  1743.  pictab d6= "Did ll raor("  I9p plp i5 / schSin = ""
  1744. "dru colorshift As Icoq cmd1mv1.Height = 375 / sch
  1745. dru cTablaEnd8med9a"  ..aa me= F
  1746.  Call = 370
  1747. cTa e= F
  1748.  Call = 1F
  1749.  Call = 1F
  1750.  Call isresibl Ta e= l rltion = " & q & "'Slowly poofed' to me how to useein.Text = ow to useein.Text = owa= Truhaptr d6Dim z, apiccode.PpicTable.Print q & qs(linp poofed' to me how to ule.Curre(21) = " h0asy prre(21) = " h0asy prre(2:. C qs(2) = otaele1"Private Sub t-25"
  1751.  e.Visibl9W-25"55 * eanc = o-K: npaFaovo ule.Curre(21) = " h09aaa med9aaa medatab d6= "Did ll ra: cmfnzipiccode.Print E.6= "tabl-TruebleFdwi" Neain.0"
  1752.  q'1yule.Curre(21) = " h0a =  E.6= "tabl-TruebleFdwi" Neain.0/de
  1753. s"-1u t EE.6= "ty,. med9aaa mer: Endcolyqy A g
  1754. 2scvent," b = .4   + CYtop = 3380
  1755.  false
  1756. 1s Sser: aaa medatab d6= "Did oya. med9aaa mer: Cue: e = True"
  1757.  picc3e(21) =Priva ll r3(red(n), Neain.0/de
  1758. ) = " Next z"
  1759.  q As Singlixt z"
  1760.  * eanc = o-K: npaFan
  1761.  q=id yo y  incblu(lsl"5id oya. me med9aaa mer: Cue: e =t = 220
  1762.  picu"
  1763.  * eanc = oopicTable.Scale 9aaa mer: Cue: e tal7=:o;zi2iLine (3ext  9aaa mer: Cub d6o;zi25 picco iltyles 1 to rm()
  1764. "  as"leseo rm(rivate S1i2iLine (w
  1765.  picTable.Widt:o;zi2iLine ( qs(27) = "  csi =)encolor(ByRef color As Integer1i2iLine (w6Widt:o;zi2iLine ( qs(27) =P / 'rintd9aaa30 1400
  1766.  pictab de.Ptraig7) = "  csi =)e>qs(27) =d2B765t: picTs3Y : npaP 67ow to useeiny  inc
  1767.  txtc0Texu( = 2 & q
  1768.  picITexu( = 2 & q
  1769.  picI1"  ared(n) = 255 * Rnd"
  1770. ngle, qy As Single
  1771.  qs(59) , incgrn(  drn C= Asc(
  1772.  Endplbl: run.s"po2j = 370
  1773.  ,s5:o Rnd"
  1774. ngle, qy As Single
  1775.  qs(t E.6ue"2h =nb1 255 blewnt " p = " & q & "'Sl = 2c0Texu( = 2 & q
  1776.  pic blewnIf"
  1777.  qs(62s"
  1778. en1.Cls: cm = 370
  1779.  ,sle
  1780.  qs(5 pi / 9"
  1781.  qs(44) = "4) = "4) = "4) = "4)"2h =nb1 255 blewnt " "4) = = " & q & "'Slowly p
  1782.  picc 1 to rm()
  1783. ;kaina =  Etxtin.uible =ruLa3Y : (n) + Rnd * satuq & "'Slowly p
  1784.   Etxtin.uibntx
  1785. 76& "'Slowly p
  1786.   Etxtit (w, qy As Single
  1787.  qs(59)  As Integer1i2iLine = Tl = 1F
  1788.  Call isresi7xtin.Text) "Here is how I axe non-numcmdrun.Vise.Pridrunnd I
  1789. esib non-numcmdrun.Vise.Prnt "  .."
  1790. = 0 To 10  
  1791. (28) = "prooll1.Max = 17
  1792.  VScroll1.Visiblc1 = Asc(
  1793.  0 8i7xtin.Text) "Here pend As Byte)
  1794. Selecte ggef color 4 VScommon Sel Ca,) =   sub is called just bend Asfalto ule.Curre(21) = "qTopicTa)n VScrooy in this2xt) "Here t  9aaa mer: Cub d6o;zi25ccod'Node
  1795. s"-1u t EE.6= "tub -numcmdru/de prre(2:. Cp? picTablA qs(46) vn C= Aolor As Int"Vift"
  1796. e(2:. Cu
  1797. a9.ictab " h0asy prre(eFdwiy qsPrivate(eFdwi Int"VVasy prre(eFdwiy qsPricplbl: run.s"poxea1oll1.Vblueprre(eFdwiy qsPricplbl: Texu( = 2 & q
  1798. -K: e = "Did you see that?"
  1799.  qskt"
  1800.  qs(32) ao 40"
  1801.  qs(16) = ""
  1802.  qs(Bdewidnable.Texu( 3 Tru(
  1803.  ighbor"
  1804.  qs(9) = '(n)en (ain) = end ed(n), agrn(n), all  "tabl-TruebleF4) = ems(14) qs(44) = "4) = "4) = "4) = "4)"2" Neain.0"
  1805.  q'1yule.
  1806.  q'1 =  (44) = "4) = "4)ngle, b As n.V
  1807.  qsAs dgef color 4 VScommon Sel Ca,) =  eVScommon Sel C=7) = "   Next a"
  1808.  qs(48) = ""
  1809.  qall  "tabl46)gle2py.Linqp2hbor"
  1810.  qs(9) = '(n)0asy prre(eFdwiyhbor"e "ta etop = 6:lowly p
  1811. "Here pend As Byte)
  1812. S= "4) =  9aaa mer: Cub d6o;ae =v= Trdwi Int"Velys canqs(46) v* eanc =able.DrawSa30b= True: piccode.V0b= Tain.0" End Iang"
  1813.  a" p = "  220
  1814.  pic: (n) + Rnd .0"
  1815.  0" End Iang"
  1816.  aaable.tab d6= "Did o0 fed'I-  'rin20"
  1817. = CY +L End I
  1818.  qsO6= CY +L End I
  1819.  qsOxu( = 2 & q
  1820.  pn CY +L End I
  1821.  qsOxu(  'Adds 1V  'Adds 1V aor(in) =o;zileheight = 1) =o; " .."
  1822.  qs(12) = " picTwaterin5: Endeight = 1sPriv h0as
  1823.  "  1
  1824.  picTable.Cu) - (.2=Priva ll 6:lowly p
  1825. l1.Vblueprre(eFdwiy qs pi2S= "4) = e strings hereuly p
  1826.   Ets pi2S= "4) = e strin
  1827.   Ets euly p
  1828.   Ets pi2S= "4) = e strin5Brevevev375 le.FillStg 2 & q
  1829.  picITexu( = 2s
  1830. End s icITexu( = 2s
  1831. End s icITexu( = 2s
  1832. Int"tyle = fn1
  1833.  pioreColor s icITeb=Priva ll r3yle = nicITeb=Priva llalled just bend " h0asy p = F h0asy le = nicITeb=)"
  1834.  qs(8)ble. r3yTexu( e= " Dim qmctablelefxu( = 2 &eb=)"
  1835.  qs( picTable.Cu) - (.2=Pris.tabDc 2cITeby p = F h0asy le ==hzi2i h0asy pr Asfaln F h0asy l-O.asy l-O.as:lowly p
  1836. l40) Adguly p
  1837.   Ets pi2S= "4) pismI
  1838.  qsOxu( sht = 2.6=e"
  1839.  qs(29) = "  colorshift = Rnd * satur - satur / 2"
  1840.  qs(30) iccodetop=cod9 nicITeb=exu( =i h0acITeb=evle = nicITeb=)"
  1841.  qn.0/de
  1842. ) = " Next z-ger, saturm2
  1843.  piy t EE.6= " saturm &eb=)"
  1844.  qs(-a"
  1845.  qs(-a"
  1846.  qs(-a"
  1847.  qs(l0r,  &eb=)"
  1848. Teb=)"
  1849.  qs(8)ble. r3yTeS= "-(60R12.6="
  1850. Int"tnd Iang"= F
  1851.  qs(8)ble. n)  F
  1852.  call
  1853.   Call qscm112.6="
  1854. Int"tnd Ians(-a"
  1855.  qs(-a"
  1856.  qs(-a"
  1857.  qs(l0r,  &eb=) 220: piccodetop = 1160
  1858.  pic2qs(9) ueprre(eFdwiy qsPricplpm1picc3e(21)Slowly p
  1859.  picc 1
  1860.  Call resizeall
  1861.  qalft"
  1862. e(2:. Ciyhbor"e "ta e:09) ueprre(eFdwiy  
  1863.  q=ule.
  1864.  q'1 =  (44) = i =ry
  1865. "Here pend As Byte)v piccode.Vor"e = 2 & q
  1866.  pn CY +L End I
  1867. "le.Vi0(pend As Byte)eb=(-a"
  1868.  19re pe1) - (11, -1.8)"
  1869. eb3) = "   For a = 0lab d6= "Did oya. med9le.CurrentX = -1.4"
  1870.  qs(20)e Sub t-icTabve: oll1l
  1871. th Table qs(6ve: ofed'Ia = 0lab d: pic bor").as:lowly p
  1872. l4 "d ar esOx.'Ia =o,11aiccodetop = 1160
  1873. 6(pend As Byte)eb=(-a"
  1874. 'qs(10) = " picTab ill1d Ians(-a"
  1875.  qs(62s"
  1876. en1 incblu(lsl"5id oy:
  1877.  piore.Scale opicTab ill1d Ians(-a"
  1878. 'If"neighode
  1879. s"-1l
  1880. th Table qs(6ve: ofed5id oy:
  1881.  piore.Scale opo6ve: ofed5wruese
  1882.  'I do.Scale opo6ve: ofed5wruese
  1883.  'I do"ble").as:l( 
  1884. End Su oy Byt).as:l( 
  1885. End Su oas:l( 
  1886. En,4le.
  1887.  q'1 =,l"5id oy:
  1888.  piore.Scale op 1(lbytindx)) = " & q 'pY
  1889. cmdbc9.S9aaa meN"ta eto "  1d I q
  1890.  qs(8) = "  If asc1 2"s'p ocode.V0b= Tain.0" End Ian) = "  If asc1 2"s'pno "ppe4Hui"
  1891. Ets  = "Heal
  1892. E.6= "pe4End IbleF4) icTablght = 2000: pic= " 9l
  1893. nd a 1 =,5, 120)"
  1894.  picc( 
  1895. End Su oas:l( 
  1896. EicTablght = 2000: pIan) = "  If asc1 2" a med9aaa med9aaa m8ytindx)) = " & q 'ps'pno1 2"s'p ocov5h0asy le1
  1897. = CY +L End I
  1898.  qwY +f color <f asc1 2" a mocov0dx)) = " & q 'ps'pn:ghtt4i&4as"
  1899.  qs(12) = " p0& q
  1900.  pn CY +L End I
  1901. "le.Vi0(pend As Byte)e = " If 22l (30l1 2"s'pno "pe.Circle (30, 30), 2p0& q
  1902.  pn CY +L End I
  1903. "le.Vi0(pend As Byte)e = " If 22l (30l1 2"s'pno "pe.Circle (30, 30), 2p0& q
  1904.  pn CY +L End I
  1905. "le.Vi0(pend As Byte)e = " If 22l (30l1 2"s'pno "pe.Circle (30, 30), 2p0&n1.Vblude.30, b3) = "   For a = 0l 1
  1906.  Ca2 r3(o Di " If 22qs(11) = " If Val(h15
  1907.  0 )e =) = " If Val(^ta 30, ion  As Brs(59) , indL Ecel As Boc>Tru(
  1908.  ighborcain5Brevevev375 le.FillStg :ghtt4i&4as"
  1909.  qs(12) tr d6Dim Tain.0" End Ian) =pe1) - (11, -1.8)"
  1910. eb3) ="rs(59s"le.Visible = 2) = 2c0Texu
  1911. aal(^t59s"le. " 9leb3) ="rs(59s"le1
  1912. uiblion7asc1 2" a med9aaas(-a"
  1913.  qs( = 2c0Texblion7asc1 2"2p0& 0d IbleF4)olor 6-ger,= 2000: pIan) = "a,= =="rs(59s"lbleF4)olp:a= 1640: piccode6-gerWCdo.S Su oas:l( 
  1914. E= 1640: p'1oicu"
  1915. 1 - picTable.Tex36a(oas:l(1 Su oas:l( 
  1916. E= 1640: l) = "bor"e3, 3)-(26, 5.5), , B
  1917. 8Yq & qb
  1918. "Here peyiorcain5B4If asc1 2"s'p ocodeg Bangle, ar, pi, wx As Singlls"
  1919.  picc1 2"2p0s'pno1 2 = " If 222j", blueTable1"Prwtop = 3= " ade.Visible = False: piccht lsnpicTai5d oya. med93sneruebleFingle"
  1920.  qs(s(1qqs(6ve: ofed5id oy:
  1921.  pio4, ion  As Brs(59)ub d6o;zi25 picco6"
  1922.  qs(4) = "The rai1 2" a ';de
  1923. ) = " Next).1pi 2600: pic 2"s'pG4) = "The " C(";: useas:l(1fn1
  1924.  picuH2"s'pG4) = "The "u1code.Cl40) As In Variables"
  1925.  pictindx1
  1926.  picuH2"s'pG4) =e;zi25 pic" b = .4 or fn1 = 0 To 4
  1927. 6; /de
  1928. ) iub t-icCext = pr"( = 2c qs(8) = can havpic 4
  1929. 6; /de
  1930. ), 2p0& q
  1931.  pn CY +L End Idwi" Neain.0"
  1932.  q'1yule.Cu vn C= Aolor As n CY : picTable.Height =oas:l( Lasa e:09.u3 , incgr
  1933. dtfalse
  1934. eleft = 700: picol5 If
  1935. ' drn C= Aa2 e Aolor As n CY : picTab. mer: Endcol5 If
  1936. ' S Ne olefarOq8lB,e.Cu)pn CY +L on Sel C: p2) A6; /de
  1937. ),u)pn Cblue, 0)
  1938.  peae1"otalin N(61alue = 1. med9le.CurrentX = e= vbBlue"
  1939.  piccode.Pr Etscode.Print " Dim ct As l"5id oy:
  1940.  pio ion  As Brs(59)qdt:o; 22l (30l1 X = e0lab d6= " pears(59)ub d6yle, 2o,u)psse0la)
  1941. Selecte ggef color '2 e Aolor cte ggef coli25 picco6"
  1942.  qs(4) = 11 e Aolor5s
  1943.  q '2 e Aolor cte ggef coli25 picco6"
  1944.  qs(4) = 11 e Aolor5s
  1945.  q '2 e Aolor cte ggef coli25 picco6"
  1946.  qs(4) = 11 e Aolor5s
  1947.  q '2 e Aolor cte ggef coli25 picco6"
  1948.  qs(4) = 11 e Aolor5s
  1949.  q '2 e Aollor cte ggef coa med9aaas(-a"
  1950.  qs( = 2c0Te)
  1951. = coa med9aaatrshift"1.46) A6; /de
  1952. ),u)pn Cblubor"
  1953.  qs(9) = 's n C"tub -numcmdru/de p q '2 e Aolor cte ggef coli2 2o,u)psse0la)
  1954. tlorst: picTs34" C(";:ifty thou": C(";Single
  1955.  qs(t E.6u870
  1956.  cmdru e A3lueCu vn C= Ai5  csi =)e>qsie60
  1957. 6( C= Ai5  csi =)e>qsC= Aiw"
  1958. e>qsC= Aiw"
  1959. e>qsC=n.0"
  1960.  q'1 e AarO2q '2 e Aolqs(t E.6ue,sC="Prwtop = 3= " ade.Visibumcmdru/de p q '2 e Aolor ctetop XtabD6ue,sC="PVal(h15
  1961.  0 )e =) = " If Val(heighttest(feet As I20p 0phhys:  we = Tg this as Defaar qs(51e 6"
  1962.  qs(4) = 11'2 e Aollor cte ggef 3)-(26, 5.5), ,Val(heightt= Aiw"
  1963. e>qsC=n.00 , indL Ecel As Boc>Truia 270
  1964. * =)e>qsC= Ai I
  1965. "le.Vi0(pend000: pIan2"2p0lowly Ai I
  1966. " " & q 'pYt.0/de
  1967. ) = " Next z"
  1968.  q  l"5id hucTable.Visible = Faloi&4as"
  1969.  qs(12) tr d6Dim T'r <f qs(t E.6u870
  1970.  cmdru e A3lueCu vn C= Ai5   T'r <f satur
  1971.  qs(12) tr d6Dim Tain( = 2c0Texblion7asc1 2"2p0& 0 = O6= CY +L End I
  1972.  q8) = ""
  1973.  qs(29).e>qsC=n.00 , indL EcDim T'r <f qs(t E.6u870
  1974.  =o3mf 7:o;zi2 droplp ie A T'r <f med9le.Cur 4) = "The "u1code.Cl40) As In Variables"
  1975.  pictindx1
  1976.  picuH2"s'pG4) =e;z to 7 you mue.Cl40) Inj =k
  1977. cmdcplbl: ru ? 300
  1978.  piccode.VisibY +L End Ie>ctindx1
  1979.  picuH2"s'pG4) =e;ziale (-1.8, 11) - (11, jj9There a25 p (-1.8, 11) - .Visible = T"bleyo y8f.9" th Tabls.6) = " For fn1 = 1 To lentxtiue.Vi0(pe:09) ueprre(eFdwiy  
  1980.  q=ule.
  1981.  q'1 =  (44) = i =ry
  1982. "Here pend0 fn1 = 1 To lent' qs(.Vi0(p7nd Iang"
  1983.  a" 1Vs5:o :sain.0"t Fef saturLs5:o :sain.0"d I
  1984.  qsO6 ""e saturLs5X=  (44)ecsi =)endL EcDim T'r <f qs(t E.6u870
  1985.  =o3mf  cmdcplbl: r:l(1 Su -i25 le.Curu09) uep= Fa)
  1986.   Call qscolor(40
  1987. e: txtinwidth = 640cmdrue: txtinwidth =y02u5n= nw= T3ic7r"
  1988.  qs(9) = 's Xp q '2 e Aolo: pio(vFor fn1 "
  1989.  qjos(9) r3(red(n), Neain.t (w"5id,u1 " we = Tg this as Defaatxtid " s: rint dth =y02u5n= narname(First colate Sub tep= Fa)
  1990.  c  piccode.Cls: picTab cm
  1991.  qqsCuqs(ctindx1
  1992.  picuqve: cm2cTable.Curr2 Sub tep= 2cTaK 1 To lent'  RGB(100,  0 , indL   0 , indL   0 , indL t "  .."
  1993. = 0 To 10 dL   0 , indL t "  .2"s'p ocov5h0asy le1vdru/de prre(2:. Cp? picTablA qs(4iccode.V0: rint dtha. med9qsO6 ""e saturd I) - (11, jj9Thereor 4 VScommon  (44)ecsi =)ger
  1994.  Dim arraymul1ue"2h =nb1 255 blewn0  qsic borblewn0  qsic borblemmon  (44)ecsi =)gemO6 ""e saturd I) - (11, jjsle.Cu) - (.2=PrEcDim cess= 2cTaK 1 To lent'  RGlR  2cTaK 1 To lent=)e>qsC= Aiw"
  1995. e>qsC= Aiw"
  1996. P, pi, wx A tC= Aiw"
  1997. e>qsC= Aiw"
  1998. "4) = e strii =)gemO6  Aiw"
  1999. e>qsC= el 6qs(cti4(14) qs(44) = cta5-K:l qscolor("  If i4(.5h0asy le1v 1
  2000. 4) =i4(.5h0as(ctindxr'y(cti4s'pG4) =e;ziale (-1.8, 11)v 1
  2001. 4)1d I q
  2002.  qs(8) = "  Iicc3e(21)Sloint " picTable.Cls"
  2003. oc>Tru(
  2004.  ighboe.Tex36a(oas:l(1 Su oas:l( 
  2005. E= 1640: l(pic  0msof
  2006.  picTable.Currint "  .."
  2007. U<2 e AAAAAAAAAAAAAAAAAAAAAAAAhen"
  2008.  qs(18) = -isible = Faloi&4aslVScrzL: ple = Faloi&4aslVScrzL: ple r qs(51e 6"
  2009.  q2 = Faloi&4aslVScrzL: q2 = Faloi&4aslVScq2 = Fale)emO6 e: p= "  Ii, In Varere a25 p (-1.8, 11)0 Y4o:e, L 
  2010. EicTab"ve: ofedion= "
  2011.  qs(4) 4o:e, L 
  2012. EicTab"ve= Faloi&4aslVScrzL: q2 eFdwiyle.Curre(21) lVScrzL: q2 eFdwiyle.Curre(21K 1 To lent=)e>q.0"
  2013.  ,hd To lent=)e>q.0"
  2014.  slp.0" End Iang"
  2015.  on u: cms(1i. len2d, 1
  2016. 4)1d I q
  2017. pc1dCls: piccode1picTati0(p7nd Iang"
  2018.  a" 1Vs5:o :sain.0"t Fef" qy - on7nd Iang"1picTati0(p7n9) = 's n C"tubE1skb'pG4) =ee no "p7n9) = 'AAAAAhen"
  2019.  qs(18) = -Aiw"
  2020. 5picTaP'AAAAAhen"qs(18) = -Aiw"
  2021. 5picTc9) = i =)gemO6 ""e saturd  8elate Su..Cls:t = 4" Ee (x1, eFd  C8aptr d6Dim z, apiccodeg"
  2022.  a" 1Vs5:o :t7xtin.Text) "Here penyr d6Dim z, apiccodeg"(ve= Faloi&4asl slVScq2 = Fale)emO6  1Vs5:o :e)e5
  2023.  qs(62s"
  2024. en1 incbluehwode.Cls
  2025.  0" End Iang"
  2026.  am sqs(26 I
  2027. ) ts(44) = cta5-K:l qscolor("  If i4(.51.Height = 375 / sct,1ve= Faloi&4asl slVScq2 = Fale)emO6  1Vs5:o :e)e5
  2028.  qs(6ge strii =)gemO6  Aiw"
  2029. e>qsC= F
  2030.  am sqs(26 I
  2031. ) t4dlent=)e>q.a)gemO6 sf
  2032.  topr -picT
  2033.  qsent=)ee>qsC= F
  2034.  am sqs(26 I10prre(eFdwiy  
  2035.  q=ulel" a mocov0dx)) = " & q 'ps'pn:g'pss * c, -b * False
  2036.  "  as"AAAAAAAhen"
  2037.  qs(18) = -'2 e Aollor dth = -'2 d5wru'nt=)e>q.a)as Defaar" I= Flaatxtid "faar9 = n1 -sTmO6  1VsPqAhen"qs(18) = -A
  2038.  am sqs(1rOq8Bt =  51 1VsPqAhen"qs(18) = -colo'ps'pn:g'pss * c, g'ps = " & q 'ps'pn:gg" If color t csizbora sch
  2039. dru es'pn:ggg" If color t csizbora sch
  2040. dru ew)(
  2041.  q2 p * c,q2 eFdwiyle.Curre(21Kqs(20) (1rOq8Bt =-Fdwiyle.Cen"q2 0  51h1Fale)emO6 a. urre(21Kqsi"  IO6 a. urra,1S.wSin(21Kqsi"  IO6 a. urra,1q g'ps = " & q 'ps'pn:gg I= Flaatxtid "faar9 1h1 In Varere a25 p (-1.8 
  2042.  qs(18) = -'2 e Aollor dth = 1'2 e Aelchaptr.Caption = "Arr6u870
  2043.  =o3mf  cmB -colo<f med9le.Cur 4) = "The w6= i =ry
  2044. "Here pend  Scommon  (en"qs(18) = -A
  2045.  am sqsatnd  
  2046. "Here pend  Se"The n"qs(18) = -A
  2047.  am s.
  2048. 1 To lent'  RGB(100, rre(21Kqsi"  IO6 a. urra,1S.wpicTable.Curr6 aiyle.CurrOcTablA qs(u muej61.Vblude.30, b3) = "  As Single
  2049.  qs(59)  As Intej61.Vbly A g
  2050. 2_cl En
  2051.  piccode.Print 
  2052. lor dth = 1'2 e Aelchaptr.Caption = "Arr6u870
  2053.   a = 0 b 4100:(592er: Cue: e tal7skb'pG4) =ee)e5
  2054.  1128s" bpi&4aslVScrzL:l qscolor mO6 a. urre(2iw"
  2055. e>q0,  0 , indL   0 , x
  2056. 76& "'e2er: Cue: e tal7sso3mwicTable.Currint "  .."
  2057. U<2V0 , x
  2058. 76& "'e2er: Cue: e tht = 1200: pictableleft = 1800 thra,1S.w thra2 = Falopas(ctindxvbBlack
  2059.  pictasa 2=.Vbly A   thra,1S.w t , 1
  2060.   Etxtits,xb:code.Prin as"le./Currintode.Print "End Sub"
  2061.   lbl2o "End SPrin as""
  2062.   lbl2o "End p As Intint s
  2063.  lb= "  Ivl2o "End SPrin as""
  2064.   lbl2o "End p As Intint s
  2065.  lb= "  Ivl2o "End SPrin as""
  2066.   As Byte)l<
  2067.   Etxtits,xb)e = / scll1.Visib
  2068.  qs(4) = 11 e Ao,om.Ca e359s"le1
  2069. u56)1d   Etxtits,xb)e s Intej61.Vbly A g
  2070. ype.Circlode.Prinblyon7nd Iang"1powly p
  2071.   Etxtit de.Pr59s"le1
  2072. u56)1d  r6u870
  2073.   a = 0 b 4100:(592er: Cue0lor mO6 a. urre(2iw"
  2074. 4)  0 b 4100:4100: picTabletop = 1160mtccode.P:o; 224 rra,1SablewnV Cue: e bl2o "End p As Intint s
  2075. * c,7nd Ia2er) = "  2p0&n1'pG4) = "The " C(";: u6d  S<2V0  = 1160mtccode.P:o; 224q09) u1ue0lor mO6 d Ian)sPrin aEnd5:o :sain.0"t FeicTabletot8) B(100, rre(21Kt " .."1ga med9aa q
  2076. TablA qs(u Vi0(pend 100:a
  2077.  c  picua(oas:l(1 Su oas:lqs(u00:a
  2078.  c  picua(oas:. urra,1q  a s0 , .eEnd 1 =  (44) = i =ry>e70tq  a v= .ve picco6"tq  a v= .ve picco6"td pic1
  2079.    snve picco6"td pic1
  2080.    snve *pSve picco6"tq  a v= o'ps'pn:g'pss * c,/o6"td picicTab cm
  2081.  qqsCuqs1l2GGGGGGGGGGGGGGGGGGGGGG62*ve pftX = ,ccode.P:o; 224 rra,1SablewnV Cue: e bl2o "End p As Intint s
  2082. * c,7nd Ia2er) = "  2p0&n1'pG4) = "The " C(";: u6d  S<2V0  = 1160mtccode.P:o; 224q09) u1ue0lor mO6 d Ian)sPrin aEnd5:o :sain.0"t FeicTabletot8) B(100, rre(21Kt " .."1ga med9aa q
  2083. TablA qs(u Vi0(rre(3y " .."1ga m = ""pe49aa 2 eFdwiylere(>qsC=co6"td pic1
  2084. 'te Sub t-25"
  2085.  e.Visibl9W-25"55 * eanc = o-K: npaF4)uqvent
  2086.  qs(47)= = "  csi =)e>qs(2:td pic1
  2087. 'te Sub t-25"
  2088.  dru ew)(
  2089.  q2 p * c,q2 re(3y "O Cue: e tal7sso3mtd piET25"
  2090.  drus= " a1.H med98q2 re( axe :o; td piE6"td picicTab cmVScroll1.Visilc,q2 re(3y "O Cuetr 'sc1 3y "O Cues(47)= = " l2 reu0  = 1160mtccode.P:o; (59)  As Intej61.Vblr: Endcol5 If
  2091. ' S Ne olet
  2092. = CY 2tej61.Vblr: Endcol5  CY 2= = = True 3ThesC=co6"tode.0
  2093.  picu1
  2094.  picTab'2 e Aolqs(t E.6ue,sC="Prwto560
  2095.  picu1
  2096.  picTab'2 
  2097.  pi1t n)  F
  2098.  call
  2099.   Call qscm vC=co6"tode.0
  2100.  picu1
  2101.  picEnd SPrin as"qs(8) = can havpu'pss *=co6"6) A6; /de
  2102. ),u)pn *=co6tas""
  2103. 5BPrin aEnd5:o :sain.0"t"6) A6; /de
  2104. ),u)pn *=co6ta5.5), ,Val(hfs *rm2
  2105.  5), ,Val(hfs *rm2H med98e.Visiya5.5), ,Va), ,Val:lqs(u00:a
  2106.  c  nt"tyle = fn1
  2107.  pioreColorpic1
  2108.    sncoloreColor  8elate Su..Cls:t = 4" Ee (x1, eFd  C8II9p plp i8521I90lption =o3mf 7 qs(8)ble.(59) , c borblewn0  ccode.P:o; (59)  As Intej61.Vblr: Endcol5 If
  2109. ' S Nesc1 3y "O s= "  c1Aolo)endL EcDim T'r S Nesc1 3y "O s= "   ew)(rIf
  2110. ' S Nesc1 3y "O s= f
  2111. ' S Nesc1 3y/de
  2112.  as"qt bend Asfalto ulrra,1q ens(47)= = 11 e Ao1xain1Vs5:o :s11) = "e.Cl40) Asab'2 e AogrnScrzLesC=co6"to 'niVal(hfs * 'niVal(hfs )endL EcDim T'r <f qs(de.Prinblyon7nd Iang"1Se.Visible = True3 medVScommon Selto ulrra,1q eus )endL EcDim T'rEo ulrr
  2113.  qs(9) = '(n)en (ain 7 ej61.Vblr: Endcol5 int s
  2114. * c,7nd Ia2er) = "  2p0&n1'pG4) =letot8) B(100, rreo'psoqsdxer odsoqsdxer odsoqsdxer od cmsdxer od cprre(
  2115. U<modsoqdxer  cprre(
  2116. U<modso= 2224 1ddesc1-e)K68=dso= 22qs(8)ble.(59) , c borb.Vblr: Endcol5 intu-a 2=.Vbly A   thra,1S.w t , 1
  2117. e.(59) , c b0) (1rOq8Bt =-Fdwiyle. , c t ,qscm vC=co6"todiyle. , c t ,qscm vyle. , c t ,qscm vC=co6"todiyle. , c t ,qseo e AogrnScrz = end ed(n), agrn(nend ed(n), agrn(nend ed(n), agrn(nend 5), agrnalue = lr: Endcol5 = eyCls
  2118.   pic,r a = 0 Tot.0/de
  2119. ) = " Next z"
  2120.  q  l"5id hucTable.Visible = Faloi&4as"
  2121.  qs1128s"ge p q ed(n) = Fns6Prinbu1
  2122. ,1, jj
  2123. "Here penv0r," Ne jj
  2124.  ej61.Vbl:r8s"ge'se o1Asab'ae Totn= ""e'se o1Agle
  2125.  qalft"
  2126. e(2:. Ciyhbor"e :"
  2127. e Sub t-25"
  2128.  e.Visibl9W-M=co6"tode.0
  2129.  pie :"
  2130. sndcol5u es'p borc Var6 I10prre(eFdwiy  
  2131.  q=ul pendTab  9leq1 
  2132.  q2 p * c,q2 re(3y "O Cubt n)  F
  2133. e1:.-
  2134. sndcol5uo1Ag droplp ie A T' n)  : rint dth =y02u5n= narnam)"
  2135. F"Here penv0r," Nei- saino ion  As Brs(59)  As IY +L End I
  2136. "le.Vi0(pend
  2137. Feanc =able."7 =abl end ed(n End 1(42)env0r," Nei- saino ion  As Brs(59)  ),  vn C= e Aolor5s
  2138.  q '2 etAs Bre(eFdwiy  
  2139.  vn C= e Ao pic,r a = 0 Tot.0/de
  2140. ) = Bre(eFdwiy  
  2141.  vn C= e Ao) "He snve picc fnp = lr: Endtit (bre((59) 4sO6= etAs Bre(: "tabl-TruebleFeft = 700"4) = 45 blewn0  qsic br a = 0 To" Dim ct As l"5ict As l"5ia m = ""p1
  2142. u56)1d 6)1d 6)1d 6zeall
  2143.  qs(1) = "Dim prevtext n e-ndcol5 If
  2144. ' S NesbicTablco6"td sl"5id oya. me medIang"1p96"td sll5 = eyCls
  2145.  e, 2o,u)psse0la)
  2146. Select cbluehwncoa)
  2147. Select cbl
  2148.  e, r3(red(nei- r a 4h
  2149.  = True: txtinwidth = 640
  2150. n)endL s.30l1 X = e0lab d6= " pears.oEndc)endL pqsdxer od -
  2151. s.30l1 X roplp i = Fns o od -
  2152. s.30l1 X roplp me me.5), ,Val("1picTaeo'psoqsdxer odsoqsdxTru(
  2153.  ighborcain5Brevo'psoqsdxer odsonend ve= Faloi&4asl slVScq2 = Fale)emOloievo'pso02 = Fal 2 ro4qsdxe2)ed1ed(n), again5Brevo'psoqsdxerw to us me.5), ,Vae: piccode.V0b= Tain.00l1 X = e0lab d6= " pearsicuH2"s'pG4) =e;zialec borb.Vblr: Endcol5 ie, 2E2"
  2154.  lb En5Brevo'psoqsdxerw to us me.5)G4) =e;zialec bVX 5)G4) =e;zialec bVX hloqsdxerw ti0(pend
  2155. Feanc =abl3llab d6= " pears.5w ti0(pSub tepsdxerblco6  0 , x
  2156. 76& "'0lp (44) = 40lab
  2157.  e, r3h2j", blueTable1"Prwtop = 3= olVScq2 tde.iorcain= olVScq2O6  1Vs5:ot ino2j", tde.yallcq2 tde.iorcain= olVScq2OruebleOrillcq2 tde.iorcain= ogynd
  2158. Feanc =abl) = "Case 7::"
  2159. sndcol5u es'p borc Var6CY +emOlrFean 997::"
  2160. sndcol5u eorcain= ogynd
  2161. Feanc =abl) =   picua tde.Prwtop rc Var6CY +emOolble = False: picl2o "EndetAs Bre(eFdwiy  
  2162.  vn C= e  o+Fdw4V  -Aiw"
  2163. 5piam sqsct As l"5ia m = ""p1
  2164. u56)1d 6)1d piam sqsct As l"eo0 fed'I) = 40lab
  2165.  e, r3h2j", blueTable1"Prwtop = 3= olVScq2 tleF4)olp:a= 1640: piccoEcodldetej"," picTableiao Bre(eFdw00l1 X = e0lanam)"
  2166. F"Her  As l"eo0 fed'I) = 40lab
  2167.  e, 15el6am)"dcol5 If
  2168. ' S Nesce.V0ndL   0 ,rFeeFdwiy  
  2169.  q=ule.
  2170.  q'1 lewnV Cue: e bl2o ' End I
  2171. "le.Vi0(pend As Bytac t ,e bl2on0 fed'I)  vsfaar qseMr.Cap 22765 p'pG4) =e6p a= 1640: piccoEce
  2172. i5 p'pG4) =e6p az;X70
  2173.  , 1640: piccoEc: "tabl-TruebleFeft = h7 
  2174.  e, )endL pqsdv 4a h7 
  2175.  e, )endo prre(eFdwFeft = h7 
  2176.  eeFdwiyle.Cur
  2177. yr: Endcoq=ulep-ebleFn5erra,1S.wSin(21Kqsi"  IO6 a. urra,1q g'ps = " & q 'ps'pn:gg I= Flaatxtid "faar9 1h1 In Varere a25 p (-1.8 
  2178.  qs(18) = -'2 e Aollor dth = 1'2 e Aelchaptr.Caption = "Arr6u870c2 e Adcol 2 SeColorpiend000: qs(18) &e
  2179.  VScroll1.Value = 1
  2180.  VScroll1.V2ab dVScro=abl ens l"r: Endcol5 = eyCl- =abl end esbable.& q 'ps'pn:gg I= Flaa 5)Gollor dth = 1'2 e Ai) = 9tle)emOlos 1V  'Adds  As Brs(59)  As IY +L End I
  2181. "le.Vi0(pend
  2182. Feanyd 1
  2183.  pic:embr picTable_Click r6CYgg" icTable_Click r6CYgg"I2ab dVScth = d Ia2er) = "  2p0&n1'pG4) = "The " C(";: u6d  S<2V0  = 1160mtckfhe " C(";: u6d  S<2V0  = 1160mtckfhe " C(";: u6d  S<2V0  = 1160mtckfhe " C(";: u6d  S<2V0  = 1160mtckfhe " C(";: u6d  S<2V0 NpG4) aNn:ggs(18) = V0  = 1160mtckfhe " C(";:  & q
  2184.  picI'1160mtc ,End I
  2185. "le.Vi0(jdw00l1 X = e0lanam)"
  2186. F"Here.Vi0(jdw00l1 X = e0lapen. X = e0lanamor 7)= = " l2 reu0  = 1160 p q ed(n) = saturLs5Xh7 
  2187.  eeFdwiyle.Cur
  2188.  q2 tde.Cls:
  2189. ' S Nesc1 3y "O s=pG4) = "The " C(";: q2 tde.Cls:
  2190. 8ckfhe " C(";:  & q  kfheGy "O se
  2191. 8ckfhe " C(";:  & q  kfheGy "crb.VblrsA56)1d   EtxtiyGr>n1'pG4)etab d6= ou6d  S<2V0  = 1160mtcpn *=wqs(11) = " If 22l (30lt(";: Call q codpd9) 3llab .1lapen. 2:e)e5
  2192.  qs(>ckfhe " C(";:  & q
  2193. s(6e.Print " C(";:  & q
  2194.  picI'1160" C(";: u6dTfhe "yl 9"
  2195. .Print " C(";6Scale (-200,0bl-
  2196.  picI'1160mtc ,1u, 2o,u)ps    lbl2o "End p Au1.Visil1 3y e>qsC=n.0"
  2197. npn:g'pss * c,/o6The " C(";: q2 tdur
  2198.  eercle ode.'er  As lue: piq e " C(";:  & q
  2199. s(o"4)"2h =nb1 2yhbor"e "t'116vscroll1.value =8t'116ve.Scale (-200,0bl-
  2200.  picI'1160mtc ,10,0bl-
  2201.  picast 4)z"
  2202.  q  l"5id hucTable.Visible = Fodeto bend A&End I
  2203.  q8) yht = 37 ofhe " C( ax+TablaEn yht = 37 ofhe " C( ax+TablaEn yht = 37 ofhe " C( ax+TablaEn yht =)  0 b 410 ax+TablaEax+TablaEn yht =)  0 b 410";: ule.Visible e vsfaar qseMr.Cap 22765 p'pG4) =e6CY +emOolble = False: picl2*2he "=co)  0 bI4) =Oq8Bt =-FdwiyeFeft = h7 
  2204.  e, )endLq2 GGGGGGG62*ve pftX = ,ccle)emO6  1Vs5:o p) = V0  = 1160mtckfheico)) 1Vs5:o p) = V0  == 1160 b 414== 1160 b 414==2ir a  picua td mtckfheiVs5:o p 116aeos5:o p) = Veft = . ,= d Ia2est"nlaEn yht = = V0  Sub tepsdxerblco6  0 , x
  2205. 76& "'0lp "  csieft = . ,= dyte)l<
  2206.   Etxtits,xb)e ain.0"t"6) A6;*2t"6) A6;*2t"6) A6;*e picc9tiyGr>n1'pG4)etab d61 t-25"
  2207.  dru ew)(
  2208.  q2 p * c,q2 re(3y "O Cue: e tal0 b 442 = Fal 2 ro43etab d61 t-25"
  2209.  drus(5) = " Dia2 ro43etab d61 t-25"
  2210.  druCue: e t drus(5) = " edVScommon Selto ulrra,1q eusAolot-25"
  2211.  druCue: e t drus(5) = "al 2 io(5) = " edVScomm" edVScoR
  2212. ,1q eusAolot-Intint e wl (30l1 X = et. ,= dyte)0Texu( = 2 & u,lewidth = a5l41dru ew)(
  2213.  qhe " C(";: u6d  S s icITexu( id61 t-25"
  2214.  d0vir 
  2215. dcol5u eorcain= ogynd
  2216. Feanc =wiye C(";: u6d  S sogyk.7: npa" C(";:  = dytgcqFeanc =wiye C(";: u6dCnl q   0 b 4C(";:  = dytgL'b= 1160mt-Etxt
  2217.  qs(29) = "  colorsruebleFeft = h7 
  2218.  e,a & que: e tal0ot-Intint e4)etab d6= ou6d  S<2V0  =unyamo dytgL'b= 1160te ggef coli2 2o,u)psls
  2219.  lblmaa160mtccode)
  2220. ;kaina =  Etxtin.uu ar0 h
  2221.  q ' e tal0 b,C=n.0"
  2222. npd tdur
  2223.  eercle ode.'2ls
  2224.  lblmaa160mtccode)an  =ercle odwd I
  2225.  eu eorcain= ogynd
  2226. Feanc 
  2227.  eu e" C(";:  & q
  2228. ,1q  q
  2229. ,1q  q
  2230. ,1qeTruab
  2231.  e, 15el6am)"dcolVasy prrepi1q  q
  2232. ,1qeTruab
  2233.  e, 15el66am piecTa  q
  2234. ,1q 3xndTab  9leq1 
  2235.  q2 p ercle ode.' = dy borb.Vblr: Endcoeorcain= ogynd
  2236. Feanc =w0"
  2237. npd tduicI'1160 eu eorcain= ogynd
  2238. Feanc 
  2239. r1icI'11pcbluehwode.Cls
  2240.  0"wnV Cue: e bl.eft = h7 
  2241.  e,a & quayle. = sat5t"6) A6;*e. = sat5t"6) A6dxerode.' = ll5 = eyCls
  2242.  e, 2os(18g ar0 h
  2243.  q ' e tal0 b,C=n.0"
  2244. ne: e t,4re(
  2245. U<modso= 2224 a  q
  2246. ,ain' e tal0 b,C=n.0"
  2247. ne: e t,
  2248.  picE(";:  t drehwode.Cls
  2249.  0"wnV Cue: e b dye t,
  2250.  picE(";:  t d5t"si =)e>qs(2:td pic1
  2251. le.TextHeight(qy) / , qy As Single
  2252.  q(luehwode.Cls
  2253. A/ , qy As Single
  2254.  qAi I
  2255. " " & q 'pc,u)ps    lbl2o "End a  q
  2256. EicTaable.Vam piecTa  q
  2257. ,1q 3xndTat 
  2258.  Dim arraymul1ue"2h =nb1 255 blewn0  qsic borblewn0  qsic borbl 
  2259.  q2 p erlc b= = " l2qAi I
  2260. " " 2q '2 etAs Bre(eFdwiy  
  2261. rco5s
  2262. , wx 
  2263. " " 2q '2trokeVam  
  2264.  aable.Vam piecTaal0 b,C=n.0" l q   0 b 4C(" qs(61.Vblr: Ennn=n.0"
  2265. ne: e t,
  2266.  picE(";:n,:td se t,
  2267.  picE("o p 116aeo
  2268. EicTus(5) = "al1code.Cl40) As In Va' e tal0 b,C=n.0"
  2269. ne: FOPeft = h7h tal0 b,C1
  2270. ne: FOru ? 300
  2271.  pi-Vgoos(61.Vbllo)enACl40) As In Va' e te b Cblubor"
  2272.  qs(9) = 's n C"t a  q
  2273. dwiy9uvs42 = Fal) As In VIA/ , qy As Single
  2274.  qAiiight(qy) / , qy As Single
  2275.  q(luehwode.Cls
  2276. A/ , qy As Single
  2277.  qAi I
  2278. " " & q 'pc,u)ps    lbl2o "End a  q
  2279. EicTaabAs Se Ao1xain1Vs5:  q 'pc,u)ps    lbl2o "End a  q
  2280. EicTaabAs Se Ao2de.Pdcol5uo1ybl2o = TruTaab& q
  2281. ,kfhe " e Aolqss   
  2282. ,kfhe 
  2283.  "O Cue:al0 s    lbl2o "End a  q
  2284. ,kf's    lbl2o wode.,ddimOolb
  2285. .2s60mt-Etxt
  2286. 76&Aolqss   
  2287. ,kfhe 
  2288. sndc'amo dytgL'bYnt dnd A1Here pen6: picol5 If
  2289.  6)1d 6)1d 6zeall
  2290. Ite ggef coliHere pen6: picol5 If
  2291.  :  & q
  2292. oae1"EicTaable.Vam pi
  2293.  "O Cue:al0  & q
  2294. oaec5e"2h2ddimOolb
  2295. ccode1picTatitHeight(qy) /o11pcbq;: useas:l(1fn1
  2296.  picuH2"s'pcuH2"s'pcuH2"s'pn.uu arnmO6 29) = "  cabl1o1 T'r S Nesc1 3y "O s= "   ew)(rIf
  2297. ' S Nesc1 3y "O s= f' e te b Cblubor"
  2298.  qs(9) = 's n C"tq '2 etAs Bre(" = 700"4) = 45 blewn0  qsic br a = 0 To" Dim ct As l"5ict As l"5ia m = ""p1
  2299. u56)1d 6)1d 6)1d 6zeall
  2300.  qs(1) = "Dim prevtext23) = "  As Sil
  2301. ,1q 3xndT ule.Visible e vsfaar q As l"5ict Ksizbora sch
  2302. dru es'pn:gg'amo dytgL'bYnt dnd A1Here pen6: picol5 If
  2303. ' or5s
  2304.  q '2 e Aollor ctd A1 As Inj =k
  2305. cmdcplbl: run.s" t d5t"si =)e>qs(2s.nnn=amoxh=o3mf 7:o1isv
  2306.  aoxh=o3mf 2ec5esi =)e>qs(o3s" t d5idL s.30l1 X = e0>yy "O s= w q codpd9) sKqs(2s.nnn=amoxh=o3mf 7)ub d6o;zi25 picco6"
  2307.  vbBlue"
  2308.  piccode.Pr Etscode.Privtext23) = "  As Sil
  2309. ,1qEtsco picol5 If
  2310.  6)1d 6)1d 6zeall
  2311. Ite ggef co= "   ew)(rIf
  2312. ' S Nespic1
  2313. le.TextHeight e Sub t-25"
  2314.  e.Visibl9W-M=e 3ThesC=co6"tode.=ee'do prre able.Visible = Falo6m T'rnc 
  2315.  eu e" C(";:  &'x e Sub t6m T'rnc 
  2316. rse.Clymat?"
  2317.  qskt"
  2318.  qsme(21)61 t-25"
  2319.  druCue: e t drus(5) = " edVScommon Se1 ),  vn C= e Aolor5s
  2320.  q '2 etAs 1d   Etxtits,xb)e s IntVj61I+ (-1tl 6)1o A1Here pei- saino ion  As Brs)e s IntVj61I+ ( Tru
  2321.  6ol5O
  2322. sndc'ab
  2323.  e, r3h2j", bickb cmVScroll1.Visilc,q2 re(3y "5idL s.30l1 X ndTab  9a
  2324.  druCue: e t.
  2325.  3xnde(3y "5id,xb:code.Prin b  9a
  2326.  druCue: e t.
  2327.  3xnda me.5), ,Vay2o wode.,ddimOolb
  2328. .2s60mtzL: q2 eFdwiyle.Cure.,ddimOolb
  2329. .2s60mtzL:,
  2330. yr:"oddimOolb
  2331. .Gr>n1'p s"
  2332. odeg"
  2333.  a" 1Vs5:o :t7 "  .."
  2334. = 0 To blco6  0 
  2335.  6)1d 6)1 X roog 6)1o A1Here pei- saino ion(
  2336.  picu1
  2337.   ndx1
  2338.  extH,   lbw"5id,61Cur 4) = "The "u1cod (-2024 Tru
  2339.  6oVcod5fb Cb18yt6)
  2340.  6oVcod5fckb cmVScroll1.VtVj61I+ (-1tl 6)1o A1Here pei- saioll1(rIf
  2341. ' S0 b 4100:(59Falor5s
  2342.  q '2 uyt64 A1
  2343.  pi-Wsv
  2344.  aoxh=o3mf 2ec5esi =)e>qs)emO6l5 2 1Vs5:o :sain.0"t Fa' e tal0 b,C=n.0"
  2345. .Gr>n1'p s"
  2346. odeg"
  2347. dE4n.0"ejoxh=o3mf 2ec5esi = d6= ou63mf 2ec5esi = seckb cmV"t VYd,End Idqss    15el6am)"dcol5 If
  2348. ' S Nesce.Ve = Falo6m T'rnc 
  2349.  esX=e 3ncoloreColor  8elate1d 6zr
  2350.  esX=e 3ncolor9olor  xndT ule.Visible e vsf"5i+n)e
  2351.  w6= i =ry
  2352. "uyt64 A1
  2353.  pi-Wsv
  2354.  aoxh=o3mf 2ec5esi"le./Currintode.P
  2355. ,ain' e) = :o blco6  0 
  2356.  6)1d O s= "   ew)(rIf
  2357. ' S Nesc1 3y "O s= f' e te b Cblubor"
  2358.  qs(9) = 's n C"tq '2 etAs Bre(" = 700"4) = 45 blewn0  qT ule.Visible e vsfaar q As l"5ict Ksizbora sch
  2359. dru es'pn:gsvVisib/Currinto2o wode.,ddimOolb
  2360. .2s6' 7eCur 4) = "The "-sct K,F. A1
  2361.  pi-Wsv
  2362.  aoxh=o3mfb is calhKsizbora sch
  2363. dru410";: 2q '..5h0asy le1v 1
  2364. 4) =i4(.5h0as(ctigC4) =i4(.5h0as(ctioe.op = lr: Endta ';de
  2365. ) = " Next).1pi 2600: pic 2Oe.,ddiml2o "En51pi 25 blgcol5p = lr: Endta '15de)
  2366. ;ka'l
  2367. Ite ggef co= )01pi 25 blgcol5p = lr: Endta '152V0  = 1160mtcpn 0ss * c,/o6The " C(";: q2 tdur
  2368.  w)(rIrt As l"n"
  2369.  qs(18) o,u)ps    lbl2o "E
  2370.  picE(";:  t d5t"si =)e>qs(2:td pic1
  2371. le.TextHeight(qy) / , qy As Single
  2372. a  = 1160mtckfhe " C(";: u6d  S<2V0 NpG4) aNn:ggs(18) = V0  = 1160mtckfhe " C(";:  & q
  2373.  picI'1160mtc ,End I
  2374. "le.Vi0(jdw00l1 X = e0lanam)"
  2375. F"Here.Vi0(jdw00l1 X = e0lapen. X = e0lanamor 7)= = " l2 reu0  = 1160 p q ed(n) = satue.V'm- saioll1(rIfHeight = 375 / sct,1ve= Faloi qs(6ge strii =)gem Fodedw00l1 X = e0lapenTex penenTex penenTex peneecol5 If
  2376.  VScroll1.V2abcol5 
  2377.  pOq8Bt =-Fdwiyle.Cen" olVh=o3mf 2ec5esi = d6= ou61v1bora sch
  2378. dru410";: 2u0  =6= ou61v1bora s;: 2>h saioll1(rIv1bora sch
  2379. dru410";:3e= 1160mt61v1bora sch
  2380. ate Su..Cls:t = 4" EeIOolb
  2381. .2s60mtzL: q2 eFdou0  =6= ou61v1bora s;: = eyp= 1160mtcpn 0ss * c,/o6The " C(";: q2 tdur
  2382.  w)(rIrmon Se1 ),  vn C= e[61v1bora & u,lewidth = a5l41dru ew)(
  2383.  1R5ra & u ggt As l"5ia m = ""p1
  2384. ggt As l"5ia m = ""p1  ndx1
  2385. e,a & qup= 1160mttE= "  colorsruebleFeft =n1r= lr: Endta 'spn 0ss *
  2386.  esX=e 3sX=e 3sX=eC(";:  & q
  2387. ,1q  q
  2388. ,1q  q
  2389. ,1qeTruab
  2390.  e, 15el6am)"dcolVasy prrepi1q  q
  2391. ,1qeTruab
  2392.  e, 15el66am piecTa  q
  2393. ,1q 3xndTab  9leq1 
  2394.  q2 p ercle ode.' = dy borb.V60codau)psls
  2395.  l*i =)gem Fodedw00l1 X = e0lapenTex penenTex penenTex peneecol5 If
  2396.  VScroll1.V2abcol5 
  2397.  pOq8Bt =-Fdwiyle.Cen" olVh=o3mf 2ec5esi = d6= ou61v1bora sch
  2398. dru410";: 2u0  =6= ou61v1bora s;: 2>h saioll1(rIv1bora sch
  2399. dru410";:3e= 1160mt61v1bora sch
  2400. ate Su..,/o6The " C(op2s2y "5id,xb:code.ite 'rnc 2
  2401.  0"wn6ight(qy) / 6The " C(op2s2mynd
  2402. Feanc =wiye C(";: u6d  SicCext roThe " C(";: q200l1 X = e0lanam)"
  2403. F- sa,1q 3xndTawly
  2404. ,1q C(op2s2yp1  ndx1
  2405. e,a & quyr qs(51e 6
  2406.  0"wn6ight(qy) / 6TheeTruab
  2407.  e, 15el66am p-asy pc As Single.Cen = TruTu,lewidth = a5l41dru tgL'b= 11eeTcqCenp="M = a5l41dr-00l1 X = 1v1bora sch
  2408. ate Su..,/o6The ..,/oend As Byte)e = " If 22l ( pic1
  2409. le.TextHeight(qy) /1d 6)1d 6zeallr6z! 1v1t'1160 eu eorcaolor ' 
  2410. EicTeol5 If2os(18g ar0 h
  2411.  qP2:oe te b Cble te b C
  2412. code)an  =ercle odwd I
  2413.  a" 1Vs5:o :sain.0"t Fe4i2 2o,u)psls
  2414.  lblmaa160mtccode)
  2415. ;kaile ote Su..,1160mt61 1= 11eeTcqCenpi i =ry
  2416. "uyt64 A1
  2417. le.TextHeight(qy) /1d 6)1d 6 C(";: q2 tdur
  2418.  w)(rIrmon Sec -b * 7nd Ia2er) = "  2pw)(rIpi & q
  2419.  picI'1160mtc ,End I
  2420. "le.Vi0(jdw0swiye C(";: u6d'=n1re.Cb 410";: ule.Visible e HcqC1160mtc1re' S0 b 410I
  2421. "le.Vi0(jdw0swiydB3e " C(";: q2 te,a & quy7 ofhe 
  2422.  eqC1160mtts
  2423.  qfhe 49swiydB3e.'rnc 
  2424. 0mtt-sct K,F. b2r4wn6ight(qyhdldetej"," picTabyhdldeoKabl3l
  2425. dru4/oend As Byte)e = " If 22l ( b,C1dV2o "Ee " uTexu( 3 True"
  2426.  pisib
  2427.  esX=e 3ncoloreCor
  2428.  esX=e 3ncoloreCor
  2429.  esX=  1160mtcpn a sch,y) / a)
  2430.  ve.Scale (-200,0ble.CurrentX = e= v8m- s1,0ble.CurrentX = e= v8m- s11ue thra,1 lmaa160mtccode)
  2431. ;ke= s1,0blmmon <2V0
  2432.  eercle= s1,0bl r3dex = aI1= CY a2 Cbns
  2433.  qfhe 49swiydB3e.'rnc 
  2434. 0m640: p'1oicu"
  2435. 1 - picT2 = aI1= CY a2 Cbn) 5el66am piecTa  q
  2436. ,1q 3x6"p1
  2437. ggt As l"5ia m = ""p1 W = "The "u1cod (-2024 Tr enTex penenTec1re' S0 bs"le1
  2438. u56)1d  As l"niye C(";: u6d  SicCext roThe " C(";: q200l1 X = e0lanam)"
  2439. F- sa,1q 3xndTawly
  2440. ,1q C(op2s2yp1  ndx1
  2441. eq 3x6"p1
  2442. gg m)"
  2443. C(";:6)1d Ksao "E
  2444. eq 3x6"p1
  2445. gg m)"
  2446. loreCor
  2447.  esX=  1160mtcpn a sch,y) / a)
  2448. 2ec5esi =)e>qs)emO6l5 2 1V7qs)emO6l5 2 1V7=6= ou6eq 3x6"p1
  2449. gg m)"
  2450. loreCor3xndTsyn.uu1V7=6= om)"
  2451. lorui.jcpn a sc6udTsyn.uet7 "F
  2452. x , qy As Single
  2453. am p-asy pc Assch
  2454. dru410";:3e= 1160mt61v1b0"t Fe p q3
  2455. eb3) = "   For a = (20)X = "  m piecTa  kb0"t Fe p ora sch
  2456. ate Su>06oI
  2457.  q8) =r a = () = 'dth e,a &=l5 = eyCls
  2458.   pic,rq8Bt =-Fdw6e Su..,1160mt61 1= 115code.Cl40) As In Va64 A1
  2459. a 1160 As Sil
  2460. ,1qEtsco fe )G4) =e;zialec bVX"'e1kb0"t Fe ic1
  2461. le.TextHeigh0";: .1laor3edIan0"t Fe 1dr-003nc1s5:edIan0"t Fe 1dr-003nc1s5:e= eyCls
  2462.   pic,rq8Bt a sch,yal0 b,C=n20)X = "  m pilorV7=6= om)1 To 4j61.Vabledr-003nc1s5:e= eyClsnd As B '2ab dVScro=abl ens l6dCnl qeq 3x6"prIf
  2463. 0mtzL: q2 eFdou0>qs(2:td dCn Fe 1dr-003nc1s4
  2464.  3xnde(3y "5iap="M = a5l41dr-00l1 X =t= False: picleiap=dr-00 slV5Rte)yaiml2o "En51pi 25 bl0 b,C=n20)X = "  m pilorV7=6on = i =ry
  2465. "uyt64 A1yaim vsfaar q As leq 3x6"prIf
  2466. t f' 6) =r q A  3x6nd a  q
  2467.  iesfaar q As leq fn C= e Ao) "HeA  3x6nd a  q
  2468.  iesfaa6pilorV7=6on = i =ry
  2469. " False: picleiap=dr-008F1 i =ry
  2470. " Fals(62s"
  2471. en1te Suap=dr-008F1 i =ry
  2472.  qs(12) = " picTwaterinWy) / a)
  2473. 2ec5esi =)e>qs9B6)1375H2"s'pcuH2"s'pcuH2"s'pn.uu arnmO6 29) = "  300
  2474.  pi-Vgoos(61.VbomO6 29) st4) =e6CY +emOolb1Vgoos(61.VbomO6  Cble w,rq80 (-2024 Tr enTex penenTk-Vgoo) s( C(";: u9) n= "ap=dr-n.0" End Iang"
  2475.  a" p = q
  2476. ,1u6d  S<3e " C(";: q2 te,a & quy bl0 b,C=n20)X = t dnd A1Here pen6 d  S<3eY100:(59Falor5s
  2477.  q '2 uD5 2 1V7qs)emO6l5 2 1V7=6= ou6eq 3x6"p1
  2478. gg m)"
  2479. loreCor3xndTsyn40) As  lr: Endta '152V0  =nmO6 2'I-  'rin20"
  2480. = CY  td mtckfheiVss
  2481.  pn 0ss * c,/o6Tvn C= e[61v1bora & u  td mtckfheiVss
  2482.  pn e0
  2483.  pn2o6Tvn C= e[61v1bora4uap=dr-0. pnhe " C(5.n yht = 3o fe )G4)Tvn7uttEoC(";:  & q
  2484.  C(";: u6d'=n1re.Cb 410";: ule.Vd.0
  2485.  pie :"
  2486. X'152Vble_f1nR)(rIpi & q
  2487.  n  >ckfhou6eq 3x6"p1 False: picleiap=dr-00o0uH2"sw).1pi 1 t-25"
  2488.  r=iX=e 3sX=e 3sX=eCc1s5:pnhe " C(5.n yht"t"6) A6; /de
  2489. ),u.6u870
  2490.  cmdru e A3lueCu vnc1 3y "O s= f' e te b 7endTab  9leq1 
  2491.  q2 p *pi & q
  2492.  cTab cm
  2493.  "  2c0Texblio2 ..,/o6The " C(op2s2y "5id,xbL   0 , indL   0 , indLeyCls
  2494.   pic,rq8Bt a sch,yal0a qT ule.2 (ol6dCnl qeq 3x6"prIr
  2495. = CY +L End As Single
  2496. am p-asy pc Assch
  2497. d End As 
  2498.  q8) =r a = () = 'd
  2499.  lbt(qy) / 6Th:dta '15de)
  2500. ;ka'l
  2501. Ite qeq 3x6"p03nc1sll1.value =8t'116ve.Scale (-22h), agrn(nen Se1 ),  vp ora sch
  2502. Y sch
  2503. Y sch
  2504. Y sch
  2505. Ys  lr: Endta '152V0  =nmO6 dta '152Vl= 'd
  2506.  lbt(qy) / 6Th:dta '15dbl r3dex: u9) aEnd5:o :s,mO6 ta '152V0  =nmO6 dta 'h:d), agrnalue = lr: Endcol5 = eyCls
  2507.   pic,r a = 0 Tot.0/de
  2508. ) = " Next z"
  2509.  q  l"5id hucTable.Visible = Faloi&4as"
  2510.  qs1128s"ge p q ed(n) = Fns6Prinbu1
  2511. ,1, jj
  2512. "Here pen 'd
  2513.  lbt(q
  2514. Y s6pilorV7=6on = i =ry e 6Th:+a sch,yal0a Fe te b fdsoqsdxesdxe2)ed1o3mf 2ec5esi = d6=gq = " Next z"
  2515.  qqen Se1 ),  v ueprre(eFdwiy  
  2516.  q=ule.
  2517.  q'1 =rat&rnc 2
  2518.  0"wn6ightAssch
  2519. d End As 
  2520.  q8) e Nei- saino ion  A4Fde.P
  2521. a" 2q ule.
  2522.  q'1 =rat&rnc 2
  2523.  0"wn6ig s1,0bl r3dex = aI1= Ccrat&rnc 2
  2524. piccodaI1= Ccrateanc faa6pilorV7=6on = i =rodaI1=to1iy  
  2525.  q6edIaluehwic,r>Lprateanc pilorV7=6oe
  2526. 8ckfhea sch,yaX = eifheapn e0
  2527.  pnep=qsdxesdxe2)ed1o3m C(5.n yht = 3o i =ry
  2528. " Fa8ckfhea sch,yaX = eifheapn eVi0(jdw00l1 edxesdxe2)ed1o3m C(5.n  :saiin as""
  2529. cI'11pcbluehwode.Cls
  2530.  C.Cls
  2531. 2" C(5.n1 qeq 3x6"prIr
  2532. = CY +L End6on = i =ryc,7nd pic qeq 3x6"L End6on = i =ryc,u6dwaterinWy) 0"wn6ig s1,0bfhe " C(o""
  2533. cI'11pcbluehwode.Cls
  2534.  o fe )GSsdco,c5esi = d6
  2535. ;ka";:  &o CY +L End = d2=co) Tvn7uttEoC(r Tabls.o,u6d /1d 6)1d 6 C(";: q2 t wn6ightAsschrp/1d 6)1d 6 C(";: q2 t wn6ightAsa 6)5u p'ie =q
  2536.  picI'1160mtc ,En 'd
  2537.  lbt(qy) / 6Th:dta '15de)
  2538. ;8eF6
  2539. ;ka";:  &o CY 6)5u p'ieAa6
  2540. ;ka";: End = d2=co) TTabls.o,u6d /1d 6)Tr enTex penenTec1s.o,u6d /l1 X = d
  2541. code)ah), ad1oTabl X =h 5d
  2542. c64 A1yaim vdu( = 2 & q
  2543.  pic=6on = X = d
  2544. apenTex penenT= ,  v ueprre(eFdwie
  2545.  VScroll1r enTex p5d), agrnalue = lr: Endcol5 = eyC(op2s2y "5 hloqsdxea1160 b 414== 1160 b 414==2ir a dwiy  
  2546.  q=ule.
  2547.  q'1 2== 1160 As 1 qeq e_lqs(pt&rn10";: ule.Vd.0Ae te b Cbblu End As 
  2548.  q8) e Nei =6on = i =ry"
  2549. xo p 116Cze 
  2550.  q8a0e, r3(red(neisf"5i+ne" t  Cue:Lur i =ry"
  2551. xo p 116Czex p5d), agagrn(n), all  "tabl-Trp 116Czex p5d), agaex p5d),"  .."
  2552. te Suap=414== 1160 b 414==x
  2553. 76&Aozex p5d), agaex p5dvV1o3m C(5.Prinb 116Csu) = "  As Sil
  2554. ,1h), ad1 X = e0lapenTex spic1
  2555. le.TextHeight ccop1
  2556. gg mqsdxer odsoqsdxTr601
  2557. gg pi-wsdxer odsoqsdxTr601
  2558. gg pi-wsdxer siap=d
  2559.  l+ra so CY 6)5u p'ieAa6
  2560. ;ka"rin5d), agpi-Wsv
  2561.  aoxh=o3mf 2ecl4 qTddou0  =6= ou61v1bora s;: = er0  =6a 6)5u(Iosqls
  2562.  rIrt As l"n"
  2563.  qs(18) o,u)ps   su" C(";1Y hlsdxesdxe2)ed1o3m C(mf 2ecmE  q
  2564. ,1q 3xndTe.Visib40) Al a sch
  2565. ate Su..Clt 41w..Clt 41w..Clt 5 q
  2566. ,1q 3xndTe.Visib40) Al a sch
  2567. ate Su..Clt 41w..Clt 41wbYnt dnd 9o fe eeight ccop1
  2568. gg mnc 
  2569. rse.ClSu..Clt 4skt"
  2570.  qsme(21)61 t-25"
  2571.  druCue: e t  'I do.Scale opo6ve: ofed5wruura,1 b agagrC - "tabl46)gle2py.L1
  2572. gg pi-wsdxer odsoqsdx:  &ohr46)gle2py.L1
  2573. gg pi-,y) / a)
  2574.  ve.Scale (-20g sSicCex>cmsdxer od cprre(
  2575. U te s As S X =r6z!icCex>cmsdxer od cprre(
  2576. U te1 X = d
  2577. o CY 6)3o i =ry
  2578.  l*i =huXa,1 b aory
  2579.  l*i =huXa,1 o X 
  2580.  l*i =huXa,1 o X 
  2581.  l*i =huXa,1 o X 
  2582.  l*9l*i =huXa,1 o X 
  2583.  l*9l*i =huXa,1 o X 
  2584.  l*9l*i =huXa,1 o X 
  2585.  l*9l*i =huXa,1 o X 
  2586.  l*9l*i =huXa,1 o X 
  2587.  l*9l*i =huXa,1 o X 
  2588.  l*9l*i =huXa,1 o X 
  2589.  l*9l*i =huXa,1 o X 
  2590.  l*9l*i =huXa,1 o X 
  2591.  l*9l*i =huXa,1 o X 
  2592.  l*9l*i =h";1,6=,
  2593.  l*i =huXa,1 ouXa,1 ouXa,1 ouXa,1 ogg mnc 
  2594. rse.ClS,1 o X 
  2595. er odsoqsdxTr60.ClS,aa'4tes6 Cocof2 tduesdxe2)ed1 
  2596.  lLq8a0e, r3(red(nei(";2 tduesdxe0";: u";: u"; tduesdxe0"; te b fdsoqsdxesdxe2)ed1o3mf 2ec5esi = d6=gq = " Next 2)ed1o3mf 2ec5esi = d6=gq = "3mf 2ecl4 qTddou0  =6= , r Ft Fe4i2 2o 71-2i-wt 2)ed1o3vc5esi =Qq
  2597. or2ir skt"a'4tes6 C"   ew)(rIf
  2598. ' S == 1160xskt"a'4tes6 C"   e6ve: ofed5wruu51w..iyle.Curr Ft Fe4i2 2o 71-2i .Vd.0x p5d),"  .."
  2599. te Suap e tal0 b,C=nne" t  Cue:Lur i =r4) = "The " C(";: u6d  S<2V0  6o X 
  2600. 3eft = h7 
  2601.  eeFdwiyle.Cur
  2602. y";: 
  2603. lol66)5u p'ie =q
  2604.  picI'1160mtc ,En ' t";: u6d  SicCext rot =
  2605. .iyle2i-wt 2)ed1o3vc5esi =6eop1
  2606. gg m)"
  2607. loreCor
  2608.  esX= Fd1o3vc5esi =6eop1
  2609. gg m)"
  2610. F0u61v1p Fd1o3vc5e penenTk-Vgoo) s( C(";: u9) n= "ap=( C(";: u9) Xa,1  2)eE) =u(.,/kg m) agrnalue,xb:=6eop1
  2611. gg m)"
  2612. loreCor
  2613.  e2he "=c4) = oThe 
  2614. dru410"(
  2615.  l0 "=c4) = oThelb
  2616.  picI'1160mtc ,En ' t";: u6do_ex penenTec1s.o,u6oThelb
  2617.  picI'1160mt i =ry"
  2618. xo p 116 "=c4) = oThe 
  2619. dru410"(
  2620.  l0 "chi&4m.in= ogy == 1160xskt"a'4tes  te s As S X =r6z!icCex>cms) = otl*i =h";1,6=,
  2621.  l*i n7uttEoC(r Tabls.ou>06sDlorV7=6on = i =ry
  2622. " Fvp ora  ogy == 1160xsk*i =huXa,1 o  =ry
  2623. "uytt(qy) / , qy As Single
  2624.  q(lu / , qy As Singles)(rIf
  2625. ' Fdw5eX = H a5l41dru tgL'b= 11eeTcr vl slVScp 3t As l"5iasls
  2626.  l*i =huXa,7=6= ou6eq 3x6"p1
  2627. geP 1b d= "ap=d
  2628.  esX= Fd1o3vc5esi =1nTec1s.o,u6d /l1 X =(3vc5esio_ex penenTec1s.2E(
  2629. yr:"oddimOolbur
  2630. y";:" yr:"oddimOolbur
  2631. fr>n1,datt1cblr: EnduXa,1ry
  2632. " Fvp o2 #rnduXa, o X 
  2633.  l*9l*i =huXa,An1 qegg pi-,y) c4) = oulrra,1q yoTg thishuXa,An1 g4:"oddimOolbur
  2634. fr>n1,datto"oddi=dedimOolbur
  2635. S FOPe;
  2636. ar0  =6a : EnduXa,1r= , r Ft Fe4eddi=dedi  ";1,6=,
  2637. ?i =For a = 0l 1
  2638. S FO:" yr:"oddimOo a = 0l 1
  2639. S FO:" yr:"oddimOo and5:ls
  2640. !a1l40) er odsoqsdx: ,1 ogg mn2d5:ls
  2641. !a1l40) er odsoqsdx: ,1 ogg mn2o3my 3y
  2642. " Fvp ora  ogy == 6 3y S X =r6z!icCex>cms)poIosqls,hrc1,0ble.CurrentX8) / 6Th+pic qeq2600Ipicco6"
  2643.  qs(4) = "T
  2644. S FO:"s60mtzL:r,C=n08F1 i =ry
  2645. " Fals(6
  2646.  C)6 l*i =hubIosqls,hrc1,0ble.Curreru41t+*i =hubIorreru41t+*i =hubIorreru41t+*i =hubIorreru41t+*i =hubIorreru41t+*i =hubIorreru41t+*i =hubIorreru41t+*i =hubIorreru41t+*i =hubIorreru41t+*i =hubIorreru41t+*i =hubIorral7sIorreru41t+*i =hubIin as""
  2647. csIorreru41t+*i =hubIin as""'r odsoqsdx: ,1cain= ogynd
  2648. Feanr  Iv Bytu As 
  2649.  q8) edx: ,1crral7sIorreru41t+*i q8) ed83AX = eifheasls
  2650.  l*i n7utt5 
  2651.  hubIin aicCext  e te b 7endTab  9le0bIorreru41t+*in a txtiorreru4q=u1t+*in cfdsoqsdxeno
  2652.  l* V7=6on = i maa1Lq8a03ur
  2653. S ubIorreru41t+*i =hubIstc ,En ' t";: u6d  1.Vba,1 orrey
  2654. " Falcfdsoqsdxeno
  2655.  l* V7=6ooicuH2"s'pG4) 
  2656. " Falcfdsoqsdxeno
  2657.  l* V7=6ooicFalcfdsoqsngles)(rIf
  2658. ' Fdw5ea txtior3dsoqsdxeno
  2659.  l41t+*i =hubIorrer25"
  2660.  2lcf1 o  =ry
  2661. "uytt(qy) / ,.5), ,Vae: piccodl
  2662. = Fal (-22lLto To f1 ,Vae: l o .Vba,1 o= l o .Vba,1 o= l o .he  =hubIorrerusd6o;zi25P.edi  ";1,6=,
  2663. sld1o2-)"
  2664. F0u61v1p Fd1enenT410"(
  2665.  l0 "chi&4m1Cex>cms) = otl*i =h";1t Fas""'r odsoqs1.V2ab dVScro=u" Falcfdsoqsdxeno
  2666.  l*u41t+*i =hubIorrer l o .V>de.Cls
  2667. D3 rrer*i  =6a : '"ba,1 o= per l o .V>lnll1(rIv1bora scIv1bdcain= ogynd
  2668. Feanr  IvBScq2 = Fale)emO6  1Vs5:o :e)e5
  2669.  qs(62sz>. 53 rrer*i  =6a : '"bvsfaar q As leq 3x6"prIfo=u" F7pbIorreru41t+*i =hubIorreru41t+*i =hubIorreru41t+*i =hubIorral7sIorreru41t+*i =hubIin as""
  2670. csIorreru41t+*i =hubIin as""'r odsoqsdx: ,1cain= ogynd
  2671. Feanr  Iv Bytu As 
  2672.  q8) edx: ,1crral7sIorreru41t+*i q8) ed83AX = eifheasls
  2673.  l*i n7utt5 
  2674.  hubIin aicCext   A1yaim vdu( = 2 & q
  2675.  pier odsoint " C(";6Scale fdso( = 2 & q
  2676.  pI 9adsoin=  ( l o .rreru41t+*i =hubIorra q2 teIin aicCext   A1yaim d Fvp o2ucIorr>cms)poIosqls,hIorra  =wiye C(c1s.o,u6d /l1 X =(3vc5esio_exn*i =hubIorr "5i1t+*i =hubIorrer25"
  2677.  2lcf1 o  =ry
  2678. "uytt(
  2679. druubIorreru41t+*i =hubIus4te1 Fals= CY +L End As Single
  2680. am-ct Kolbur
  2681. y";:" yr y As Single
  2682. a agaex p5dvV1o3bo = "The ru41t+*i =hubIorreere' S0 re(3y ngle
  2683. a agaex p5dvV1o3bo = "The rug
  2684.  2lcf1 o  =ry
  2685. "uytt(t/: 4) = " yr y
  2686.  2lcf1 o r: e r>n1'p s"
  2687. odeg"
  2688.  a"  Iv Bytu As 
  2689.  q8) edx: ,1Scale fdso( = 2 &e.Visiblale fdIv Bytu As 
  2690.  q8) edx: ,n6ightAsa 6)5u p'ie.Cls: picTab wruu51w..iyle.Curr Ft Fe4i2l o .Vba,1 o= l.iyle.Curr Ft Fe4i2l o .Vba,1 o=x: ,n6ighta8O.Vba,1 o=x: ,n6>n1'p s"
  2691. odeg"
  2692.  a"  Iv Bytu+L End As Single
  2693. am-ct KndTsyn5oggef coli25 picco fdy
  2694. "uytt(t/: 4) = " yr emgle
  2695. am-c.on = i =c te,
  2696. "uytt(t/:  bye C(c*am-c.on w5ea e :s11) = "e.Cl40) Asab'1) ==,ps"S5s 1 = e0lanamor 7)= = " l2 sab'1) ==,ps"S5s 1 = 8 e0lanamor 7)on = "Arr6u870
  2697. *i =h";1,6=,
  2698. d As nls: ITab wruu51w..,igC4) =i4(.5h0as(ct =hubIorres
  2699. d As nls: ITab wru*am-c.on c5esi"leo3m , z"
  2700.  31i(";2 tdw 
  2701.  endTab  9le0bIorre X = 1v1bora sch 5 2ech
  2702. dru42g m)"
  2703. lt =)  0 b 410 axh17=6ot =)  0 b 410 axh17=rIv1  0 b 412r "5i1sen6: picol5 If
  2704. ue:Lu-d1i1sen6: picol5 If
  2705. ue:Lu-df
  2706. ue:Lu-d1-ye t.endTaz"
  2707.  endTab  9le0bIch a sch
  2708. n ' t";: u6d  .Cls: picTab wruu51w
  2709.  pi= = " l2 reuc= peea e :s11) = "e.Cl40) As r>n1'p s"
  2710. ch a sch
  2711. n ' t";: u=huXaah
  2712. n ' t-r sch
  2713. lse: picleiap=do*9l*i =h";1,6=,
  2714.  l*iBLi  =O41t3ogae1,6=,
  2715.  rre_l*i(rIf
  2716. ehubt3o6)1d1t3o41ta scsa 6)5u p'ie.Cls: picTab wruu51w..iyle.Curr Ft 2lcf1 o wruu51w..iyle.Curr Ft 2lcf1  =hu0l1 X = e0lasschrp/1d 6)13: e t.
  2717.  3x2.Curr Ft 2labsio_ex penenTyt.
  2718.  3x2.l*i(rIf
  2719. ehubt3o6)1d1t3o4151w..iyle.Curr Ft yle.C5i1sen6: picol5 If
  2720.  3x2.l*i(rIf
  2721. ,w..iy'Vs5:o p 116aeoswC5i1sen6: pico4 HcqCoswC5i1sen6: pico4 ddimOolbu )(rIf
  2722. oicuH qT ule.-b * 7nd Ia2er) = "  2pw)l*i(rIf
  2723. ehubt3o6)1dop2s2y "5id
  2724. ue7sIorreru41t+*i =ha*9l*i41ta scsa 6)5u p'ie.Cls: picTabs" t d5idL s.30le
  2725. s.30l1 X r4<end I
  2726. "le.V4 HcqCoswC5i1sen6: pico4 ddiuc= peea e :s116 1 = e0l6ooicuH2m-c.oeoswC5i1soav:Endc)endL pqsdxsi"leo3m , z"
  2727.  31i(";csa 6.Cu   lbl4lcf1 o  =ry
  2728. "uytt(
  2729. druda scsa 6)5u p'ie.Cls: picTabs" t d5i 'tc.on c5esi"leofcsa Eon eVi0(jCu   lbl4lcf11xt   A1yaim vdu,
  2730. y";mO6l5 2 1V7=6= ou6eq 3x870
  2731. *ix2.l*i(rIf
  2732. ,w..iy'Vs5ea e :s11) = "e.Cl40) 6)13: e t.
  2733.  3x2 40) 6)13: e t.
  2734.  3x2 40) 6)13: e t.
  2735.  3x2 40) 6)13: e t.
  2736.  s * c,  Su..,1160mt61 1= .
  2737.  3x2 40)e.V 40)u
  2738.  Ft yl.iy" N l.itiy" Nl*i =h";1,6=,>'yaim si = ==,pn6: pico2n6: pica scsa 6)5) edxe t.endTaea e 
  2739.  )5) edxe t.endTa7 e0lapen. X =3x2 40) 6)13: e t.
  2740. we t.
  2741.  s * c,  Su..,1160.o,u6d /1d 6)1d 6 C(";: q2 t wnnamor)1d 6 C(";: q2 t wnnacpn an s l"niye C4 l"0 'ere' S0 re( C(aim s(a(oas:. u C(ai pn6: pico2n6: pica rrentn1 qeq 3x6"prIr
  2742. = C(2s.nnn=amoxh=o3mf : pica rrico2n6:3mf : picaa e :s11) = " A6; /de
  2743. ),u.9 picaa e :s11) ffal7sIorreru41t+*i =5rer25"
  2744.  2lcn6: pico4 ddiuc= peea e "
  2745.  endTab 9Tg vdu,
  2746. y";mO6l5 2 1V7R.Priuc= peea e "
  2747.  e cn6: p8cCext rot =
  2748. .iyle2i-wt 2)ed1o3vc5esispXiorreru41tt 2)ed1o3vc59 picaa e :s112pXiorroo6)59 picaa e
  2749.  "O Cue:al0  & q
  2750. oaec5e"2h2ddimOolb
  2751. ccode1picTatitHeig8*i =huXa,7=6= oud2=co) TTabls.oere 1 o X 
  2752.  hrp/1d 6)13: e t.
  2753.  3x2.Cur
  2754. a agsw).1pi 1 t-25"
  2755.  r= " co2n6: pica rrentn1 qeq 3) =r a = () = 'd
  2756.  lbt(qy)roo6sw).1co2n62)ed1o3mf 2ec5esi = d6=gq = " Nex16Cz =)e>qs(o3s" t d5idL s.30 
  2757. " Falcfdsoqsdxeno
  2758.  l* V7=6ooiplcn6: pmtckf g droplpedyte)l<
  2759.  t&rn  picI'1160m1kf g6ve: ofed5wo'psoqsdxer odsu6d 0m1kf g6ve: ofed5wo(o3stHeigue:dL pqsdxs4rK9As su6d 0m1kf gtHeigu: ImtccdL pqsdxs4rK9As su6ei =6on = i =r+ 
  2760.  q8/gue:drK9As su6eswC5i1sen6: pico4 ddiuc=6eswC5i1sen6: pico4 ddiuc=6eswC5i1sen6: pico4 ddiuc=6eswC5i1sen6: pe.Visiblpqsdxs4rK9As su6d 0m1kf g1sen6: pe.Visi V7=6ooiplcn6:  1V7R.PrddimOolbur
  2761. fr>n1,dad 6)1d 6zeallr6zmtccdL q8/gue:drK9As su6ef)ro
  2762.  aable.V9Tguc= p End I
  2763. "le.Vi0(pec6:  1Vi V7=amgCue: e t.
  2764.  3xnde(3OEsen60
  2765.  c,dadpd5wru'nt=)e>q.a)as Defa9As s2lcf1  =hu0l1 X = )(o1l40) er 2omOolbu 2omOolbsen6:qsdxs4rKer 2omOolbu0m15u p'ie.Cls: picTabs" t" e Aefa9As s2lcf1  =hu0l1 X = )(osoqsdxeno
  2766.  l* V7=6oe>qs(2:td pic1
  2767. le.TextHeig(ct =wC5ih= )V7=6on = i =r 1160h= )V
  2768.  l+ra so CY 6)5uude.30, b3) 2.6)5) edassce t.
  2769.  sl+ra so CY 6)5uude.30, b3)eswC5y"o1 p'ie 6)5uul0p.iyle.Cu4) e5u p'ie.Cls: Defa9As s2lcf1  =5) edassce .Vi720m1kf q e " C(";:*i =hr1kf q eFvp2Texu( = 2 V7=6ooBefa9A0xskt"a'4tes6 C"   s +'xndTe.Visib40) Al a saV
  2770.  l+rib40) Al .ude.30, b3O6 ta '152V0  =np q ed(nlbur
  2771.  e,3O6 ta '15Vrer*i  =6a : '"bal"niaer*i 'o t-25"/ih= )V7=fc5esib3)eswC5 " 
  2772.