-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathモジュール_チャンネル名.vb
40 lines (35 loc) · 1.18 KB
/
モジュール_チャンネル名.vb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
Module モジュール_チャンネル名
'放送局
Public ch_list() As ch_liststructure
Public Structure ch_liststructure
Public sid As Integer
Public jigyousha As String
Public bondriver As String
Public chspace As Integer
Public tsid As Integer
Public Overrides Function Equals(ByVal obj As Object) As Boolean
'indexof用
Dim pF As String = CType(obj, String) '検索内容を取得
If pF = "" Then '空白である場合
Return False '対象外
Else
If Me.sid = pF Then
Return True '一致した
Else
Return False '一致しない
End If
End If
End Function
End Structure
'sidからチャンネル名に変換
Public Function F_sid2channelname(ByVal sid As Integer) As String
Dim r As String = ""
If ch_list IsNot Nothing Then
Dim i As Integer = Array.IndexOf(ch_list, sid)
If i >= 0 Then
r = ch_list(i).jigyousha
End If
End If
Return r
End Function
End Module