Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

storing code in memo

Status
Not open for further replies.

GarryC

IS-IT--Management
Aug 14, 2000
36
0
0
NZ
Hi,
Anyone know how I can store code in a memo, then retrieve it and run it. I am using OLE to create a spreadsheet and send formatted data to the spreadsheet. What I want to do is store the code ina memo so I can change it easily. Is this possible?

Cheers,
Garry
 
Garry,

You can use the EXECSCRIPT() function. I know it's in VFP 7 and 8... not sure about 6. example:

EXECSCRIPT(myTable.MyMemo)

If this function doesn't exist in the version you are using I guess you could copy the code to a .PRG on disk, COMPILE it and then DO it.

Andy
 
Gary,

Just to add to what Andy stated, not only can you do it, but it is done often by developers.

Jim Osieczonek
Delta Business Group, LLC
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top