of_dstodirattrib


pfcapsrv.pbl   >   pfc_n_cst_filesrv   >   of_dstodirattrib   

Full name pfc_n_cst_filesrv.of_dstodirattrib
Access protected
Extend of integer
Return value integer
Prototype protected function integer of_dstodirattrib(ref n_ds,ref n_cst_dirattrib,long)

Name Datatype
No Data

Name Datatype
lnv_conv n_cst_conversion
ls_altfilename string
ls_archive string
ls_creationdate string
ls_creationtime string
ls_drive string
ls_filename string
ls_filesize string
ls_hidden string
ls_lastaccessdate string
ls_lastwritedate string
ls_lastwritetime string
ls_readonly string
ls_subdir string
ls_system string

protected function integer of_dstodirattrib (ref n_ds ads_source, ref n_cst_dirattrib anv_entry, long al_row);//////////////////////////////////////////////////////////////////////////////
//	Protected Function:  of_DSToDirAttrib
//	Arguments:		ads_source	
//						anv_entry
//						al_row
//	Returns:			Integer
//						1 if it succeeds and -1 if an error occurs.
//	Description:	
//////////////////////////////////////////////////////////////////////////////
//	Rev. History:	Version
//////////////////////////////////////////////////////////////////////////////
//	Copyright © 1996-1999 Sybase, Inc. and its subsidiaries.  All rights reserved.  Any distribution of the 
// PowerBuilder Foundation Classes (PFC) source code by other than Sybase, Inc. and its subsidiaries is prohibited.
//////////////////////////////////////////////////////////////////////////////
string	ls_readonly, ls_hidden, ls_subdir, ls_archive, ls_drive, ls_system
string	ls_lastwritedate, ls_lastwritetime, ls_filesize
string	ls_creationdate, ls_creationtime, ls_lastaccessdate
string	ls_filename, ls_altfilename
n_cst_conversion	lnv_conv

if (not isvalid(ads_source)) or isnull(ads_source) or &
	(not isvalid(anv_entry)) or isnull(anv_entry)  then
	return -1
end if

if isnull(al_row) or (al_row < 1) then
	return -1
end if

if not isvalid(ads_source.inv_base) then return -1

ls_readonly = ads_source.inv_base.of_getitem(al_row, "readonly")
ls_system = ads_source.inv_base.of_getitem(al_row, "system")
ls_hidden = ads_source.inv_base.of_getitem(al_row, "hidden")
ls_subdir = ads_source.inv_base.of_getitem(al_row, "subdirectory")
ls_archive = ads_source.inv_base.of_getitem(al_row, "archive")
ls_drive = ads_source.inv_base.of_getitem(al_row, "drive")
ls_lastwritedate = ads_source.inv_base.of_getitem(al_row, "lastwritedate")
ls_lastwritetime = ads_source.inv_base.of_getitem(al_row, "lastwritetime")
ls_filesize = ads_source.inv_base.of_getitem(al_row, "filesize")
ls_creationdate = ads_source.inv_base.of_getitem(al_row, "creationdate")
ls_creationtime = ads_source.inv_base.of_getitem(al_row, "creationtime")
ls_lastaccessdate = ads_source.inv_base.of_getitem(al_row, "lastaccessdate")
ls_filename = ads_source.inv_base.of_getitem(al_row, "filename")
ls_altfilename = ads_source.inv_base.of_getitem(al_row, "altfilename")

anv_entry.is_filename = ls_filename
anv_entry.id_lastwritedate = date(ls_lastwritedate)
anv_entry.it_lastwritetime = time(ls_lastwritetime)
anv_entry.idb_filesize = double(ls_filesize)
anv_entry.ib_readonly = lnv_conv.of_boolean(ls_readonly)
anv_entry.ib_system = lnv_conv.of_boolean(ls_system) 
anv_entry.ib_hidden = lnv_conv.of_boolean(ls_hidden)
anv_entry.ib_subdirectory = lnv_conv.of_boolean(ls_subdir)
anv_entry.ib_archive = lnv_conv.of_boolean(ls_archive)
anv_entry.ib_drive = lnv_conv.of_boolean(ls_drive)
anv_entry.is_altfilename = ls_altfilename
anv_entry.id_creationdate = date(ls_creationdate)
anv_entry.it_creationtime = time(ls_creationtime)
anv_entry.id_lastaccessdate = date(ls_lastaccessdate)

return 1
end function

     
Name Owner
pfc_n_cst_filesrv.of_sortdirlist pfc_n_cst_filesrv

     
Name Owner
systemfunctions.date systemfunctions
systemfunctions.double systemfunctions
systemfunctions.isnull systemfunctions
systemfunctions.isvalid systemfunctions
systemfunctions.time systemfunctions
pfc_n_cst_conversion.of_boolean pfc_n_cst_conversion
pfc_n_cst_dssrv.of_GetItem pfc_n_cst_dssrv

     
Full name
No Data

     
Name Scope
No Data