473,387 Members | 1,585 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Forced Property Assignment

I am building a class template that forces the user to override
functions/subs. I need to force the developer to set the value of a property
also but don't know how.

How do I force the developer to set the value of a property as design time?
Jan 25 '06 #1
3 949
What do you mean "force"? What do you want to happen if the developer does
not set the property?

"whornak" <wh*****@discussions.microsoft.com> wrote in message
news:E0**********************************@microsof t.com...
I am building a class template that forces the user to override
functions/subs. I need to force the developer to set the value of a
property
also but don't know how.

How do I force the developer to set the value of a property as design
time?

Jan 25 '06 #2
I am writing an application in VB that is creating Excel files from a
dataset. I want the developer to tell the base class whether to use the
column names from the dataset else, by default, not. If the developer
doesn't set the property it will not causing any issues just effecting the
output.

"Peter Rilling" wrote:
What do you mean "force"? What do you want to happen if the developer does
not set the property?

"whornak" <wh*****@discussions.microsoft.com> wrote in message
news:E0**********************************@microsof t.com...
I am building a class template that forces the user to override
functions/subs. I need to force the developer to set the value of a
property
also but don't know how.

How do I force the developer to set the value of a property as design
time?


Jan 25 '06 #3
Than what do you mean by "force"? Sounds like you just need to set a
default for the property/field.
"whornak" <wh*****@discussions.microsoft.com> wrote in message
news:48**********************************@microsof t.com...
I am writing an application in VB that is creating Excel files from a
dataset. I want the developer to tell the base class whether to use the
column names from the dataset else, by default, not. If the developer
doesn't set the property it will not causing any issues just effecting the
output.

"Peter Rilling" wrote:
What do you mean "force"? What do you want to happen if the developer
does
not set the property?

"whornak" <wh*****@discussions.microsoft.com> wrote in message
news:E0**********************************@microsof t.com...
>I am building a class template that forces the user to override
> functions/subs. I need to force the developer to set the value of a
> property
> also but don't know how.
>
> How do I force the developer to set the value of a property as design
> time?


Jan 25 '06 #4

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

Similar topics

2
by: Aaron | last post by:
Hi, I've seen javascript code where a constructor function is passed an argument "document", and inside the function itself the assignment "this.document = document;" is made. This is the code...
16
by: sneill | last post by:
How is it possible to take the value of a variable (in this case, MODE_CREATE, MODE_UPDATE, etc) and use that as an object property name? In the following example I want 'oIcon' object to have...
5
by: Brent Ritchie | last post by:
Hello, This is my first attempt at template programming so please bear with me. This is what I have so far: Property.h -------------------------- #ifndef PROPERTY_H_ #define PROPERTY_H_
2
by: comp.lang.php | last post by:
if ($forceDownload) { // HANDLE FORCED DOWNLOAD $dlGen =& new DownloadGenerator($fullFilePath); $negativeIndex = $dlGen->generateForceDownloadHeaders(); $willDeleteTemp =...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...

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.