|
Re: read regedit [message #547127 is a reply to message #547088] |
Mon, 12 March 2012 08:10 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
![](//www.gravatar.com/avatar/1229663c86eb1a441385fe710cd9116e?s=64&d=mm&r=g) |
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
[EDITED by LF: removed superfluous empty lines]
[Updated on: Tue, 13 March 2012 01:02] by Moderator Report message to a moderator
|
|
|
|
|
|
|
|