PC SOFT

GRUPOS DE DISCUSSÃO PROFISSIONAL
WINDEVWEBDEV e WINDEV Mobile

Inicio → WINDEV 2024 → 7.5 hbuildkeyvalue
7.5 hbuildkeyvalue
Iniciado por Bert, fev., 28 2004 7:04 AM - 2 respostas
Publicado em fevereiro, 28 2004 - 7:04 AM
I am drawing a blank on creating a filter on a composite key composed of:
fileID = int
Name = string
The help shows how to do it with two strings but not an int and a string.
Any help with the syntax appreciated.
Bert
Publicado em fevereiro, 28 2004 - 8:26 AM
Hi Bert
Extracted from my Diary app.
Syntax should be something like.
------------------------------
IF gRecNum<>0 THEN
HReadSeek(CompDiary,CompanyIDDiaryID,HBuildKeyValue(CompDiary,CompanyIDDiaryID,...
CompDiary.CompanyID,...
CompDiary.DiaryID),hIdentical)
ELSE
HReadFirst(CompDiary,CompanyIDDiaryID)
END
----------------------------
I do not think it matters what the Data Type is.
HTH
Keep well
Peter Purton

I am drawing a blank on creating a filter on a composite key composed of:
fileID = int
Name = string
The help shows how to do it with two strings but not an int and a string.
Any help with the syntax appreciated.
Bert
Publicado em fevereiro, 28 2004 - 9:07 AM
Sorry Bert
Misread your Post
You need something like
---------------------
HFilter(Accounts, COMPKEY, HBuildKeyValue(Accounts, COMPKEY,...
Company.IDCompany,AcctCode))
---------------------
HTH this time
Keep well
Peter Purton

I am drawing a blank on creating a filter on a composite key composed of:
fileID = int
Name = string
The help shows how to do it with two strings but not an int and a string.
Any help with the syntax appreciated.
Bert