The revOpenDatabases function returns a list of all the currently open database connections, so it can be used to check if a connection is still open.
Kind regards
Elanor
Search found 145 matches
- Thu Sep 12, 2013 2:20 pm
- Forum: Summer School 2013
- Topic: Constant Database Connection
- Replies: 2
- Views: 6367
- Thu Sep 12, 2013 12:48 pm
- Forum: Summer School 2013
- Topic: Constant Database Connection
- Replies: 2
- Views: 6367
Constant Database Connection
Hi As requested here is an example of a function that will work around the issue of losing a database connection, perhaps due to it timing out for some another reason. The basic idea is to use a function to return the database id when you need it, this function checks if the current connection is st...
- Thu Sep 12, 2013 10:48 am
- Forum: Summer School 2013
- Topic: Drag and drop guidance
- Replies: 3
- Views: 7175
Re: Drag and drop guidance
Hi Jill A lot of this will be handled automatically for you by LiveCode. Attached is a sample stack, with no code. If you highlight some text in the list of fruits and drag it into the main text field it will be automatically pasted in where you drop it, without you having to do anything. If you hav...
- Thu Sep 12, 2013 10:38 am
- Forum: Summer School 2013
- Topic: Background switch example
- Replies: 0
- Views: 4921
Background switch example
Hi Here is a small stack showing how to change a background image based on a menu selection. The stack builds the path to the chosen image file, which it assumes is in a folder called "backgrounds" located next to the stack itself. It then appends the chosen image name to the folder and resets the f...
- Thu Sep 12, 2013 10:33 am
- Forum: Summer School 2013
- Topic: Localization Example
- Replies: 1
- Views: 5645
Localization Example
Hi As requested here is a very simple example of localiztion. The stack reads the file of transaltions into an array and allows the user to switch the selected language. The unicodeText property of a label field and unicodeLabel property of a button are used to display the text correctly. The string...
- Thu Sep 12, 2013 10:28 am
- Forum: Summer School 2013
- Topic: Combo Box Filter Example
- Replies: 1
- Views: 6480
Combo Box Filter Example
Hi As requested here is an example of how to filter the list displayed in a combo box. The full list is stored as a custom property of the combo box so it can be referred to as needed. As the user types the textChanged message is handled, the list is filtered using the filter command to find all the...
- Thu Sep 05, 2013 10:09 am
- Forum: Summer School 2013
- Topic: Compilation errors explicitVariables & variable Shadowing
- Replies: 5
- Views: 5216
Re: Compilation errors explicitVariables & variable Shadowin
Hi Quentin
It does sound like the explicitVariables preference is on but if the last suggestion doesn't help please feel free to email me your stack and I'll take a look at it, elanor@runrev.com.
Kind regards
Elanor
It does sound like the explicitVariables preference is on but if the last suggestion doesn't help please feel free to email me your stack and I'll take a look at it, elanor@runrev.com.
Kind regards
Elanor
- Wed Sep 04, 2013 4:52 pm
- Forum: Summer School 2013
- Topic: Android Switch Example
- Replies: 0
- Views: 2876
Android Switch Example
Hi I have put together a small template for an Android switch control. It uses a template group and a behavior so if you use it in any stacks you'll need to make sure the button containing the behavior script is part of your stack too. You can download the sample stack here . You create a switch by ...
- Wed Sep 04, 2013 11:18 am
- Forum: Summer School 2013
- Topic: Trick for resizing MobGUI controls
- Replies: 0
- Views: 1970
Trick for resizing MobGUI controls
Hi all I've done some experimentation and have found a way to resize MonGUI controls using the LiveCode Property Inspector, it's a little bit of a hack and if I come up with something better I'll let you know. The steps are - turn off "Disable auto geometry" in MobGUI - add a MobGUI control - open t...
- Wed Sep 04, 2013 10:01 am
- Forum: Summer School 2013
- Topic: Getting placeholder variables to work in revDataFromQuery
- Replies: 2
- Views: 3138
Re: Getting placeholder variables to work in revDataFromQuer
Hi Quentin I think it might just be that you need quotation marks around your variable name e.g. put revDataFromQuery(comma, return, GetDatabaseID(), "pragma table_info(:1);", "tSelectedTable") into tColumnList I haven't set up a test so this may not work but syntax wise as least that's how it shoul...
- Mon Sep 02, 2013 11:20 am
- Forum: Summer School 2013
- Topic: LiveCode Tips and Tricks
- Replies: 4
- Views: 4229
LiveCode Tips and Tricks
Hi everyone
We've added a LiveCode Tips and Tricks document to the resources page.
It's has some useful tips the team came up with and a list of all the LiveCode shortcuts.
I hope you find it useful.
Kind regards
Elanor
We've added a LiveCode Tips and Tricks document to the resources page.
It's has some useful tips the team came up with and a list of all the LiveCode shortcuts.
I hope you find it useful.
Kind regards
Elanor
- Mon Sep 02, 2013 10:21 am
- Forum: Summer School 2013
- Topic: Android MOBgui not showing up
- Replies: 6
- Views: 5840
Re: Android MOBgui not showing up
Hi
It does look like you just need to update the version of MobGUI that you have, you can do this by clicking the Check for Updates button in MobGUI, second from the right in the top bar, looks like a refresh button.
The latest version is 0.29.
I hope that helps.
Kind regards
Elanor
It does look like you just need to update the version of MobGUI that you have, you can do this by clicking the Check for Updates button in MobGUI, second from the right in the top bar, looks like a refresh button.
The latest version is 0.29.
I hope that helps.
Kind regards
Elanor
- Thu Aug 29, 2013 10:34 am
- Forum: Summer School 2013
- Topic: Database to Data Grid and back again - best methods
- Replies: 14
- Views: 55704
Re: Database to Data Grid and back again - best methods
Hi EOTR
This is a really good suggestion, we will start adding links to additional resources to the document that accompanies the video each week.
Thanks for pointing out how useful this would be.
Kind regards
Elanor
This is a really good suggestion, we will start adding links to additional resources to the document that accompanies the video each week.
Thanks for pointing out how useful this would be.
Kind regards
Elanor
- Thu Aug 29, 2013 10:17 am
- Forum: Summer School 2013
- Topic: Can't get alt - double click to work
- Replies: 17
- Views: 19203
Re: Can't get alt - double click to work
Hi EOTR Each type of MobGUI control responds differently to alt-double click, for example tab buttons get wider to fill the space, left buttons align themselves 10 pixels in from the left of the stack and buttons are horizontally centered. The MobGUI documentation explains how each control type resp...
- Wed Aug 28, 2013 6:19 pm
- Forum: Summer School 2013
- Topic: Lesson 2 Note
- Replies: 0
- Views: 1638
Lesson 2 Note
Hi All Just a quick note as someone pointed out a small mistake in the video. At one point I set the SQLite option button to be the default meaning it is selected whenever you go to the card. Later I realised this was incorrect as if you go to Contact Details or Add Contact you want the option you l...