|
|
|
|
|
TypeDescription (Property) In french: DescriptionType
The TypeDescription property is used to: - Find out the type used by an Enumeration or Combination item. This item was defined in the data model editor or programmatically.
- Define the type used by an Enumeration or Combination item (when describing the item through programming).
// Project code DogStatus is Enumeration SeatDown = 1 LayDown = 2 StandUp = 3 ReadyToPlay = 4 END VacationStatus is Enumeration Passed = 1 InProgress = 2 Future = 3 Canceled = 4 END
AFile is File Description
AnItem is Item Description
CUSTOMER is Data Source
AFile.Name = "CUSTOMER"
AFile.Type = hFileNormal
AFile.FicEncryption = hEncryptionStandard
AnItem.Name = "Item_DogStatus"
AnItem.Type = hItemEnumeration
AnItem.TypeDescription = DogStatus
HDescribeItem(AFile, AnItem)
AnItem.Name = "Item_VacationStatus"
AnItem.Type = hItemEnumeration
AnItem.TypeDescription = VacationStatus
HDescribeItem(AFile, AnItem)
HDescribeFile(AFile)
HCreation(CUSTOMER)
Syntax
Finding out the type of a Combination or Enumeration item Hide the details
<Result> = <Data file>.<Item>.TypeDescription
<Result>: Character string Name of type. <Data file used>: Name of data file Name of the data file used. This name was defined in the data model editor or with the File Description type. <Item used>: Item name Name of the key item used. This name was defined in the data model editor or with the Item Description type.
Defining the type of a Combination or Enumeration item defined programmatically Hide the details
<Item used>.TypeDescription = <New type>
<Item used>: Item name Name of the Combination or Enumeration item used. This name is defined with the Item Description type. <New type>: Character string Type of the Enumeration or Combination item. This type must have been defined programmatically.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|