Questions tagged [readonly]

Read-only is a generic concept that means "not writeable" - Please DO NOT USE THIS TAG. This tag is ambiguous and needs to be broken up.

This tag is ambiguous.

Please consider using (or creating) alternate tags for the specific use-cases of this term.

  • Read-only is a generic concept that means "not writeable"

  • readonly is a language keyword in C# that makes a member immutable.

  • readonly is an HTML attribute that makes input elements non-editable.

1624 questions
0
votes
1 answer

Access violation reading published read only property

I'm having a problem with Delphi XE to access in designtime a read-only property derived from another component only in cases where the component in question it is a specialized form or datamodule. I have a "Comp1" component and a "Comp2". In…
Delphiman
  • 373
  • 4
  • 15
0
votes
1 answer

django rights of access users

I have materials recorded in the database and belonging to different users. those are either private access, or are part of a group, or free access to all. I want, for example, a current user can have access to all the materials open access (but can…
user3172700
  • 107
  • 2
  • 13
0
votes
2 answers

Tomato router can't create =: Read-only file system

Hi I am trying to set up a script in Tomato router that when it runs it will echo a value dependent on the hour. Script written as follow: HOUR=$(date +"%k") if [[ $HOUR >= 0 ] && [ $HOUR < 12 ]];then echo 'Morning' else echo…
Ben L
  • 1
  • 1
0
votes
3 answers

How do you make a text box readonly using JavaScript

How can i make a text box readonly when a button is clicked using JavaScript? I have tried different scripts like: document.getElementById("text").readonly="on"; but since readonly is a Boolean i don't think it works. Would i use…
Jacob G
  • 13,762
  • 3
  • 47
  • 67
0
votes
1 answer

Opening multiple read only files in vim

Is it possible from within a vim session to open multiple files all in read only mode? I've tried the following but only one of the files is opened read only. :args +se\ readonly *.sql Thanks
user2567544
  • 376
  • 1
  • 12
0
votes
1 answer

Read Only TextBox in VB6

I have a textbox in VB6 Control with some data populated from database. When there is no data, it will be blank. Now my requirement is, that textbox should be Read only and it should have some tooltip text. I tried to keep Textbox1.Enabled = false…
satyanarayana
  • 379
  • 1
  • 5
  • 19
0
votes
2 answers

When you make a file read-only via Properties, can your program write directly to that file?

I'm wondering whether making files read-only so the user can't mess with them will disallow my program from writing information to them via an fstream.
Anonymous
  • 4,167
  • 11
  • 47
  • 52
0
votes
2 answers

Why does my program loop?

I've been working on a simple console program written with C# the past couple of days at my internship (I'm a programming newb, so this took me days to make yes). The entire code can be found here: using System; using…
JFBN
  • 69
  • 6
0
votes
1 answer

Further clarification of _property after readonly attribute?

When setting the readonly attribute in the interface section this 'disables' the setter method for the property. I need some clarification with: What is the point of the readonly property if we can just set it using _propertyName? When to use…
Cescy
  • 1,921
  • 3
  • 18
  • 21
0
votes
1 answer

AllowUserToAddRows causing Null Reference Exception in DataGridViewCellFormattingEvent

So I have a method called on the DataGridViewCellFormattingEvent that inspects the first column of my datagridview. If a row is found to have a value in the first column set to either an H or an F, it colors all the cells in that row one way or…
svenGUTT
  • 399
  • 4
  • 11
0
votes
1 answer

Text document to screen

Searching the internet for none console based text, read only, solutions has come up empty handed. I want to take from a text file and make it show on screen. I also want to learn how to use a scroll bar to scroll through the text if its to long (Y…
Ryan Foy
  • 322
  • 6
  • 19
0
votes
2 answers

MVC2 Model ReadOnly Public Property Access Resulting in "Object Not Set To Reference ..."

I have a ViewModel and a ReadOnly Property in that view model that I can't seem to access in the view. Public ReadOnly Property ListOfSubjects() As List(Of ListOfSubjects) Get Return FeedbackSubjectsContract.GetList() End Get End…
Solo812
  • 401
  • 1
  • 8
  • 19
0
votes
2 answers

Part of text box readonly with default value

Can we display part of a text box to be read-only with default value? I want to display a number preceded by two Zero's in a text box and the two zeros must not be editable.
Vamshi
  • 510
  • 2
  • 10
  • 26
0
votes
0 answers

Android: Passing a file to external app from "documents" folder as read-only

My app opens some files in external apps for editing purpose. In some cases the external app can save the file, in other cases the app cannot save the file. The file is a normal file in the "documents" folder so it is not private and it is not…
P5music
  • 3,197
  • 2
  • 32
  • 81
0
votes
1 answer

Read-only strings in Clisp

I'm noticing some inconsistency in the output of this code in Clisp: (defvar str "Another") (setf (char str 3) #\!) When I run it from the repl, I get the desired result: [1]> (defvar str "Another") STR [2]> (setf (char str 3) #\!) #\! [3]>…
Plakhoy
  • 1,846
  • 1
  • 18
  • 30