Forum >Audio Player - string variable?
Audio Player - string variable?

Hi friends:
Is it any chance to use a numeric or string variable in the Audio Player sentence?
What I mean is something like that:
// Numeric case:
int Num=34;
TwiSend("\\Num\r\n");
// String case:
char Str4[ ] = "One";
TwiSend("\\char Str4[]\r\n");
Is it valid any of those?
Thanks and regards
merlin
Or waht sintaxis we have to use in order to work with string or numeric variable?
Is it any chance to use a numeric or string variable in the Audio Player sentence?
What I mean is something like that:
// Numeric case:
int Num=34;
TwiSend("\\Num\r\n");
// String case:
char Str4[ ] = "One";
TwiSend("\\char Str4[]\r\n");
Is it valid any of those?
Thanks and regards
merlin
Or waht sintaxis we have to use in order to work with string or numeric variable?
2012-02-09 02:44:45 basically, it is invalid. What you can do is to form a string which includes "\\one\r\n" and try to use that variable in the TwiSend.
char tempstr[]="\\one\r\n";
TwiSend(tempstr);
Just an idea, haven't been verified yet.
R2D2C3PO
char tempstr[]="\\one\r\n";
TwiSend(tempstr);
Just an idea, haven't been verified yet.
