//---------------------------------------------------------------------- static bool GetTableExtra(XDataTable <DataRow> table, ref Types.XStringSeg word) { // prior code ended us on the ')' word = word.Next; if (word != null) { table.extra = word.ToString(); return(true); } return(false); }
//---------------------------------------------------------------------- static bool GrabName(ref Types.XStringSeg word, out String result, out bool bQuoted) { String name = null; //PTEXT start = word; //printf( "word is %s", GetText( *word ) ); if (TextLike(word, "`")) { XString phrase = new XString(); //Types.XStringSeg phrase = null; bQuoted = true; word = word.Next; while (word != null && word.ToString()[0] != '`') { phrase.Append(word.Clone()); word = word.Next; } // skip one more - end after the last ` word = word.Next; name = phrase.ToString(); } else { // don't know... String next; bQuoted = false; next = word.Next; if (next != null && next[0] == '.') { // database and table name... word = word.Next; word = word.Next; name = (String)word; word = word.Next; } else { if (word.Text == "(") { result = null; bQuoted = false; return(true); } name = (String)word; word = word.Next; } } result = name; return((result != null) ? true : false); }