PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV Mobile 2024 → How Do I Create Composite Keys in Code?
How Do I Create Composite Keys in Code?
Débuté par Droogans, 18 aoû. 2011 18:56 - 1 réponse
Membre enregistré
25 messages
Posté le 18 août 2011 - 18:56
I want to GENERATE a composite key in code as I search through my files in code.

I'm not BUILDING the contents of a composite key, that's simple. I want a brand new one, on the fly, based on two values in the same table that I select. In essence, I want to HReadSeek() on two values without making a composite key in the HFSQL analysis. That way, I can modify the members of a composite key willy-nilly, without creating 2^n additional fields in my tables. That would be ridiculous.

Is this possible? Thanks!

//Syntax: HCreateUK(TableName, NewComposKeyName, Field1, Field2 [, FieldN...])

HReadSeek(TableName, NewComposKeyName, ["FirstName", "LastName"])

//WinDev...What's in store in Ver17?
Posté le 18 août 2011 - 19:42
Hi Droogans

no it's not

Best regards

--
Fabrice Harari
International WinDev, WebDev, WinDev Mobile consulting
http://www.fabriceharari.com

On 18/08/2011 12:05, Droogans wrote:
I want to GENERATE a composite key in code as I search through my files in code.

I'm not BUILDING the contents of a composite key, that's simple. I want a brand new one, on the fly, based on two values in the same table that I select. In essence, I want to HReadSeek() on two values without making a composite key in the HFSQL analysis. That way, I can modify the members of a composite key willy-nilly, without creating 2^n additional fields in my tables. That would be ridiculous.

Is this possible? Thanks!

//Syntax: HCreateUK(TableName, NewComposKeyName, Field1, Field2 [, FieldN...])

HReadSeek(TableName, NewComposKeyName, ["FirstName", "LastName"])

//WinDev...What's in store in Ver17?