svnno****@sourc*****
svnno****@sourc*****
2013年 3月 23日 (土) 20:41:03 JST
Revision: 5168 http://sourceforge.jp/projects/ttssh2/scm/svn/commits/5168 Author: maya Date: 2013-03-23 20:41:02 +0900 (Sat, 23 Mar 2013) Log Message: ----------- getipv4addr, getipv6addr マクロコマンドのドキュメント修正 result -1 について追記 サンプルを修正 Modified Paths: -------------- trunk/doc/en/html/macro/command/getipv4addr.html trunk/doc/en/html/macro/command/getipv6addr.html trunk/doc/ja/html/macro/command/getipv4addr.html trunk/doc/ja/html/macro/command/getipv6addr.html -------------- next part -------------- Modified: trunk/doc/en/html/macro/command/getipv4addr.html =================================================================== --- trunk/doc/en/html/macro/command/getipv4addr.html 2013-03-23 11:31:16 UTC (rev 5167) +++ trunk/doc/en/html/macro/command/getipv4addr.html 2013-03-23 11:41:02 UTC (rev 5168) @@ -33,7 +33,8 @@ <dl> <dt class="macro">System variable <result></dt> <dd>It is set to the IP address number.<br> - If the IP address is nothing, it is set to 0.</dd> + If the IP address is nothing, it is set to 0.<br> + <!--IP\x83A\x83h\x83\x8C\x83X\x82̎擾\x82Ɏ\xB8\x94s\x82\xB5\x82\xBD\x8Fꍇ\x81A-1\x82\xAA\x8Ai\x94[\x82\xB3\x82\xEA\x82\xE9\x81B--></dd> </dl> @@ -43,10 +44,17 @@ strdim ipaddr 10 getipv4addr ipaddr -N = result - 1 -for i 0 N - messagebox ipaddr[i] "IPv4 address" -next +if result = -1 then + messagebox 'Error' 'IPv4 address' +elseif result = 0 then + messagebox 'Not found' 'IPv4 address' +else + N = result - 1 + for i 0 N + messagebox ipaddr[i] "IPv4 address" + next +endif + </pre> <h2>See also</h2> Modified: trunk/doc/en/html/macro/command/getipv6addr.html =================================================================== --- trunk/doc/en/html/macro/command/getipv6addr.html 2013-03-23 11:31:16 UTC (rev 5167) +++ trunk/doc/en/html/macro/command/getipv6addr.html 2013-03-23 11:41:02 UTC (rev 5168) @@ -33,7 +33,8 @@ <dl> <dt class="macro">System variable <result></dt> <dd>It is set to the IP address number.<br> - If the IP address is nothing, it is set to 0.</dd> + If the IP address is nothing, it is set to 0. + <!--IP\x83A\x83h\x83\x8C\x83X\x82̎擾\x82Ɏ\xB8\x94s\x82\xB5\x82\xBD\x8Fꍇ\x81A-1\x82\xAA\x8Ai\x94[\x82\xB3\x82\xEA\x82\xE9\x81BWindows 2000 \x88ȑO\x82ł͏\xED\x82Ɏ\xB8\x94s\x82\xB7\x82\xE9\x81B--></dd> </dl> @@ -43,10 +44,16 @@ strdim ipaddr 10 getipv6addr ipaddr -N = result - 1 -for i 0 N - messagebox ipaddr[i] "IPv6 address" -next +if result = -1 then + messagebox 'Error' 'IPv6 address' +elseif result = 0 then + messagebox 'Not found' 'IPv6 address' +else + N = result - 1 + for i 0 N + messagebox ipaddr[i] "IPv6 address" + next +endif </pre> <h2>See also</h2> Modified: trunk/doc/ja/html/macro/command/getipv4addr.html =================================================================== --- trunk/doc/ja/html/macro/command/getipv4addr.html 2013-03-23 11:31:16 UTC (rev 5167) +++ trunk/doc/ja/html/macro/command/getipv4addr.html 2013-03-23 11:41:02 UTC (rev 5168) @@ -33,7 +33,8 @@ <dl> <dt class="macro">\x83V\x83X\x83e\x83\x80\x95ϐ\x94 <result></dt> <dd>IP\x83A\x83h\x83\x8C\x83X\x82̌\x94\x82\xAA\x8Ai\x94[\x82\xB3\x82\xEA\x82\xE9\x81B<br> - IP\x83A\x83h\x83\x8C\x83X\x82\xAA\x91\xB6\x8D݂\xB5\x82Ȃ\xA2\x8Fꍇ\x81A0\x82\xAA\x8Ai\x94[\x82\xB3\x82\xEA\x82\xE9\x81B</dd> + IP\x83A\x83h\x83\x8C\x83X\x82\xAA\x91\xB6\x8D݂\xB5\x82Ȃ\xA2\x8Fꍇ\x81A0\x82\xAA\x8Ai\x94[\x82\xB3\x82\xEA\x82\xE9\x81B<br> + IP\x83A\x83h\x83\x8C\x83X\x82̎擾\x82Ɏ\xB8\x94s\x82\xB5\x82\xBD\x8Fꍇ\x81A-1\x82\xAA\x8Ai\x94[\x82\xB3\x82\xEA\x82\xE9\x81B</dd> </dl> @@ -43,10 +44,17 @@ strdim ipaddr 10 getipv4addr ipaddr -N = result - 1 -for i 0 N - messagebox ipaddr[i] "IPv4 address" -next +if result = -1 then + messagebox 'Error' 'IPv4 address' +elseif result = 0 then + messagebox 'Not found' 'IPv4 address' +else + N = result - 1 + for i 0 N + messagebox ipaddr[i] "IPv4 address" + next +endif + </pre> <h2>\x8EQ\x8F\xC6</h2> Modified: trunk/doc/ja/html/macro/command/getipv6addr.html =================================================================== --- trunk/doc/ja/html/macro/command/getipv6addr.html 2013-03-23 11:31:16 UTC (rev 5167) +++ trunk/doc/ja/html/macro/command/getipv6addr.html 2013-03-23 11:41:02 UTC (rev 5168) @@ -33,7 +33,8 @@ <dl> <dt class="macro">\x83V\x83X\x83e\x83\x80\x95ϐ\x94 <result></dt> <dd>IP\x83A\x83h\x83\x8C\x83X\x82̌\x94\x82\xAA\x8Ai\x94[\x82\xB3\x82\xEA\x82\xE9\x81B<br> - IP\x83A\x83h\x83\x8C\x83X\x82\xAA\x91\xB6\x8D݂\xB5\x82Ȃ\xA2\x8Fꍇ\x81A0\x82\xAA\x8Ai\x94[\x82\xB3\x82\xEA\x82\xE9\x81B</dd> + IP\x83A\x83h\x83\x8C\x83X\x82\xAA\x91\xB6\x8D݂\xB5\x82Ȃ\xA2\x8Fꍇ\x81A0\x82\xAA\x8Ai\x94[\x82\xB3\x82\xEA\x82\xE9\x81B + IP\x83A\x83h\x83\x8C\x83X\x82̎擾\x82Ɏ\xB8\x94s\x82\xB5\x82\xBD\x8Fꍇ\x81A-1\x82\xAA\x8Ai\x94[\x82\xB3\x82\xEA\x82\xE9\x81BWindows 2000 \x88ȑO\x82ł͏\xED\x82Ɏ\xB8\x94s\x82\xB7\x82\xE9\x81B</dd> </dl> @@ -43,10 +44,16 @@ strdim ipaddr 10 getipv6addr ipaddr -N = result - 1 -for i 0 N - messagebox ipaddr[i] "IPv6 address" -next +if result = -1 then + messagebox 'Error' 'IPv6 address' +elseif result = 0 then + messagebox 'Not found' 'IPv6 address' +else + N = result - 1 + for i 0 N + messagebox ipaddr[i] "IPv6 address" + next +endif </pre> <h2>\x8EQ\x8F\xC6</h2>