Table of Content
HAL Forum
function Boolean ReadFirstMain (
Record NameVc Namer,Integer seg,Boolean matchflag)
Description:
Read first record by main key from register according conditions, returns false if it is not possible to find record
Parameters:
Namer Record
seg Number of used fields in index (for complex indexes)
matchflag true=exact match, false=most similar
global
procedure GetUserName(String i,var String ret)
Begin
  record UserVc Userr;
  
  Userr.Code = i;
  ret = "";
  if ReadFirstMain(Userr,1,true) then begin
    ret = Userr.Name;
  end;
  return;
End;
Related topics:
««