I have created a programme to run a function. This program will run for 10 times. My question is I want system to run the program less than 10 times ( for example 6 times) and stop immediately . I do not want to change the condition in while statement. Please guide me.
namespace Tekla.Technology.Akit.UserScript
{
public class Script
{
public static void Run(Tekla.Technology.Akit.IScript akit)
{
int a;
a=1;
while ( a < 10 )
{
akit.Callback("acmd_update_marks_all", "", "main_frame");
akit.Callback("acmdRemoveAllMarkChangeSymbols", "", "main_frame");
akit.Callback("grOpenNextDrawingCB", "", "main_frame");
akit.PushButton("gr_open_save_dr_editor_yes", "gr_open_drawing_confirm_instance");
a=a+1;
}
}
}
}
please send your reply to sriram05in@yahoo.co.in
