WHO SAID YOU CANT CREATE A DATABASE WITH CONSTRUCT2?

3

Index

Stats

12,440 visits, 29,822 views

Tools

License

This tutorial is licensed under CC BY 4.0. Please refer to the license text if you wish to reuse, share or remix the content contained within this tutorial.

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.

  • 2 Comments

  • Order by
Want to leave a comment? Login or Register an account!
  • I have an application that will allow a user to have their own database. Is it possible to create a blank database for every new user?

    Is it possible to create a blank MySQL database on my website, then simply copy it when a new user logs in?

  • I was not able to download the CAPX..