Re: Relational vs. PICK/Object DBMS

From: x <x-false_at_yahoo.com>
Date: Tue, 27 Apr 2004 12:50:14 +0300
Message-ID: <408e2c26_at_post.usenet.com>


  • Post for FREE via your newsreader at post.usenet.com ****

"Neo" <neo55592_at_hotmail.com> wrote in message news:4b45d3ad.0404262124.4113eb73_at_posting.google.com...
> Below is a solution using XDb1/TDM.
> See www.xdb1.com/Example/Ex109.asp for additional info.
> See www.xdb1.com/Example/Ex108.asp for similar problem/solution.
>
>
> // Create a relational expression
> // to find things related to color AND texture
> TCHAR sExpr[kNmSz_g+1] = _T("((color)) ((texture))");
>
> // Prepare relational expression
> #define aSz 255
> int* pExpr[aSz+1] = {NULL};
> if (X_parse_r(sExpr, pExpr, aSz)) {return;}
>
> // Loop thru things satisfying expression
> // and print the found thing's full name.
> // The loop below prints the following three lines
> //
"((wig))(wig2)(((color))(red))(((color))(green))(((texture))(soft))(((materi al))(nylon))"
> //

"((wig))(wig2)(((color))(red))(((color))(green))(((texture))(soft))(((materi al))(nylon))"
> //

"((coat))(coat3)(((color))(green))(((texture))(smooth))(((texture))(supple)) "
> // Note: wig2 is printed twice because
> // the query routes via the two colors of wig2: red and green
> while (int* pT=X(pExpr)){
> TCHAR sName[kNmSz_g+1] = _T("");
> T_Name_get(pT, sName, kNmSz_g, TRUE);
> TRACE(_T("%s\n"), sName);
> }

The above print information that was not required. Can you fix it ?

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

  • Usenet.com - The #1 Usenet Newsgroup Service on The Planet! *** http://www.usenet.com Unlimited Download - 19 Seperate Servers - 90,000 groups - Uncensored -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Received on Tue Apr 27 2004 - 11:50:14 CEST

Original text of this message