PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK

WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
TypeDescription (Property)
In french: DescriptionType
..TypeDescription is used to:
  • Find out the type used by an Enumeration or Combination item. This item was defined in the data model editor or by programming.
  • Define the type used by an Enumeration or Combination item (when describing the item by programming).
Example
// Code of project
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)

// Validates the description of data file
HDescribeFile(AFile)

// Create the Customer data file
HCreation(CUSTOMER)
Syntax

Finding out the type of a Combination or Enumeration item Hide the details

<Result> = <File Name>.<Item Name>..TypeDescription
<Result>: Character string
Name of type.
<File Name>: Character string (with or without quotes)
Name of data file used. This name was defined in the data model editor or by the File Description type.
<Item Name>: Character string (with or without quotes)
Name of the key item used. This name was defined in the data model editor or by the Item Description type.

Defining the type of a Combination or Enumeration item defined by programming Hide the details

<Item Name>..TypeDescription = <New Type>
<Item Name>: Character string (with or without quotes)
Name of the Combination or Enumeration item used. This name was defined by the Item Description type.
<New Type>: Character string
Type of the Enumeration or Combination item. This type must have been defined by programming.
Minimum version required
  • Version 20
This page is also available for…
Comments
Click [Add] to post a comment