Home » Developer & Programmer » Forms » win_api_utility procedure
win_api_utility procedure [message #43380] Fri, 11 July 2003 12:45 Go to next message
Raisa
Messages: 5
Registered: July 2003
Junior Member
I need to get some examples of using win_api_utility.move_file procedure or
win_api_utility.copy_files

Thanks for any help
Re: win_api_utility procedure [message #43390 is a reply to message #43380] Mon, 14 July 2003 02:32 Go to previous messageGo to next message
Maaher
Messages: 7065
Registered: December 2001
Senior Member
It is pretty straightforward isn't it: Win_Api_Utility.Move_File(Oldfilename, NewFilename, RaisExceptions);

You give the filename to move (OldFileName), the destionation file name (NewFileName) and you indicate whether a NO_DATA_FOUND should be raised when the file is not found.

Win_Api_Utility('C:Tempmyfile.txt','D:somedirsomefilename.txt', TRUE);

This command will move the file and raise errors if the file isn't found. Check your Forms Documentation if not clear.

MHE
Re: win_api_utility procedure [message #43391 is a reply to message #43390] Mon, 14 July 2003 06:12 Go to previous messageGo to next message
Raisa
Messages: 5
Registered: July 2003
Junior Member
Yes, it seems easy to do.But for some reason I am getting an error: "Identifier 'Win_api_utility.Move_file' must be declared". What am I doing wrong? :-(
Re: win_api_utility procedure [message #43394 is a reply to message #43391] Tue, 15 July 2003 02:04 Go to previous messageGo to next message
Maaher
Messages: 7065
Registered: December 2001
Senior Member
Aha, that's a classic. You need to attach a specific library for that, it is called D2KWUTIL.PLL.

In Forms6 it can be found in the directory %ORACLE_HOME%TOOLSDEVDEM60DEMOFORMS

In Forms6i it is not installed by default. You can download it from http://otn.oracle.com/software/products/forms/content.html, or you can find it on your installation CD under Extraffigen (didn't verify this second one myself, but the download is there on OTN).

MHE
Re: win_api_utility procedure [message #43408 is a reply to message #43394] Wed, 16 July 2003 06:17 Go to previous messageGo to next message
Raisa
Messages: 5
Registered: July 2003
Junior Member
Thank you so much!!!!
I downloaded d2kwutil.pll with example. Demo works fine! I am impressed!
But I still have an issue with my form.(I feel silly..) I copied d2kwutil.pll into my Oracle_homebin directory, but still having the same error message. :-(
Raisa
Re: win_api_utility procedure [message #43410 is a reply to message #43408] Wed, 16 July 2003 07:46 Go to previous messageGo to next message
Maaher
Messages: 7065
Registered: December 2001
Senior Member
you have to ATTACH it in Forms itself. It is a PLL, not a DLL.
1. Open your FMB
2. Go to the object navigator.
3. Select the node 'Attached libraries' and click on the green '+' sign on the left.
4. You'll get a Dialog that asks where to look for the library.
5. Browse your filesystem to the correct location of the PLL, and attach it.

Should be ok. We'll do it all the time (in Forms6 and 6i).

Good luck,
MHE
Re: win_api_utility procedure [message #43414 is a reply to message #43410] Wed, 16 July 2003 11:35 Go to previous messageGo to next message
Raisa
Messages: 5
Registered: July 2003
Junior Member
It works!!!!
I appreciated your help!
Thank you so-so much!!! :-))
Re: win_api_utility procedure [message #49582 is a reply to message #43391] Thu, 17 February 2005 07:10 Go to previous messageGo to next message
amin
Messages: 7
Registered: April 2004
Junior Member
you need to attach a library called "D2kwutil" in order for you not to have the must declare message.
Re: win_api_utility procedure [message #49583 is a reply to message #49582] Thu, 17 February 2005 07:13 Go to previous messageGo to next message
Raisa
Messages: 5
Registered: July 2003
Junior Member
Thanks!
Re: win_api_utility procedure [message #395838 is a reply to message #43390] Thu, 02 April 2009 16:01 Go to previous messageGo to next message
irfankundi786@yahoo.com
Messages: 269
Registered: February 2009
Location: pakistan
Senior Member
sir
I download D2KWUTILITY from net and put it in bin at following path C:\orant\BIN.
then i attached it to form
but still not working how i solve it.
can we install this utility if yes then how.
I find zip on site , download and unzip and save it in bin.
can i folow right steps.
please help me.
thaks
Re: win_api_utility procedure [message #395884 is a reply to message #395838] Fri, 03 April 2009 00:03 Go to previous message
Frank
Messages: 7901
Registered: March 2000
Senior Member
Please define "still not working". Do you get compilation errors? Runtime errors? Blank screen? Not exactly what you expected, but you do see some difference?
Did you follow Maaher's steps one by one?
Does it not work in your development env or only not in a different env?
Previous Topic: how to set the height for row in excel via ole2
Next Topic: Excel input form
Goto Forum:
  


Current Time: Sat Feb 01 16:07:27 CST 2025