This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| class DefaultPassword { | |
| public function generate(){ | |
| //乱数初期化 | |
| srand(); | |
| //12文字以上16文字未満 | |
| $in_length = rand(12,16); | |
| //アルファベット | |
| for($i=0;$i<25;++$i){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Public Class Form1 | |
| Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click | |
| Dim Requisite() As String = {"Txt_name", "Txt_jyusyo", "Txt_tel"} | |
| ' | |
| 'カレントコントロールから | |
| 'OfTypeでまずはパネルコントロールをフィルタ | |
| 'これをfromとし、 | |
| 'さらにテキストボックスをフィルタ Function(c) | |
| 'これに対し、Function(c1)で、配列Requisiteに入っている要素から、TextがNullのものを選択 Function(cc) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Public Class Form1 | |
| Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click | |
| Dim count = Me.Controls.Cast(Of Control)().Count(Function(c) (TypeOf c Is TextBox) AndAlso DirectCast(c, TextBox).Text = "") | |
| If (count > 0) Then | |
| MessageBox.Show("エラー") | |
| End If | |
| End Sub |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'rubygems' | |
| require 'rack' | |
| require 'erb' | |
| class RackApp | |
| def call(env) | |
| [200, {'Content-Type' => 'text/html'}, [<<END_HTML] | |
| <html> | |
| <head><title>Rack test</title></head> |
NewerOlder