기타 [vb.net] CallByName을 이용한 Shared 로 설정된 변수에 값넣고 불러오기
페이지 정보
본문
<Serializable()> Public Structure PhotoUploadInfo
Public Shared index As Integer
Public Shared url As String
Public Shared path As String
Public Shared fileName As String
Public Shared width As Integer
Public Shared height As Integer
Public Shared colorSpace As String
Public Shared fileSize As Integer
Public Shared thumbnail As String
End Structure
Dim PI As PhotoUploadInfo
For Each str As String In {"index", "url", "path", "fileName", "width", "height", "colorSpace", "fileSize", "thumbnail"}
CallByName(PI, str, CallType.Set, value)
Next
Return PI
MsgBox(PhotoUploadInfo.url)
- 이전글[vb.net] 클립보드(Clipboard)의 HTML 가져오기 및 HTML 쓰기 20.05.06
- 다음글[vb.net] Interaction.CallByName(Object, String, CallType, Object[]) 메서드 20.04.24
댓글목록
등록된 댓글이 없습니다.