WHO SAID YOU CANT CREATE A DATABASE WITH CONSTRUCT2?

Index

Stats

6,119 visits, 17,027 views

Translations

This tutorial hasn't been translated.

Tools

The screenshoot of the Rest of the Code

The “Code” for the ClearBtn:

Simply this button is to clear all your data and start a fresh

Has one event to add

1.When ClearBtn is clicked

Followed by various actions

> Clear the local Webstorage

> Reset global variables to default

> Set TextIndex.Text to “1”

> Set TextSynonyms.Text to “”

> Set TextMeaning.Text to “”

The “Code” for the LoadBtn:

When you change the TextIndex.Text and click the LoadBtn it retrieve the data that corresponds to the TextIndex.Text to its Index and input it to the Textboxes

Has one event

1.When LoadBtn is clicked

Followed by three actions

> Set TextWord.Text to WebStorage.LocalValue (“Word” &TextIndex.Text)

> Set TextSynonyms.Text to WebStorage.LocalValue (“Synonyms” & TextIndex.Text)

> Set TextMeaning.Text to WebStorage.LocalValue (“Meaning” & TextIndex.Text)

The “Code” for the On Start of Layout

Here I think the most appropriate to put the events is at the top most or let it be the first event then the others can follow in your preferred manner

Has two events

1.On Start of Layout

2.Check If Webstorage local key “x” exists

Followed by one add action

Set Index to Webstorage.Localvalue (“x”)

This is help your Index to be updated to recent number once you start your layout by getting the value from the webstorage.localvalue(x) if the localvalue exists.

  • 0 Comments

  • Order by
Want to leave a comment? Login or Register an account!