본문 바로가기
개발자 커뮤니티에 오신 것을 환영합니다!

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

페이지 정보

profile_image
작성자 하나를하더라도최선을
댓글 0건 조회 24,913회 작성일 23-03-11 08:43

본문

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

댓글목록

등록된 댓글이 없습니다.


Copyright © program1472 | IT HUB. All rights reserved.