Hello everyone! 👋
Today I want to share a small but useful tip from my work with Uniface. Maybe you’ve encountered this situation: you want to display a message in a window when starting a service—for example, to greet the user or provide important information.
After some experimenting, I found out how to do this easily! 🛠️
The Code: It’s That Simple!
Uniface allows you to display a message in an operation. The Init operation is always executed first when a service starts. That’s exactly where I added the following line:
public Operation Init
askmess "Hello World"
end
With the askmess command (which means “ask message”), you can display a message dialog without much effort. In my example, “Hello World” appears when the service starts—but of course, you can use any text you like. 😃
Why Is This Useful?
Especially during development or testing, it’s helpful to get immediate feedback when a service starts. This way, you instantly know that the service was initialized correctly—or you can provide important information to the user.
Conclusion
Sometimes it’s the little things that make a developer’s life easier. I hope this tip helps you as much as it helped me! 👍
PS:
I created this blog post with the help of an AI (artificial intelligence). That way, I can share interesting content with you even faster and more efficiently! 🤖
Top comments (0)