March 02, 2013

Code to play sound in axapta

Code to play sound in axapta 

static void ExemploPlaySound(Args _args)
{
    System.Media.SoundPlayer YourMPlayer;
    ;
    YourMPlayer= new System.Media.SoundPlayer();
    YourMPlayer.set_SoundLocation("c:\\xyz.wav");
    YourMPlayer.Play();
}

-Harry

Generates the index for the base enums


Generates the index for the base enums


static void baseenumid(Args _args)
{
dictenum dictenum;
int i;
;
dictenum = new dictenum(enumname2id('NumberSeqModule'));

for(i=0;i<dictenum.values();i++)
{
print int2str(i)+','+dictenum.index2Name(i);
pause;
}
}