home *** CD-ROM | disk | FTP | other *** search
/ DOS/V Power Report 1996 February / VPR9602A.ISO / fwindows / archive / exds100.lzh / SPACK.LZH / EXCEED1.FRM < prev    next >
Text File  |  1995-09-30  |  5KB  |  179 lines

  1. VERSION 2.00
  2. Begin Form S2E 
  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          =   3510
  11.    Icon            =   EXCEED1.FRX:0000
  12.    Left            =   930
  13.    LinkTopic       =   "Form1"
  14.    ScaleHeight     =   3060
  15.    ScaleWidth      =   7530
  16.    Top             =   1305
  17.    Width           =   7650
  18.    Begin TextBox Text1 
  19.       BackColor       =   &H0000FFFF&
  20.       Height          =   495
  21.       Index           =   1
  22.       Left            =   180
  23.       TabIndex        =   7
  24.       Text            =   "EUC2.TXT"
  25.       Top             =   1140
  26.       Width           =   7065
  27.    End
  28.    Begin CommandButton QQQ 
  29.       Caption         =   "Help"
  30.       Height          =   375
  31.       Index           =   1
  32.       Left            =   3720
  33.       TabIndex        =   4
  34.       Top             =   2550
  35.       Width           =   1545
  36.    End
  37.    Begin CommandButton CMD 
  38.       Caption         =   "実行"
  39.       Height          =   495
  40.       Left            =   2490
  41.       TabIndex        =   3
  42.       Top             =   2430
  43.       Width           =   1095
  44.    End
  45.    Begin CommandButton QQQ 
  46.       Caption         =   "Quit"
  47.       Height          =   375
  48.       Index           =   0
  49.       Left            =   5400
  50.       TabIndex        =   1
  51.       Top             =   2550
  52.       Width           =   1545
  53.    End
  54.    Begin TextBox Text1 
  55.       BackColor       =   &H0000FFFF&
  56.       Height          =   495
  57.       Index           =   0
  58.       Left            =   180
  59.       TabIndex        =   0
  60.       Text            =   "ABCD1234あいうえおx yzアンドウ マサヒロ安藤雅博09876543"
  61.       Top             =   330
  62.       Width           =   7065
  63.    End
  64.    Begin Label Label1 
  65.       BackStyle       =   0  '透明
  66.       Caption         =   "返却値 0:エラー n:変換結果サイズ"
  67.       FontBold        =   0   'False
  68.       FontItalic      =   0   'False
  69.       FontName        =   "MS ゴシック"
  70.       FontSize        =   12.75
  71.       FontStrikethru  =   0   'False
  72.       FontUnderline   =   0   'False
  73.       Height          =   345
  74.       Left            =   840
  75.       TabIndex        =   8
  76.       Top             =   1830
  77.       Width           =   3855
  78.    End
  79.    Begin Label Label2 
  80.       BackStyle       =   0  '透明
  81.       Caption         =   "EUC変換結果のファイル名"
  82.       FontBold        =   0   'False
  83.       FontItalic      =   0   'False
  84.       FontName        =   "MS ゴシック"
  85.       FontSize        =   9.75
  86.       FontStrikethru  =   0   'False
  87.       FontUnderline   =   0   'False
  88.       Height          =   255
  89.       Index           =   2
  90.       Left            =   210
  91.       TabIndex        =   6
  92.       Top             =   930
  93.       Width           =   2205
  94.    End
  95.    Begin Label Label2 
  96.       BackStyle       =   0  '透明
  97.       Caption         =   "Sjis"
  98.       FontBold        =   0   'False
  99.       FontItalic      =   0   'False
  100.       FontName        =   "MS ゴシック"
  101.       FontSize        =   9.75
  102.       FontStrikethru  =   0   'False
  103.       FontUnderline   =   0   'False
  104.       Height          =   255
  105.       Index           =   0
  106.       Left            =   210
  107.       TabIndex        =   5
  108.       Top             =   120
  109.       Width           =   6015
  110.    End
  111.    Begin Label Label3 
  112.       BackColor       =   &H0000FF00&
  113.       BorderStyle     =   1  '実線
  114.       Height          =   465
  115.       Left            =   210
  116.       TabIndex        =   2
  117.       Top             =   1770
  118.       Width           =   495
  119.    End
  120. End
  121. Option Explicit
  122.  
  123. Dim entmode As Integer
  124.  
  125. Sub CMD_Click ()
  126. Dim s1 As String, s2    As String * 256
  127. Dim RT
  128. Dim FP, FILENAmes
  129.  
  130.   s1 = TEXT1(0).Text
  131.   '
  132.   RT = SJ2EUC%(s1, s2)
  133.   '
  134.   LABEL3.Caption = Str$(RT)
  135.   '
  136.   FILENAmes = TEXT1(1).Text
  137.   '
  138.   FP = FreeFile
  139.   Open FILENAmes For Output As #FP
  140.   Print #FP, s2
  141.   Close #FP
  142.   '
  143.  
  144. End Sub
  145.  
  146. Sub Form_Load ()
  147. Dim i As Integer
  148. i = StrMain.CMD(0).Tag
  149. Caption = StrMain.CMD(i).Caption + "  (" + StrMain.Label1(i).Caption + ")  " + " 動作試験"
  150. entmode = 0
  151. End Sub
  152.  
  153. Sub QQQ_Click (index As Integer)
  154. Dim ccc As String
  155. Dim MM  As String
  156.   ccc = Chr$(13)
  157.   Select Case index
  158.   Case 0
  159.     Unload Me
  160.   Case 1
  161.  
  162.     MM = MM + "Sj2euc" + ccc + ccc
  163.     MM = MM + " <概要>シフトJISコードの文字列をEUCコードの文字列に変換します。" + ccc + ccc
  164.     MM = MM + " <引数>" + ccc
  165.     MM = MM + "     <SJIS文字列> <変換結果文字列領域>" + ccc + ccc
  166.     MM = MM + " <注意>" + ccc
  167.     MM = MM + "     変換結果文字列は256バイト以上の領域を必ず指定して下さい。" + ccc
  168.     MM = MM + "      DIM OutBuffer As String * 256" + ccc + ccc
  169.     MM = MM + " <返却値>  0:エラー n>0:正常" + ccc + ccc
  170.     MM = MM + " <特記事項> 文字列の末尾に改行がある場合は無条件に削除します。" + ccc
  171.     MM = MM + "        外字コード等についてはサポートされていません。" + ccc
  172.     MM = MM + "        " + ccc
  173.     MM = MM + "        " + ccc
  174.     MM = MM + "        "
  175.     MsgBox MM
  176.   End Select
  177. End Sub
  178.  
  179.