Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Best to way to allow users edit textmerge script
Message
 
To
16/12/2005 20:08:08
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01078706
Message ID:
01079195
Views:
19
>I'm doing something similar, but with a slightly different approach. I have buttons (because the user likes buttons - I'd rather have a combo) which insert delimited text at the .selstart position in the editbox. But I'm not inserting anything merge-ready; I'm inserting English names of insertables, delimited by curly braces... so I'd have
>
>Your invoice {invoice number} has been proccesed on {today's date}.
>
>Then it's a simple matter to match the English names with actual expressions - they are somewhere in a table or a cursor. Once I replace the insertables' names with actual insertables, I save both texts into separate memos, so I always have the editable text, and the usable text.
>
>You can imagine how pleased the users are that they don't have to read through any heavy syntax, specially when my insertables aren't just values, they're HTML links with a full line of tags.

Drangon,

Thanks for the reply!

Inserting English names is a great idea and I'll definitely adopt that. If I can make my users happy, I am happy. Of course, no one pleases everyone.
Dawa Tsering


"Do not let any unwholesome talk come out of your mouths,
but only what is helpful for building others up according to their needs,
that it may benefit those who listen."

- Ephesians 4:29-30 NIV

Dare to Question -- Care to Answer

Time is like water in a sponge, as long as you are willing you can always squeeze some.

--Lu Xun, Father of Modern Chinese Literature

Previous
Reply
Map
View

Click here to load this message in the networking platform