WHO SAID YOU CANT CREATE A DATABASE WITH CONSTRUCT2?

3

Index

Stats

13,254 visits, 31,156 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.

Published on 21 Mar, 2012. Last updated 19 Feb, 2019

The “Code” for the EditBtn:

Quite similar to AddBtn but the differences lies in that in AddBtn you add a data at the end of the last Index while for EditBtn you simply edit an existing data.

First you need to declare a private/instance variable for EditBtn

I named my EditIndex which is a number that is 0

On the add events we have only one event

1.When the EditBtn is Clicked

This is followed by various add actions

> Set EditIndex to float(TextIndex).Text

note the float() converts a value to number

> Set the Database.size to present size ie Database.size (3 * Index, 1, 1)

> Set the Database.X Index value

Set Database. X index to EditBtn.EditIndex - 3 which the value is TextWord.Text

Set Database. X index to EditBtn.EditIndex - 2 which the value is TextSynonyms.Text

Set Database. X index to EditBtn.EditIndex - 1 which the value is TextMeaning.Text

> Set your global variable to “my global variable” &Index ie

Set Word to “Word” & EditBtn.EditIndex----Word reads as Word1

Set Synonyms to “Synonyms” & EditBtn.EditIndex----Synonyms reads as Synonyms1

Set Meaning to “Meaning” & EditBtn.EditIndex----Meaning reads as Meaning1

> Assign a Key and set a value in the webstore

Set a Local Key as Word to Database.At (EditBtn.EditIndex – 3)

Set a Local Key as Synonyms to Database.At (EditBtn.EditIndex – 2)

Set a Local Key as Meaning to Database.At (EditBtn.EditIndex – 1)

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