ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage properties / HFSQL properties
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
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).
Example
// 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
// Code of a "File creation" button
AFile is File Description
AnItem is Item Description
CUSTOMER is Data Source
 
// Describe the "CUSTOMER" data file
AFile.Name = "CUSTOMER"
AFile.Type = hFileNormal
AFile.FicCryptMethod = hCryptStandard
 
// Describe the "DogStatus" item
AnItem.Name = "Item_DogStatus"
AnItem.Type = hItemEnumeration
AnItem.TypeDescription = DogStatus
HDescribeItem(AFile, AnItem)
 
// Describe the "VacationStatus" item
AnItem.Name = "Item_VacationStatus"
AnItem.Type = hItemEnumeration
AnItem.TypeDescription = VacationStatus
HDescribeItem(AFile, AnItem)
 
// Validate the data file description
HDescribeFile(AFile)
 
// Create the Customer data file
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>: File name
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 through programming 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 through programming.
Minimum version required
  • Version 20
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/14/2024

Send a report | Local help