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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Setting HTML Attributes in netCobol

Status
Not open for further replies.

robundrh2o

Programmer
Sep 1, 2010
4
US
Hey all, I am hoping there is somebody that monitors this site and can assist with my problem. I am trying to build an asp.net web front end for our existing Cobol application using Visual Studio 2008 and fujitsu NetCobol.
I have been muddling through and learning as I go but there are a couple of things that keep messing me up. I have a radiobuttonlist that I use to determine the mode of the screen, I can read in the mode with no problem. What I want to do is set the Enabled property of the Textbox's to false if the Mode comes back as 'View'. I have tried a variety of things but I always end up the following compile error:

'An index-name, index data item, integer item, or positive integer must follow TO in the SET statement".

Any thoughts, ideas, references would be great.

Thanks
 
What is the statement? Set prop-enabled of textbox to ws-false
(where ws-false pic 1 usage bit value B"0") you should also be able to use intellisense for the textbox property.
 
Thanks for the help. I was missing how to properly define the ws-false. This is going to help out a lot.

Thanks again.
 
Okay 1 more question. How would I gray out the same line?

I see the property BackColor so I have defined the PROP-BACKCOLOR but what do i set it to?

Thanks.
 
robundrh2o,

You probably need to use the system.drawing.color then set the backcolor to PROP-GRAY OF CLASS-COLOR (where class-color references system.drawing.color) or similar for the web.

hope this helps,
Bruce
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top