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
KeyType (Property)
In french: TypeClé
HFSQLHFSQL Client/ServerAvailable only with these kinds of connection
..KeyType is used to configure the characteristics of a key item. You can:
  • Find out whether an item is key for an item defined in the data model editor or by programming.
  • Define a key item (when the item is described by programming).
Example
// Define the characteristics of the Orders.OrdID key
Orders.OrdID..KeyType = hUniqueKey
...
// Validates the file description
HDescribeFile(Orders)
Syntax

Finding out whether an item is key Hide the details

<Characteristic> = <File Name>.<Item Name>..KeyType
<Characteristic>: Integer constant
The characteristics of an item are:
hDuplicatesKeyKey with duplicates. This item can have the same value for several data file records.
hUniqueKeyUnique key. The value assigned to this item will be unique in the data file. No file record will have the same value for this item.
hNotAKeyThe item is not a key.
<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 item used. This name was defined in the data model editor or by the Item Description type.
WEBDEV - Server codeAjax

Defining a key by programming Hide the details

<Item Name>..KeyType = <Type of Key>
<Item Name>: Character string (with or without quotes)
Name of item used. This name was defined by the Item Description type.
<Type of Key>: Integer constant
The characteristics of a key can be:
hDuplicatesKeyKey with duplicates. This item can have the same value for several data file records.
hUniqueKeyUnique key. The value assigned to this item will be unique in the data file. No file record will have the same value for this item.
hNotAKeyThe item is not a key.
See also
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment