Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Xbase Codebase > Re: Relation Qu...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 2 Topic 240 of 308
Post > Topic >>

Re: Relation Query Question

by "Markus" <mrichter@[EMAIL PROTECTED] > Mar 4, 2006 at 03:20 AM

AliR,

Here is a sample from the CodeBase VB Users Guide that you should have
installed with CodeBase (folder "books"). The sub that creates a
relation from the tables "student" and "enrollment" looks as follows:

> Function SetRelation1( )
>  master = relate4init( student )
>
>  If master = 0 Then
>   SetRelation1 = False
>   Exit Function
>  End If
>
>  slave = relate4createSlave( master, enrollment, "ID", idTag )
>  rc = relate4type( slave, relate4scan )
>  rc = relate4top( master )
>  If rc = r4success And Not cbError( ) Then SetRelation1 = True
> End Function

So, as you can see, the crucial function to connect two tables in a
relation is "relate4CreateSlave".

Hope that helps!


Markus
 




 2 Posts in Topic:
Relation Query Question
"AliR" <AliR  2006-03-02 11:38:23 
Re: Relation Query Question
"Markus" <mr  2006-03-04 03:20:22 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Oct 15 12:44:28 CDT 2008.