在屏幕之间传递一个字符串 [英] Pass a string between Screens

查看:42
本文介绍了在屏幕之间传递一个字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有2个屏幕,一个有按钮和一个文本框,另一个有一个编辑框。

I have 2 screens, one has a button and a text box, the other one has an edit box.

我想做以下事情:

- 在第一个屏幕的文本框中输入内容

- type something in the text box of the first screen

- 点击按钮

- 导航到第二个屏幕并显示我在编辑框中输入的文字

- navigate to the 2nd screen and display the text I typed in the edit box

 

那可能吗?基本上我正在尝试将字符串从第一个文本框传递到第二个文本框。

Is that possible? Basically I'm trying to pass the string from the 1st text box to the 2nd one.

 

谢谢

推荐答案

这可以通过数据存储区实现。

This is possible with a datastore.

 

假设您正在创建SketchFlow应用程序(根据屏幕评论进行猜测)

Assuming you are creating a SketchFlow application (guessing based on the screens comment)

 


  1. 打开数据选项卡
  2. 单击右上角图标,创建数据源,选择新数据存储
  3. 默认名称为DataStore,带有1个字符串属性" Property1",如果您愿意,可以更改此项,但它将按原样运作
  4. 在第一个屏幕上选择文本框
  5. 在属性面板中,找到文本项,单击旁边的小框,选择数据绑定
  6. 在DataField选项卡上,选择您的数据源和Property1字段
  7. 右键单击您的按钮,选择导航到 - >屏幕2
  8. 在第二个屏幕上,选择文本块,找到文本属性,以与第一个相同的方式绑定它

希望有所帮助,如果它不适合你,请告诉我。

Hope that helps, let me know if it doesn't work for you.


这篇关于在屏幕之间传递一个字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆