Progress
Language Reference


CREATE-LIKE( ) Method

Copies the field definitions from the specified source table and establishes the default or specified source indexes.

This method cannot be called once any other definitional method has been called unless CLEAR( ) is called first.

Return Type: LOGICAL

Applies To: Temp-table Object Handle

SYNTAX
CREATE-LIKE( { source-table-hndl-exp | source-table-name-exp }
   [ , source-index-name-exp ] ) 

source-table-hndl-exp

An expression that evaluates to a table handle from which to copy the field definitions and, optionally, the indexes if source-index-name-exp is not specified.

source-table-name-exp

An expression that evaluates to a table name from which to copy the field definitions and, optionally, the indexes if source-index-name-exp is not specified.

source-index-name-exp

A character expression giving an index to be copied from the source table. If this option is specified, only this single index is copied from the source table.

The following example fragment adds all field definitions from the customer table to the temp-table, but only adds the name index:

tth:CREATE-LIKE("customer","name"). 


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095