Click here to Skip to main content
15,894,405 members
Home / Discussions / C#
   

C#

 
GeneralRe: Help needed - Extracting data from Excel to Access Pin
drawmylyfe15-Nov-07 3:31
drawmylyfe15-Nov-07 3:31 
QuestionRipping CD+G discs Pin
SreeniTheGinie14-Nov-07 22:50
SreeniTheGinie14-Nov-07 22:50 
QuestionSynchronize two scrollbars Pin
stancrm14-Nov-07 22:50
stancrm14-Nov-07 22:50 
AnswerRe: Synchronize two scrollbars Pin
Christian Graus14-Nov-07 23:22
protectorChristian Graus14-Nov-07 23:22 
AnswerRe: Synchronize two scrollbars Pin
Martin#14-Nov-07 23:41
Martin#14-Nov-07 23:41 
QuestionInputLanguage Pin
SVb.net14-Nov-07 22:37
SVb.net14-Nov-07 22:37 
QuestionInputLanguage Pin
SVb.net14-Nov-07 22:36
SVb.net14-Nov-07 22:36 
QuestionHow to: Override function with other function, that already exists? [modified] (Unanswered!) Pin
alex_inside14-Nov-07 22:14
alex_inside14-Nov-07 22:14 
public abstract class Test_setting_date_value_base : My_test_base
{

[Step ("2.INHERITED attribute")]
protected abstract bool s2_custom (object data);
protected abstract bool s7_custom (object data);

protected bool s7_goto_datetime_month_value_and_press_ok_up (object data)
{//do something
}


public override BlaTests.Test_step [] get_steps ()
{
Test_step [] steps =
{
s1_initialise,
s2_custom,
//...
s7_custom,
s12_deactivate
};

return (steps);
}
}



public class Test_setting_date_value_1 : Test_setting_date_value_base
{
protected override bool s2_custom (object data)
{
return set_date (30, 11, 2003);
}

protected override bool s7_custom (object data)
{
return s7_goto_datetime_month_value_and_press_ok_up (data);
}
}





Is it possible to do for a class the function that overrides previous implementation by setting 'pointer to function' like in JavaScript? I.e. I want something like that in second class (Test_setting_date_value_1):

protected new bool s7_custom = s7_goto_datetime_month_value_and_press_ok_up ;


I dont' know, but it somehow connected to keyword delegate.


-- modified at 5:14 Thursday 15th November, 2007
QuestionRe: Set function to other function. C# (I mean I want that:) Pin
alex_inside15-Nov-07 0:29
alex_inside15-Nov-07 0:29 
QuestionChoosing and setting a control's property programatically Pin
Dewald14-Nov-07 21:59
Dewald14-Nov-07 21:59 
AnswerRe: Choosing and setting a control's property programatically Pin
Martin#14-Nov-07 22:07
Martin#14-Nov-07 22:07 
GeneralRe: Choosing and setting a control's property programatically Pin
Dewald15-Nov-07 0:00
Dewald15-Nov-07 0:00 
GeneralRe: Choosing and setting a control's property programatically Pin
Martin#15-Nov-07 0:04
Martin#15-Nov-07 0:04 
GeneralRe: Choosing and setting a control's property programatically Pin
Dewald15-Nov-07 1:28
Dewald15-Nov-07 1:28 
GeneralRe: Choosing and setting a control's property programatically Pin
Martin#15-Nov-07 1:49
Martin#15-Nov-07 1:49 
GeneralRe: Choosing and setting a control's property programatically Pin
Dewald15-Nov-07 2:53
Dewald15-Nov-07 2:53 
GeneralRe: Choosing and setting a control's property programatically Pin
Martin#15-Nov-07 3:09
Martin#15-Nov-07 3:09 
GeneralRe: Choosing and setting a control's property programatically Pin
Dewald15-Nov-07 4:51
Dewald15-Nov-07 4:51 
GeneralRe: Choosing and setting a control's property programatically Pin
Martin#15-Nov-07 20:35
Martin#15-Nov-07 20:35 
GeneralRe: Choosing and setting a control's property programatically Pin
Dewald15-Nov-07 21:09
Dewald15-Nov-07 21:09 
GeneralRe: Choosing and setting a control's property programatically Pin
Martin#15-Nov-07 21:11
Martin#15-Nov-07 21:11 
QuestionExecution Problem Pin
DeepOceans14-Nov-07 21:59
DeepOceans14-Nov-07 21:59 
AnswerRe: Execution Problem Pin
Adeel Chaudhry14-Nov-07 22:10
Adeel Chaudhry14-Nov-07 22:10 
GeneralRe: Execution Problem Pin
DeepOceans14-Nov-07 23:29
DeepOceans14-Nov-07 23:29 
GeneralRe: Execution Problem Pin
Adeel Chaudhry14-Nov-07 23:35
Adeel Chaudhry14-Nov-07 23:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.