Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

SAY command change
I'm not sure how to explain my problem.
I have to "transform" standard SAY command in
my Clipper application to do something else
than just diplaying text. I have to transform
the string that I want to display (for example
put all of the text in uppercase).

I don't want to change every line of my
prog. and put my user function instead
of SAY command.

Any ideas?

Thanks

Report this thread to moderator Post Follow-up to this message
Old Post
Libero
11-16-04 11:43 PM


Re: SAY command change
> It seems that no matter what method you choose, you will have to change
> every line of code where "foo" is currently displayed unformatted.

Thanks

:-((

Report this thread to moderator Post Follow-up to this message
Old Post
Libero
11-16-04 11:43 PM


Re: SAY command change
"Libero" <zmikasek@vz.htnet.hr> wrote in message
news:cmqa2k$nq5$1@ls219.htnet.hr...
> I'm not sure how to explain my problem.
> I have to "transform" standard SAY command in
> my Clipper application to do something else
> than just diplaying text. I have to transform
> the string that I want to display (for example
> put all of the text in uppercase).
>
> I don't want to change every line of my
> prog. and put my user function instead
> of SAY command.

I would think it would be easy to search & replace "SAY foo" with "SAY
FormatFoo(foo)".

Another option would be to add a picture clause to those SAYs (e.g. for
uppercase "@!") using a constant for the picture.  Search and replace "SAY
foo" with "SAY foo PICTURE FooPicture".  Should you then change your mind,
you need only change the constant.  The first idea seems to allow for more
flexibility, especially if your formatting requirements go beyond the
capabilities of the picture clause.

It seems that no matter what method you choose, you will have to change
every line of code where "foo" is currently displayed unformatted.

--
Ray Marron



Report this thread to moderator Post Follow-up to this message
Old Post
Ray Marron
11-16-04 11:43 PM


Re: SAY command change
On Tue, 9 Nov 2004 09:09:42  Ray Marron <me@privacy.net> wrote
>"Libero" <zmikasek@vz.htnet.hr> wrote in message
>news:cmqa2k$nq5$1@ls219.htnet.hr... 
>
>It seems that no matter what method you choose, you will have to change
>every line of code where "foo" is currently displayed unformatted.


Not true; you can use the pre-processor:

Copy the standard header file STD.CH to MYSTD.CH

Edit the translation directives for the @..SAY command to get the result
you want.

Use the /U compiler option to compile using MYSTD.CH instead of the
built-in one.

--
Douglas Woodrow


Report this thread to moderator Post Follow-up to this message
Old Post
Douglas Woodrow
11-16-04 11:43 PM


Re: SAY command change
"Douglas Woodrow" <doug@nospam.demon.co.uk> wrote in message
news:U1Tz$nEgiPkBFwvK@acuity-ltd.demon.co.uk...
> On Tue, 9 Nov 2004 09:09:42  Ray Marron <me@privacy.net> wrote 

> Not true; you can use the pre-processor:
>
> Copy the standard header file STD.CH to MYSTD.CH
>
> Edit the translation directives for the @..SAY command to get the result
> you want.
>
> Use the /U compiler option to compile using MYSTD.CH instead of the
> built-in one.

I did it that way! It works great!

Thank you once again!

Greetings from Croatia...
Zvonimir Mikasek


Report this thread to moderator Post Follow-up to this message
Old Post
Libero
11-16-04 11:43 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Clipper archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 06:04 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.