Windows API Calls for Powerbuilder 5.0

¹®Á¦

DeleteFileA( )

ÇØ°á

This function receives a string by reference containing a fully path qualified filename and deletes that file. There is no Powerbuilder equivalent.

Global External Function:
FUNCTION boolean DeleteFileA(ref string filename) LIBRARY "Kernel32.dll"

Script:
string l_file
boolean rtn
l_file = string(sle_to.text)
rtn = DeleteFileA(l_file)
MessageBox("DeleteFile", string(rtn))

 

ÂüÁ¶