如何判断当前字符串是不是Table
2012-04-17 10:07
127 查看
static void TestTableName(Args _args)
{
str tmpStr = "TableName";
;
if (TableName2Id(tmpStr))
{
info("It is a table");
}
else
{
info("Sorry,it is not a table");
}
}
// another method
static server boolean checkTableName(str 50 _str)
{
Dictionary dictionary ;
int tableCnt ;
int i ;
TableId tableId ;
;
dictionary = new Dictionary() ;
tableCnt = dictionary.tableCnt();
for (i = 1 ; i <= tableCnt ; i++)
{
tableId = dictionary.tableCnt2Id(i) ;
if ( _str == dictionary.tableName(tableId) )
{
return true ;
}
}
return false ;
}
{
str tmpStr = "TableName";
;
if (TableName2Id(tmpStr))
{
info("It is a table");
}
else
{
info("Sorry,it is not a table");
}
}
// another method
static server boolean checkTableName(str 50 _str)
{
Dictionary dictionary ;
int tableCnt ;
int i ;
TableId tableId ;
;
dictionary = new Dictionary() ;
tableCnt = dictionary.tableCnt();
for (i = 1 ; i <= tableCnt ; i++)
{
tableId = dictionary.tableCnt2Id(i) ;
if ( _str == dictionary.tableName(tableId) )
{
return true ;
}
}
return false ;
}
相关文章推荐
- 如何判断当前循环的栏目是不是最后一个
- 判断当前table中的tr是不是最后一行
- Objective-C ,ios,iphone开发基础:如何判断一个字符是不是中文字符。计算一段字符串的长度。
- 如何判断某字符串里是不是包含某个字符??
- 如何判断lua是不是一个纯数组类的table
- Android:如何判断当前进程是不是主线程
- dede channel如何判断当前循环的栏目是不是最后一个
- C# Access 里如何判断字符串里是不是包含数字
- 如何判断一个字符串是不是英文字母和数字
- 如何判断某个字符串是不是有数值型通过逗号拼接成的字符串
- Android如何判断当前字符串的组成情况(如:全由数字组成)
- 如何判断当前系统是不是IOS 7(宏定义)
- php如何判断一个字符串是不是base64编码
- 如何判断一个字符串是不是纯数字
- javascript如何判断一个对象是不是Array
- 2014华为机试-判断输入的字符串是不是一个有效的IP地址
- 如何判断两个字符串是否相互包含?
- js如何判断一个对象是不是Array?
- 如何判断当前设备是pad还是phone
- java程序中,数据验证,如何判断输入的文本框中的值是不是int型?