Показать сообщение отдельно
Старый 03.06.2008, 14:05   #1  
Blog bot is offline
Blog bot
Участник
 
25,643 / 848 (80) +++++++
Регистрация: 28.10.2006
axaptapedia: String validation
Источник: http://www.axaptapedia.com/String_validation
==============

Summary:
<div>== How to check if a string includes only authorized characters ==


I had a few difficulties to find any function to compare a string against a pattern
finally I've wrote a very simple method.

You can put it in an object or in a class for an external general use.

public boolean CheckCharsInString(str _str)
{
str char;
int pos;
int i;
container BadChar = [';', '.',':','/','\','!','?','-','_','&','@','\'','$','?','µ','*','%','?','§','+','=','}','{',']','[',')','(','|','"','~','?','?'];
;

for (pos=0;pos
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.