CommaIo urfile;
LedgerTrans LedgerTrans1;
Container container1;
sqlDictionary sqlDictionary;
TableName tablenm;
;
tablenm = "LedgerTrans1";
select * from sqlDictionary where Tablename2id(tablenm) == sqlDictionary.tabId;
if(sqlDictionary.RecId > 0)
{
urfile= new CommaIo("c:\\test.doc","w");
urfile.outFieldDelimiter("\t");/
while select LedgerTrans1
{
container1= [LedgerTrans1.AccountNum,LedgerTrans1.Txt];
urfile.writeExp(container1);
}
}
strScan (Find a first occurrence of a string in a string) info("int strScan(str _text1,str _text2,int _position,int _number)"); info("Searches a text string for the occurrence of another string."); info("_text1 - The text string to search."); info("_text2 - The string to find."); info("_position - The position at which the search should start."); info("_number - The number of characters that should be searched."); info(int2str(strScan("ABCDEFGHIJ","DE",1,10)));