1. Stephan Schröpel
  2. PowerBuilder
  3. Wednesday, 12 July 2023 12:48 PM UTC

Hello Developers

In some Q&A I read about "normal mode" and "admin mode". 

But I can't find any documentation in PB2022 Help

Where can I switch between these modes? I searched in application, in project ... but didn't find anything.

 

best regards

Stephan 

Accepted Answer
Stephan Schröpel Accepted Answer Pending Moderation
  1. Wednesday, 12 July 2023 15:35 PM UTC
  2. PowerBuilder
  3. # Permalink

oh... this was meant .... I was shure, there is a hidden property I didn't found ... so funny!

 

My Problem was.

I've been searching, why my drag&drop is no longer working and found

in CodeXChange\File_drop

  in wn_file_drop_controller_e the event oe_postopen:

 

String						ls_name = "wn_file_drop_example"
wn_main_master		lo_win

IF  go_ac.of_is_runas_administrator( ) = TRUE   THEN
	String		ls_title
	String		ls_msg = "The application is running in ADMIN mode~rand cannot support external drag & drop in this mode!"
	ls_title		=	go_ac.of_get_Appl_display_name( )
	go_ac.of_messagebox ( ls_title, ls_msg, Information!, OK!, 1)
else
	fn_open_sheet_window ( ls_name, lo_win , Layered! )
END IF

 

So if it is running as administrator Drag&Drop is not working? I Inserted same in my code:

FUNCTION Boolean IsUserAnAdmin ( ) LIBRARY "shell32.dll" to return admin_state

and it returned TRUE

So I wanted to run it in "normal" mode

 

So my DragnDrop Problem keeps unsolved

 

Best Regards

Stephan

 

 

Comment
  1. Chris Pollach @Appeon
  2. Wednesday, 12 July 2023 20:06 PM UTC
Hi Stephan;

Ahhh .. my good old STD Framework does it again - LOL! ;-)

Regards ... Chris
  1. Helpful
There are no comments made yet.
Roland Smith Accepted Answer Pending Moderation
  1. Wednesday, 12 July 2023 13:33 PM UTC
  2. PowerBuilder
  3. # 1

If you right-click on the exe and choose Properties, you can set it to run as administrator by default.

Comment
There are no comments made yet.
Andreas Mykonios Accepted Answer Pending Moderation
  1. Wednesday, 12 July 2023 12:59 PM UTC
  2. PowerBuilder
  3. # 2

Hi.

To execute PB in admin mode, you simply have to right click your PB shortcut and choose the appropriate option.

Andreas.

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.