Help! - Delphi implements the operation permission of the logged-in user in the software

Delphi'de kod yazma ile ilgili sorularınızı bu foruma yazabilirsiniz.
Cevapla
master_crazy
Üye
Mesajlar: 7
Kayıt: 09 Eyl 2016 10:57

Help! - Delphi implements the operation permission of the logged-in user in the software

Mesaj gönderen master_crazy » 26 Eyl 2019 06:50

Hi everybody!
I am new to delphi programming and I was learn by myself. In my country, they don't teach delphi (only pascal), so I don't get any help.
I'm practicing following the instructions on the internet, specifically the following source page: https://www.cnblogs.com/huangcong/archi ... 72848.html
Note: source code contains a lot of syntax and spelling errors
-For example:
unit UserRightCenter;
6th line: TUserRight = class => // TUserRight = = class (TForm)
-
unit Main;
Rigth type must be corrected to Right
line 23: ShowUserRigthView procedure (uid: Integer);
// ------------------------------------------------ ----
procedure TUserRight.ShowUserRigthView (uid: Integer);
// ------------------------------------------------ ----
procedure TfrmMain.Button1Click (Sender: TObject);
begin
FUserRight.UserID: = 1;
FUserRight.ShowUserRigthView (1);
end;
// ------------------------------------------------ ----
I have problems rebuilding an app without knowing where the error is. Can someone spend some valuable time to review and point out errors?
Please see attached file.
Thank you in advance!
Dosya ekleri
Delphi_User_Right_Access_Database.7z
(20.28 KiB) 8 kere indirildi

ertank
Üye
Mesajlar: 1237
Kayıt: 11 Eyl 2015 11:45

Re: Help! - Delphi implements the operation permission of the logged-in user in the software

Mesaj gönderen ertank » 26 Eyl 2019 10:51

Hello,

You seem to be missing code for TfrmUserRightView. Web page you shared shows no information as to that form. But, it is for sure used by TUserRight.

I have added some remarks in project. They are starting as:

Kod: Tümünü seç

//- -ERTAN
I suggest you read and try to understand them.

Hope that helps.

P.S. You did not mention Delphi version you are using. Attached project compiles fine using Delphi 10.3.2
Dosya ekleri
Delphi_User_Right_Access_Database.7z
(66.81 KiB) 9 kere indirildi

master_crazy
Üye
Mesajlar: 7
Kayıt: 09 Eyl 2016 10:57

Re: Help! - Delphi implements the operation permission of the logged-in user in the software

Mesaj gönderen master_crazy » 28 Eyl 2019 06:52

Thanks you Ertank!
I will learn more about this.

Cevapla