oRtf:LoadRTF( cText )
oRich:LoadRTF( cTxt )
oRich:lHighLight = .T.
Enrico Maria Giordano wrote:cnavarro wrote:METHOD LoadRTF is for load file .RTF, not a string
No. Please look at this:
- Code: Select all Expand view
METHOD LoadFromRTFFile( cFileName ) INLINE ::cFileName := cFileName, ::LoadRTF( MemoRead( ::cFileName ) )
EMG
cnavarro wrote:METHOD LoadRTF is for load file .RTF, not a string
METHOD LoadFromRTFFile( cFileName ) INLINE ::cFileName := cFileName, ::LoadRTF( MemoRead( ::cFileName ) )
Rick Lipkin wrote:What is the difference in :
oRtf:LoadRTF( cRtf ) // this method does not work
oRtf:SetText( cRtf ) // this method DOES work