of_printhistory


pfcutil.pbl   >   pfc_n_cst_sqlspy   >   of_printhistory   

Full name pfc_n_cst_sqlspy.of_printhistory
Access public
Extend of integer
Return value integer
Prototype public function integer of_printhistory()

Name Datatype
No Data

Name Datatype
lds_print n_ds

public function integer of_printhistory ();//////////////////////////////////////////////////////////////////////////////
//
//	Function:  		of_PrintHistory
//
//	Access:  		public
//
//	Arguments: 		
//
//	Returns:  		integer
//						Returns 1 if it succeeds and -1 if an error occurs.
//						
//	Description:  	Prints the current history.
//
//////////////////////////////////////////////////////////////////////////////
//
//	Revision History
//
//	Version
//	5.0   Initial version
//
//////////////////////////////////////////////////////////////////////////////
//
//	Copyright © 1996-1997 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.
//
//////////////////////////////////////////////////////////////////////////////

n_ds 		lds_print

lds_print = Create n_ds

lds_print.DataObject = 'd_sqlspyprint'

If lds_print.InsertRow(0) = 1 Then
	If lds_print.SetItem(1,'text', is_history) = 1 Then
		If lds_print.Print() = 1 Then
			// Print was successful.
			Destroy lds_print
			Return 1
		End If
	End If
End If

// Print failed.
Destroy lds_print
Return -1

end function

     
Name Owner
pfc_w_sqlspy.cb_print.clicked cb_print

     
Name Owner
datastore.insertrow datastore
datastore.print datastore
datastore.setitem datastore

     
Full name
No Data

     
Name Scope
No Data