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

COBOL Screen Question
I have a screen section within an Acucobol program that has fields defined
as input/output (i.e. Using). I would like to dynamically within the program
code 'Protect' a field from the user entering in data and then unprotect it
later on. I can't find or figure out how to do this.

Has anyone done this? Can any share their experiences/solutions?

thanks.
Doug



Report this thread to moderator Post Follow-up to this message
Old Post
news.gvtc.com
10-05-04 08:55 AM


Re: COBOL Screen Question
news.gvtc.com wrote:

>I have a screen section within an Acucobol program that has fields defined
>as input/output (i.e. Using). I would like to dynamically within the progra
m
>code 'Protect' a field from the user entering in data and then unprotect it
>later on. I can't find or figure out how to do this.
>
>Has anyone done this? Can any share their experiences/solutions?
>
>thanks.
>Doug
>
>
>
Seems to me you are pushing your luck on this one - you are trying to
emulate the Windows "disable", "enable" or "readOnly".

Don't know your compiler but does it allow you to (1)ACCEPT WHOLE SCREEN
v (2)ACCEPT THIS FIELD.  Given (1) - segment your ACCEPT to ACCEPT
SUB-SCREEN (the majority), and programatically (2)ACCEPT THIS FIELD.
Presumably when it comes to changing, you are prompting user for the
Field-Number to be changed. If it is one you currently want to 'protect'
- an error message, "Can't change this right now....".

I would have thought your choices are pretty limited - check out  the
AcuCOBOL full screen syntax, addressing each 'word' to see if there's
something hidden behind the general name. (I've just checked the Micro
Focus Screen Section which is COBOL 2002 PLUS extensions - and I don't
see anything there allowing a 'protect').

Jimmy, Calgary AB

Report this thread to moderator Post Follow-up to this message
Old Post
James J. Gavan
10-05-04 08:55 PM


Re: Re: COBOL Screen Question
Hi ...

have you tried using the MODIFY verb? It can change several attributes and s
tyles of a control (whether regular or OCX).

This statement will ste the read-only attribute on, but I haven't found how 
to take it off ...

MODIFY MY-SCREEN-FIELD READ-ONLY

I can't set that attribute to false or 0, so I'm not sure how to cancel it. 
But this is a starting point.

Hope it helps.
.DaviD.

Report this thread to moderator Post Follow-up to this message
Old Post
davidk13
10-28-04 09:29 PM


Sponsored Links




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

Cobol 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 05:47 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.