home *** CD-ROM | disk | FTP | other *** search
/ DOS/V Power Report 1996 February / VPR9602A.ISO / fwindows / exds100 / spack / exceed5.frm < prev    next >
Text File  |  1995-09-29  |  6KB  |  216 lines

  1. VERSION 2.00
  2. Begin Form EXIS 
  3.    BackColor       =   &H00C0C0C0&
  4.    FontBold        =   -1  'True
  5.    FontItalic      =   0   'False
  6.    FontName        =   "MS ゴシック"
  7.    FontSize        =   12.75
  8.    FontStrikethru  =   0   'False
  9.    FontUnderline   =   0   'False
  10.    Height          =   4665
  11.    Icon            =   EXCEED5.FRX:0000
  12.    Left            =   1545
  13.    LinkTopic       =   "Form1"
  14.    ScaleHeight     =   4215
  15.    ScaleWidth      =   7515
  16.    Top             =   1755
  17.    Width           =   7635
  18.    Begin OptionButton Option1 
  19.       BackColor       =   &H00C0C0C0&
  20.       Caption         =   "ディレクトリ"
  21.       FontBold        =   0   'False
  22.       FontItalic      =   0   'False
  23.       FontName        =   "MS ゴシック"
  24.       FontSize        =   13.5
  25.       FontStrikethru  =   0   'False
  26.       FontUnderline   =   0   'False
  27.       Height          =   375
  28.       Index           =   1
  29.       Left            =   210
  30.       TabIndex        =   10
  31.       Top             =   1260
  32.       Width           =   2025
  33.    End
  34.    Begin OptionButton Option1 
  35.       BackColor       =   &H00C0C0C0&
  36.       Caption         =   "ファイル"
  37.       FontBold        =   0   'False
  38.       FontItalic      =   0   'False
  39.       FontName        =   "MS ゴシック"
  40.       FontSize        =   13.5
  41.       FontStrikethru  =   0   'False
  42.       FontUnderline   =   0   'False
  43.       Height          =   375
  44.       Index           =   0
  45.       Left            =   210
  46.       TabIndex        =   9
  47.       Top             =   900
  48.       Value           =   -1  'True
  49.       Width           =   1395
  50.    End
  51.    Begin CommandButton QQQ 
  52.       Caption         =   "Help"
  53.       Height          =   375
  54.       Index           =   1
  55.       Left            =   3720
  56.       TabIndex        =   4
  57.       Top             =   3300
  58.       Width           =   1545
  59.    End
  60.    Begin CommandButton CMD 
  61.       Caption         =   "実行"
  62.       Height          =   495
  63.       Left            =   2520
  64.       TabIndex        =   3
  65.       Top             =   3180
  66.       Width           =   1095
  67.    End
  68.    Begin CommandButton QQQ 
  69.       Caption         =   "Quit"
  70.       Height          =   375
  71.       Index           =   0
  72.       Left            =   5400
  73.       TabIndex        =   1
  74.       Top             =   3300
  75.       Width           =   1545
  76.    End
  77.    Begin TextBox Text1 
  78.       BackColor       =   &H0000FFFF&
  79.       Height          =   495
  80.       Index           =   0
  81.       Left            =   180
  82.       TabIndex        =   0
  83.       Text            =   "data1.txt"
  84.       Top             =   330
  85.       Width           =   7065
  86.    End
  87.    Begin Label Label4 
  88.       Alignment       =   1  '右揃え
  89.       BackStyle       =   0  '透明
  90.       Caption         =   "検査結果"
  91.       FontBold        =   0   'False
  92.       FontItalic      =   0   'False
  93.       FontName        =   "MS ゴシック"
  94.       FontSize        =   12.75
  95.       FontStrikethru  =   0   'False
  96.       FontUnderline   =   0   'False
  97.       Height          =   345
  98.       Left            =   1110
  99.       TabIndex        =   8
  100.       Top             =   2430
  101.       Width           =   1155
  102.    End
  103.    Begin Label Label3 
  104.       BackColor       =   &H0000FF00&
  105.       BorderStyle     =   1  '実線
  106.       Height          =   465
  107.       Index           =   1
  108.       Left            =   2310
  109.       TabIndex        =   7
  110.       Top             =   2370
  111.       Width           =   4875
  112.    End
  113.    Begin Label Label1 
  114.       BackStyle       =   0  '透明
  115.       Caption         =   "返却値 0:存在  -1:存在しない"
  116.       FontBold        =   0   'False
  117.       FontItalic      =   0   'False
  118.       FontName        =   "MS ゴシック"
  119.       FontSize        =   12.75
  120.       FontStrikethru  =   0   'False
  121.       FontUnderline   =   0   'False
  122.       Height          =   345
  123.       Left            =   2970
  124.       TabIndex        =   6
  125.       Top             =   1800
  126.       Width           =   3855
  127.    End
  128.    Begin Label Label2 
  129.       BackStyle       =   0  '透明
  130.       Caption         =   "ファイルまたはディレクトリ名称"
  131.       FontBold        =   0   'False
  132.       FontItalic      =   0   'False
  133.       FontName        =   "MS ゴシック"
  134.       FontSize        =   9.75
  135.       FontStrikethru  =   0   'False
  136.       FontUnderline   =   0   'False
  137.       Height          =   255
  138.       Index           =   0
  139.       Left            =   210
  140.       TabIndex        =   5
  141.       Top             =   120
  142.       Width           =   3045
  143.    End
  144.    Begin Label Label3 
  145.       BackColor       =   &H0000FF00&
  146.       BorderStyle     =   1  '実線
  147.       Height          =   465
  148.       Index           =   0
  149.       Left            =   2340
  150.       TabIndex        =   2
  151.       Top             =   1740
  152.       Width           =   495
  153.    End
  154. End
  155. Option Explicit
  156.  
  157. Dim entmode As Integer
  158.  
  159. Sub CMD_Click ()
  160. Dim s1 As String, s2    As String
  161. Dim rt
  162. Dim modes As Integer
  163.  
  164.   s1 = TEXT1(0).Text
  165.   If OPTion1(0).Value Then
  166.     rt = Exists%(s1, 1)
  167.   Else
  168.     rt = Exists%(s1, 4)
  169.   End If
  170.   '
  171.   label3(0).Caption = Str$(rt)
  172.   '
  173.   s2 = "解析不能です"
  174.   Select Case rt
  175.   Case 0
  176.     s2 = "存在します"
  177.   Case -1
  178.     s2 = "存在しません"
  179.   End Select
  180.   label3(1).Caption = s2
  181.   '
  182.  
  183. End Sub
  184.  
  185. Sub Form_Load ()
  186. Dim i As Integer
  187. i = StrMain.CMD(0).Tag
  188. Caption = StrMain.CMD(i).Caption + "  (" + StrMain.Label1(i).Caption + ")  " + " 動作試験"
  189. entmode = 0
  190. End Sub
  191.  
  192. Sub QQQ_Click (Index As Integer)
  193. Dim ccc As String
  194. Dim MM  As String
  195.   ccc = Chr$(13)
  196.   Select Case Index
  197.   Case 0
  198.     Unload Me
  199.   Case 1
  200.  
  201.     MM = MM + "Exists" + ccc + ccc
  202.     MM = MM + " <概要>指定のファイル名称またはディレクトリ名称が存在するかを検査します。" + ccc + ccc
  203.     MM = MM + " <引数>" + ccc
  204.     MM = MM + "     <検査対象文字列> <タイプ 1:ファイル検査 4:ディレクトリ検査>" + ccc + ccc
  205.     MM = MM + " <返却値>  0 :存在する" + ccc
  206.     MM = MM + "        -1:存在しない" + ccc + ccc
  207.     MM = MM + " <特記事項> ディレクトリ検査の場合でルートディレクトリの指定で" + ccc
  208.     MM = MM + "        A: の指定では-1を返します。 A:\ \マークを末尾に指定して下さい。" + ccc
  209.     MM = MM + "        " + ccc
  210.     MM = MM + "        " + ccc
  211.     MM = MM + "        "
  212.     MsgBox MM
  213.   End Select
  214. End Sub
  215.  
  216.