0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

vbsの作法 その10

Posted at

概要

vbsの作法、調べてみた。
日能研やってみた。

サンプルコード

Dim i
For i = 0 To 654321 step 6
	s = CStr(i)
	if instr(s, "1") > 0 And instr(s, "2") > 0 And instr(s, "3") > 0 And instr(s, "4") > 0 And instr(s, "5") > 0 And instr(s, "6") > 0 then
		i5 = Fix(i / 10)
		if i5 mod 5 = 0 then
			i4 = Fix(i / 100)
			if i4 mod 4 = 0 then
				i3 = Fix(i / 1000)
				if i3 mod 3 = 0 then
					i2 = Fix(i / 10000)
					if i2 mod 2 = 0 then
						msgbox i
					End if
				End if
			End if
		End if
	End if
Next

以上。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?