如何在黑莓中将字符串值从一个屏幕发送到另一个屏幕?
任何人请帮助我将字符串值从黑莓的一个屏幕传递到另一个屏幕
Anyone please help me to pass String value from one screen to another screen in Blackberry
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我想说从第一个屏幕推动第二个屏幕,而不是从应用程序。
在应用程序中推送第一个屏幕:
第二个屏幕有一个字符串值设置器:
在第一个屏幕中创建第二个屏幕,设置字符串值并推送它。 如果您不需要返回,则弹出第一个屏幕:
I would say to do pushing 2nd screen from the 1st screen, not from the application.
In app push first screen:
Second screen has a setter for string value:
In first screen create second, set string value and push it. Pop first screen if you don't need to return on it:
我认为您可能需要更清楚地了解您的需求。 但从字面上看你原来的问题,下面的代码就是你将如何做到这一点。
上面的代码会将两个屏幕推送到 BlackBerry 显示堆栈上,第二个屏幕基本上包含第一个屏幕中的字符串(无论您需要什么字符串)。
I think you may need to be a little more clear in what you require. But taking your original question literally, the following bit of code is how you would do it.
The above code would push two screens onto the BlackBerry display stack, with the second screen essentially having the string (whatever string you happen to need), from the first screen.