Kuroda Software Service
Debugging execution
  [サイトマップ]

コンテンツ内メニュー

表示モード 全項表示  部分表示



マークの色と認証の関係

一般公開

無料認証

購入認証


認証についての説明

無料アカウント作成フォーム

有料ページ購入フォーム


ほかのコンテンツトップページ


Freeware Guide
Freeware Guide

Debugging execution

HTML for HTABOXQuick can be debugged by using the HTABOXCore.

         HTABOXQuick is EXE file developed in the HTABOXCore.

HTABOXQuick is described by the script on the HTABOXCore though HTABOXQuick was developed by the HTABOXCore's having been changed from the HTML drive to JS or the VBS drive as another environment that supports the development of the form where operation is described in HTML by the script.

Therefore, an equivalent WIN32 object to the HTABOXCore is being offered to the script filing HTML stored in HTABOX quick. There are an application menu and a pop-up menu only in only part of the function that the WIN32 object offers.

         Debugging execution of HTML for HTABOXQuick

The WIN32 object offered to the HTML instance after it stores it can acquire the HTABOXCore by registering the registry. Therefore, debugging that calls the WIN32 object before it stores it becomes possible. Please see the HTABOX SYSTEM about the HTABOXCore. The example in JScrpt is shown.

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=shift_jis">

<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">

<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">

<title>HTABOX Quick Debug</title>

</head>

<body>

<input type="button" value="TEST" onclick="main()">

<script language="jscript" runat="hide">

//#define var //

var WIN32 = new ActiveXObject("HTABOX.Application");

//#undef var

function main()

{

    WIN32.MsgBox("Hello HTABOX");

}

</script>

</body>

</html>

If the registry is registered to the HTABOXCore, above-mentioned HTML displays the character string by the WIN32.MsgBox function. Moreover, after it stores it, it becomes the same operation. The point here is #define instruction originally introduced.

Because HTABOXQuick inserts the script tag immediately after tag </head> and declares WIN32 in the execution after it stores it, it is necessary to nullify the ActiveXObject line of the above-mentioned source code. #define instruction has the effect of replacing the first operand "Var" with the second operand "//" before the source is evaluated by the execution after it stores it. Therefore, the error can be evaded by the ActiveXObject line's being processed as a mere comment in the execution after it stores it. Please note the thing that it should be #undef instruction and be the pair in a present specification that releases the replacement declaration. Next, the example in VBScript is shown.

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=shift_jis">

<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">

<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">

<title>HTABOX Quick Debug</title>

</head>

<body>

<input type="button" value="TEST" onclick="main()">

<script language="vbscript" runat="hide">

'#define dim '

dim WIN32: set WIN32 = CreateObject("HTABOX.Application")

'#undef dim

function main()

    WIN32.MsgBox("Hello HTABOX")

end function

</script>

</body>

</html>

 

お問い合わせ
©クロダ ソフトウェア サービス programmed by hidebou