cara aplikasi untuk me-hidden-kannya sbb:

//1. declare external functions win32 for file

// Win 32 calls
// ...

Function ulong GetFileAttributesA (ref string filename) library
"KERNEL32.DLL"

Function boolean SetFileAttributesA (ref string filename, ulong attrib)
library "KERNEL32.DLL"

//...

//2. script powerbuilder

string sfilename
ulong utest1, utest2
boolean btest1

sfilename = "app.ini"
utest1 = GetFileAttributesA (sfilename)         // saving current file attribut
to utest1
btest1 = SetFileAttributesA (sfilename, 2)      // setting file attribute : 
hidden
utest2 = GetFileAttributesA (sfilename)         // checking new file attribut :
hidden
btest1 = SetFileAttributesA (sfilename, utest1) // restoring saved file
attribut from utest1

// notes:
//        untuk melihat attribut file bisa juga dengan fungsi dirlist dari
powerbuilder


cheers,

untung d.s.


> Dear PB'ers
>
> Mau minta tolong nih..
>
> Kalau kita buat aplikasi untuk create file ke suatu directory. Lalu file
> hasil create kita, maunya dalam keadaan hiden, Bagaiman ya cara
> me-hidden-kannya lewat aplikasi tersebut?
>
> Trim's sebelumnya atas pencerahannya..
>
>


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Great things are happening at Yahoo! Groups.  See the new email design.
http://us.click.yahoo.com/TISQkA/hOaOAA/yQLSAA/NhFolB/TM
--------------------------------------------------------------------~-> 

-----------------------------------------------
IndoPB - Indonesia PB User Group 
An Indonesian PowerBuilder User Group's Event
2nd PowerBuilder Update
Mezzanine Floor Hotel Ibis Slipi
26/27 August 2006
To Register : 
http://groups.yahoo.com/group/indopb/database?method=addRecord&tbl=4 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/indopb/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Kirim email ke