xHarbour: CRASH.
- Code: Select all Expand view
// C:\FWH..\SAMPLES\WORDCENT.PRG
#Include "FiveWin.ch"
FUNCTION Main()
LOCAL oWord
// Convert 2.5 centimeters to points
LOCAL nPts
oWord := WinWordObj():New()
nPts := oWord:CentimetersToPoints( 2.5 )
// Display the result
MsgInfo("2.5 centimeters = " + Str(nPts) + " points")
// Quit Word
oWord:Quit()
RETURN NIL
/*
// Create a Word application object
// LOCAL oWord := WinWordObj():New() // HARBOUR FUNCIONA.
*/
// FIN / END
Regards, saludos.