Home » Developer & Programmer » Forms » read regedit (Oracle Form Version 6i, Windows)
read regedit [message #547088] Mon, 12 March 2012 04:24 Go to next message
GoGreen
Messages: 28
Registered: February 2012
Location: Java Island
Junior Member

How to read regedit using oracle forms6i ?

thanks
gve
Re: read regedit [message #547127 is a reply to message #547088] Mon, 12 March 2012 08:10 Go to previous messageGo to next message
mughals_king
Messages: 392
Registered: January 2012
Location: pakistan
Senior Member
its easy dear just download these two lib. and attached
with the form

D2KCOMN.PLL
D2KWUTIL.PLL

create one block non-database with name of "RRG" and in the block property palete

Query Data source Type: None

Now create 4 text_items
1.RRG_PATH           
  Data Type: Char
  Maximum Length:255

2.RRG_VARIABLE      

  Data Type:       Char
  Maximum Length:  80  

3.RRG_EXCEPTIONS  
   Label:          Raise Exception?
   Data Type:      Char 
   Maximum Length: 1 
   Initial Value:  Y

4.RRG_RESULT
  iTEM Type:      Display Item
  Justification:  Left
  Data Type :     Char
  Maximum Length: 80


Now create one Button with the name of "RRG_PB" & when button Pressed---->
begin 
 :RRG.RRG_RESULT := WIN_API_ENVIRONMENT.Read_Registry(
	 :RRG.RRG_PATH,:RRG.RRG_variable,toBoolean(:RRG.RRG_exceptions));
end;


and Block Level Trigger

begin 
 if :RRG.RRG_PATH is null then 
 	:RRG.RRG_PATH := 
        'HKEY_CURRENT_USER\Control  Panel\desktop';
	:RRG.RRG_VARIABLE := 'Wallpaper';
 end if;
 enter;
end;


Cheer Laughing


[EDITED by LF: removed superfluous empty lines]

[Updated on: Tue, 13 March 2012 01:02] by Moderator

Report message to a moderator

Re: read regedit [message #547129 is a reply to message #547127] Mon, 12 March 2012 08:34 Go to previous messageGo to next message
mughals_king
Messages: 392
Registered: January 2012
Location: pakistan
Senior Member
OR if you wanted to run simply regedit by using form 6i then

HOST('cmd /C start '|| 'regedit');

Cool
Re: read regedit [message #547153 is a reply to message #547129] Mon, 12 March 2012 21:30 Go to previous messageGo to next message
GoGreen
Messages: 28
Registered: February 2012
Location: Java Island
Junior Member

Hello,

I've tried, found error :
FRM-40734 : Internal Error PL/SQL error occurred.

Please check and corrections my fmb. Smile

Thanks
gve
  • Attachment: regedit.fmb
    (Size: 44.00KB, Downloaded 1336 times)
Re: read regedit [message #547240 is a reply to message #547153] Tue, 13 March 2012 09:04 Go to previous messageGo to next message
mughals_king
Messages: 392
Registered: January 2012
Location: pakistan
Senior Member
remember friend

Installation Notes For D2KWUTIL
-------------------------------

Before Installing D2KWUTIL onto your development or
runtime system be sure to remove or rename any old copies
of the following files:
* d2kwutil.pll
* d2kwutil.plx
* d2kwut32.dll
* d2kwut60.dll

and copy these 3 file into your form6i\bin--> folder

1.d2kwutil.pll
2.D2kcomn.pll
3.d2kwut60.dll

and download this this fmb file and run this 100% tested file which i created for u


Best regards
Cool





Re: read regedit [message #547242 is a reply to message #547240] Tue, 13 March 2012 09:24 Go to previous messageGo to next message
mughals_king
Messages: 392
Registered: January 2012
Location: pakistan
Senior Member
and here is your FMB file which i have corrected also
enjoy

Cool
  • Attachment: regedit.fmb
    (Size: 52.00KB, Downloaded 1388 times)
icon14.gif  Re: read regedit [message #547359 is a reply to message #547242] Tue, 13 March 2012 21:15 Go to previous message
GoGreen
Messages: 28
Registered: February 2012
Location: Java Island
Junior Member

Hello Mughals_king,

Form has been running as expected.

Thank you very much.
gve

Previous Topic: Multi-Language support in Forms
Next Topic: FRM-41827:Group does not exist.
Goto Forum:
  


Current Time: Fri Jul 05 23:29:48 CDT 2024