Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » DBISAM Technical Support » Product Manuals » DBISAM Version 4 Manual for RAD Studio XE3 (Delphi Win32) » Using DBISAM » Setting Master-Detail Links on Tables |
Customer Table Field # Name DataType Size ---------------------------------------------- 1 CustomerID ftString 10 2 CustomerName ftString 30 3 ContactName ftString 30 4 Phone ftString 10 5 Fax ftString 10 6 EMail ftString 30
Orders Table Field # Name DataType Size ---------------------------------------------- 1 CustomerID ftString 10 2 OrderNumber ftString 10 3 OrderDate ftDate 0 4 OrderAmount ftBCD 2 Index Name Fields In Index Options ------------------------------------------------------ (none) CustomerID;OrderNumber ixPrimary
begin with OrdersTable do begin { Select the primary index, which contains the CustomerID and OrderNumber fields } IndexName:=''; { Assign the MasterSource property } MasterSource:=CustomerSource; { Set the MasterFields property to point to the CustomerID field from the Customer table } MasterFields:='CustomerID'; end; end;
begin with OrdersTable do begin { Select the primary index, which contains the CustomerID and OrderNumber fields } IndexFieldNames:='CustomerID'; { Assign the MasterSource property } MasterSource:=CustomerSource; { Set the MasterFields property to point to the CustomerID field from the Customer table } MasterFields:='CustomerID'; end; end;
This web page was last updated on Thursday, November 16, 2023 at 10:39 AM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |