Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Setting HTML Attributes in netCobol

Setting HTML Attributes in netCobol

Setting HTML Attributes in netCobol

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.


RE: Setting HTML Attributes in netCobol

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.

RE: Setting HTML Attributes in netCobol

Thanks for the help. I was missing how to properly define the ws-false. This is going to help out a lot.

Thanks again.

RE: Setting HTML Attributes in netCobol

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?


RE: Setting HTML Attributes in netCobol


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,

RE: Setting HTML Attributes in netCobol

Thanks that did it.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close