Create Licence Agreement

Create Licence Agreement

Postby Gary Woodley » 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
Gary Woodley
 
Posts: 28
Joined: Mon Apr 27, 2009 3:37 pm
Location: Oxford UK

Re: Create Licence Agreement

Postby nageswaragunupudi » Fri May 01, 2009 1:20 pm

If you are using xHarbour, there is a simple way:
Code: Select all  Expand view

//--------------------------//
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
User avatar
nageswaragunupudi
 
Posts: 10620
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Create Licence Agreement (Solved)

Postby Gary Woodley » Fri May 01, 2009 2:56 pm

Great thanks, problem solved.

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

Gary
Gary Woodley
 
Posts: 28
Joined: Mon Apr 27, 2009 3:37 pm
Location: Oxford UK


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 51 guests