I strongly suggest you download the API docs for yourself and learn how to navigate them. According to the API docs for Display, it provides two versions of setCurrent():
void setCurrent(Alert alert, Displayable nextDisplayable)
and
void setCurrent(Displayable nextDisplayable).
The compiler is complaining because you are trying to one that would look like
void setCurrent(Alert alert),
but this doesn't exist. If you look closer at the error message, it will tell you this is the problem. (For future reference,
you should copy and paste the exact error message here so we can more easily diagnose your problem. You should also copy and paste your program, rather than typing it in, to avoid other problems in communicating your problem.)
Now that I've described the problem, the solution is to make sure you use an appropriate version of setCurrent(). The descriptions in the API docs may help you decide how to do this:
void setCurrent(Alert alert, Displayable nextDisplayable)
Requests that this Alert be made current, and that nextDisplayable be made current after the Alert is dismissed.
void setCurrent(Displayable nextDisplayable)
Requests that a different Displayable object be made visible on the display.
I suspect the first version is the one you wish to use. Notice that you need to indicate what will be shown after the Alert is dismissed. I suspect that you want something like this:
d.setCurrent(infoAlert, tb);
It should fix your problem, and hopefully will provide the results that you expect.
HTH
Layne