WHO SAID YOU CANT CREATE A DATABASE WITH CONSTRUCT2?

3

Index

Stats

13,012 visits, 30,808 views

Tools

Translations

This tutorial hasn't been translated.

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 “Code” for the NextBtn:

On the add event side we will have five conditions like this:

1.When the NextBtn is Clicked

2.When the “x” key in the Webstorage exists

Checks the “x” local key in the Webstorage if it exists and if it does so; then NextBtn will be functional and if it doesn't exists then it will not be functional

This is followed by its various add actions

> Set the tIndex value to TextIndex and add it by 1 i.e

Set the tIndex to float(TextIndex)+ 1

note should use the float() so as to convert the Text as number

> Set the BackBtn to enabled

> Set the TextIndex.Text to tIndex

> Retrieve the data from Webstorage and input it your Textbox as such

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

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

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

Here when you click the NextBtn each time, the number of TextIndex.Text corresponds to the data of the of the Webstorage hence retrieve it and inputing to the Textboxes and enabling the BackBtn

3.When the tIndex is equal to Index---the total num of unique key stored

tIndex is the global variable that checks the text from TextIndex.Text and check if it Index

4.When the “x” key in the Webstorage exists

Followed by one condition

> Set the NextBtn to Disable

Here when the global variable tIndex is equal to Index it disable the BackBtn

The “Code” for the BackBtn:

Quite similar to NextBtn

On the add event side we will have five conditions like this:

1.When the BacktBtn is Clicked

2.When the “x” key in the Webstorage exists

Checks the “x” local key in the Webstorage if it exists and if it does then BackBtn will be functional and if not it will not be functional

This is followed by its various add actions

Similar to NextBtn actions but:

-----where is for add you subtract

-----change the BackBtn to NextBtn

3.When the tIndex is equal to 1

tIndex is the global variable that checks the value from TextIndex.Text and check if it 1

4.When the “x” key in the Webstorage exists

Followed by one conditions

> Set the BackBtn to Disable

Here when the global variable tIndex reaches 1 it disable the BackBtn

  • 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..