1 (edited by AD1408 2016-09-09 22:21:21)

Topic: Memo text from a file

How do I load a plain text file text into a memo field from MVD project root and sub folders?


Sample text file included in the project folder.

Post's attachments

Attachment icon MemoText from file.zip 3.17 kb, 356 downloads since 2016-09-10 

Adam
God... please help me become the person my dog thinks I am.

Re: Memo text from a file

Hi AD1408,
I think this might be what you need (see attachment).
I've also added the 'vertical scroll bar' property to the memo1 object in the example - I normally find that I need it as this is the way that I set up my help files.
Regards,
Derek.

Post's attachments

Attachment icon MemoText from file.zip 336.32 kb, 380 downloads since 2016-09-10 

Re: Memo text from a file

Thanks a lot Derek.............

It works fine.

Adam
God... please help me become the person my dog thinks I am.

Re: Memo text from a file

Hello AD1408, Derek

To bounce on the Derek's script, find in attachment a third way allowing the end user to choose the file of his choice in the folder of his choice
using OpenDialog

JB

Post's attachments

Attachment icon MEMOTEXT FROM FILE.zip 335.08 kb, 397 downloads since 2016-09-10 

Re: Memo text from a file

Hi JB,


Thanks a lot......

Adam
God... please help me become the person my dog thinks I am.