on reflection, very few people are actually morons, and, unless you're dilbert, your boss os unlikely to be a pointy-haired computer ignoramus.
so, paranoia kicks in.
it's a test. they're testing your ability to deal with failure. they are asking you to do something they know you cannot in...
change jobs. the person asking for this is a moron.
tell them about the dos, and about the fact that whatever you code, the user can turn macros off and your work will be wasted.
mr s. <;)
i'm surprised this compiles. it's certainly pretty poor coding. what does the non-ref one do that the ref one does? it's such poor coding that it smells like hoemwork.
but, whatever, the ref keyword isn't optional, including it should call the second overload.
fb.foo(a);
fb.foo(ref a);
mr...
if you don't want this data copied, don't release it.
it would be much easier for you to come to terms with the fact that you've released it into the world and no longer control it than it would be for you to try to code round what you're proposing.
the users can always copy your spreadsheet...
a delegate is a description of a function.
if you have an integer, you declare a variable of type byte, int or long.
these types are self-describing, the amount of memory they take up and the maximum and minimum values they can hold are already declared for you.
if you want a variable to...
pretty much.
program.cs could all be done behind the scenes, but then you wouldn't see that there was stuff you could configure.
form1.designer.cs is for the designer, yes, but you can edit it if you need to and are reasonably careful.
it's always annoyed me that given that you need to...
further to thread183-1532457
i have multiple stored procedures.
the code for each is in a separate t-sql script file.
a change of server has changed the way that dates are handled...
ok, so the answer is "you can't."
that's so alien.
all my programming career i've believed that each unit of code should be kept separate. SSMS allows you to do this with its creation of container documents or "solutions".
that t-sql then gives you no way to automate the running of those...
ok, so that allows me to execute arbitrary code, for which many thanks.
what if i want to keep the code in a script file on disk?
how do i then call that code from within a different script?
in oracle, it's @script or @@script (although @@ is borked by design)
in C it's #include <script.h>
in...
i'm moving from oracle to sql server.
in oracle i'm used to using modular scripts, including the text of one script in another.
e.g.
<script name=script1>
create table xxtest as ( field1 char(10) not null );
</script>
<script name=script2>
@script1
</script>
running script2 would then...
disabling the button is a useful visual cue to the user that there are no more records in that direction.
if the click event just does nothing what does that mean? are there no more records or is the process not working? how many times do you have to click the button before you realise it's the...
if you really have to call one event from another, you could overload the method so that you can provide default parameters (OTTOMH):
private void textBox1_KeyPress()
{
textBox1_KeyPress(this, new KeyPressEventArgs());
}
mr s. <;)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.