FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Create Licence Agreement
Posts: 28
Joined: Mon Apr 27, 2009 03:37 PM
Create Licence Agreement
Posted: Thu Apr 30, 2009 10:37 AM

Hi,

I want to add a company Licence Agreement to my code but not build a massive text string. I would rather not just attach a text file but be able to build it within my executeable. Is there a better way of doing it? The screen I am looking to replicate is as per the view licence agreement in word.

Thanks

Gary

Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Create Licence Agreement
Posted: Fri May 01, 2009 01:20 PM
If you are using xHarbour, there is a simple way:
Code (fw): Select all Collapse
//--------------------------//
function AgreementText()

local cText

TEXT INTO cText
 <copy and paste your text file here>
ENDTEXT

return cText
//------------------------//

All this can reside in one module.
Note: There is a small bug. Please leave one blank space before start of each line.
Regards



G. N. Rao.

Hyderabad, India
Posts: 28
Joined: Mon Apr 27, 2009 03:37 PM
Re: Create Licence Agreement (Solved)
Posted: Fri May 01, 2009 02:56 PM

Great thanks, problem solved.

Used that function and saved text to a temporary file and opened in Notepad.

Gary

Continue the discussion