473,788 Members | 2,733 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Setting a read-only attribute

I have an object and wish to set an attribute on it which,
unfortunately for me, is read-only.

How can I go about this?

Cheers.
-T

Aug 30 '07 #1
5 1707
On Aug 30, 10:35 pm, "tleeuwenb...@g mail.com" <tleeuwenb...@g mail.com>
wrote:
I have an object and wish to set an attribute on it which,
unfortunately for me, is read-only.
If it's read-only then you can't set it!
How can I go about this?
Joke aside, I think you need to be more specific.

--
Arnaud
Aug 30 '07 #2
Arnaud Delobelle wrote:
On Aug 30, 10:35 pm, "tleeuwenb...@g mail.com" <tleeuwenb...@g mail.com>
wrote:
>I have an object and wish to set an attribute on it which,
unfortunatel y for me, is read-only.

If it's read-only then you can't set it!
>How can I go about this?

Joke aside, I think you need to be more specific.
To be more specific about much more specific you should be:
If you know the exact problem/hurdle you have to overcome, explain it.
Otherwise kindly provide the traceback (error message) you get when
attempting to set the attribute.

/W
Aug 30 '07 #3
tl**********@gm ail.com wrote:
>I have an object and wish to set an attribute on it which,
unfortunatel y for me, is read-only.

How can I go about this?

Cheers.
-T
I guess we all need an code example to show us the way 'read only' is
implemented.
If you cant access to the class wich you are instantiated from, well,
maybe you can just post the error or exception you get.

Cheers.
Gerardo
Aug 30 '07 #4
On Aug 30, 11:35 pm, "tleeuwenb...@g mail.com" <tleeuwenb...@g mail.com>
wrote:
I have an object and wish to set an attribute on it which,
unfortunately for me, is read-only.

How can I go about this?

Cheers.
-T

Could you show the object you want to set his attribute?
Until that, it's difficult to answer to you.

PS: If the attribut is on read only, their must a good reason for
that ;)

Aug 31 '07 #5
tl**********@gm ail.com wrote:
I have an object and wish to set an attribute on it which,
unfortunately for me, is read-only.

How can I go about this?
This seems like a bizarre requirement. Why is the attribute read-only in
the first place? How is the read-only mechanism enforced? Is the object
created in Python or in an extension module? Do you have any evidence
that "setting" the attribute will effect the required change in the
behavior of the object.

A little more information would be helpful.

regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
Holden Web LLC/Ltd http://www.holdenweb.com
Skype: holdenweb http://del.icio.us/steve.holden
--------------- Asciimercial ------------------
Get on the web: Blog, lens and tag the Internet
Many services currently offer free registration
----------- Thank You for Reading -------------

Aug 31 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1347
by: huzz | last post by:
Am trying to read user defined setting from web.config as shown in this tutorial http://aspnet.4guysfromrolla.com/articles/053102-1.aspx When i try to read the value i get error "Method name expected" Here is my custom setting <slidemenuSettings> <add key="MenuID" value="pro_9" /> </slidemenuSettings>
18
18419
by: Dixie | last post by:
Can I set the Format property in a date/time field in code? Can I set the Input Mask in a date/time field in code? Can I set the Format of a Yes/No field to Checkbox in code? I am working on a remote update of tables and fields and can't find enough information on these things. Also, how do you index a field in code?
18
1788
by: MLH | last post by:
I have an A97 app that automatically sends eMail using OutLook Express. Each installation requires the user to reconfigure Outlook Express to avoid prompts waiting for them to authorize or deny the email SEND attempts. Theygo to the main Outlook Express window and click Tools, Options. A smaller window opens and they click its 'Security' tab. Then they UNCHECK the box that says "Warn me when other applications try to send mail as me."...
1
2455
by: Darrel | last post by:
I've figured out how to read a variable in one ASCX file from another. Works great. I now would like to have one ASCX file set a variable in its parent ASPX or another ASCX file. Can that be done? I can't read the variable from the ASCX or ASPX file, because the control that is setting the variable is being loaded dynamically, so I can't reference it directly (as the other control wouldn't necessary know it is there.) Google returns...
3
1079
by: dotnet dev | last post by:
Hi, I have a plain text file called myVersions.ver which will have something like this: AppVersion: 1.0 DBVersion: 1.0 I will use this file to keep my app version number and database version. My problem is that after extensive research I cannot figure out how to
8
6104
by: VB User | last post by:
I would like the text property of combo box to read the first item of the list on form load. I have a set of four items in the collection. How do I do it? Thanks
14
4033
by: Roger Withnell | last post by:
How to I find out what size text the browser is set to? Thanks in anticipation.
8
16097
by: Andrus | last post by:
..NET 2 Winforms application. How to create new setting and set it default value in userSettings section of app.config file or overwrite existing setting value ? I found code below in this list which modifies Application setting section but how to add new item to userSettings ? Andrus.
1
10022
by: =?Utf-8?B?UmljaA==?= | last post by:
In the Registry at HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Jet \ 4.0 \ Engines \ Text the default key for Text Format is: "Format" = "CSVDelimited" I can use the following OleDB connection string with an OleDB dataAdapter to read a comma delimited text file when "Format" = "CSVDelimited"
7
1738
by: PetterL | last post by:
I have a setting called My.settings.firstrun set to True, set in the setting manager. When i read this in the first form form_Load in a IF sentence it always come out as false. I have tried to change the setting from string to Boolean but no help.
0
9498
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10177
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10113
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9969
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7519
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5402
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5538
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3677
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2896
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.