تشکر جناب بهرامی
زحمت فانکشن هم کشیده بشه خیلی عالی میشه
public function detectWhiteSpace(strname as string) as boolean
.....
end function