[vb6.0/vba] htmlfile(MSHTML.HTMLDocument) 를 이용한 스크립트를 통한 encode / decode > vb6.0/vba

본문 바로가기

vb6.0/vba

[vb6.0vba] [vb6.0/vba] htmlfile(MSHTML.HTMLDocument) 를 이용한 스크립트를 통한 encode / deco…

회원사진
하나를하더라도최선을
2023-03-11 08:43 1,639 0

본문



Function encode(str)
    Set htmlfile = CreateObject("htmlfile")
    htmlfile.parentWindow.execScript "function encode(s) {return encodeURIComponent(s)}""jscript"
    encode = htmlfile.parentWindow.encode(str)
End Function
 
Function decode(str)
    Set htmlfile = CreateObject("htmlfile")
    htmlfile.parentWindow.execScript "function decode(s) {return decodeURIComponent(s)}""jscript"
    decode = htmlfile.parentWindow.decode(str)
End Function

댓글목록0

등록된 댓글이 없습니다.
게시판 전체검색