SQL join question
Hi Bob, LEFT OUTER JOIN will given you every record on the left (devices) even if a device has no accessory. Mark ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Populating a DataGrid on a card problem
Hi all, This script: set the dgText[false] of grp dgVariables of cd Variables to empty throws this error: Script compile error: Error description: round: bad parameter And this script throws the same error: put false into HasHeaders set the dgText[HasHeaders] of grp dgVariables of cd Variables to tData At first run of the script it throws the error, but subsequent times running it, it works. :( What do I have wrong in the script? - Regards, Mark Stuart --- LC 4.6.4 LC Community 6.5 WinXP/7/8 32bit and 64bit -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Populating-a-DataGrid-on-a-card-problem-tp4678586.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: [OT] The last few copies of Programming LivCode for the Real Beginner
Mr. Schonewille, Please save me one as I just ordered your book. Mark Stuart - Regards, Mark Stuart --- LC 4.6.4 LC Community 6.1 WinXP/7/8 32bit and 64bit -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/OT-The-last-few-copies-of-Programming-LivCode-for-the-Real-Beginner-tp4675562p4675568.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Sqlite under Windows
Hi Ludovic, Are you using the SQLite BEGIN and COMMIT transaction before and after the reading of the file during importation? My experience of importing without using transactions was the same as you, until I started using as I just mentioned. Regards, Mark - Regards, Mark Stuart --- LC 4.6.4 LC Community 6.1 WinXP/7/8 32bit and 64bit -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Sqlite-under-Windows-tp4675357p4675377.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: mySQL disconnects
Bob, If the OS environment is Windows, try shelling to a ping of the server to see if the server is up and running. Also, are there any MySQL command line functions that can be used also in a shell and reading the response. This may return a quicker result. Regards, Mark - Regards, Mark Stuart --- LC 4.6.4 LC Community 6.1 WinXP/7/8 32bit and 64bit -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/mySQL-disconnects-tp4675362p4675378.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Reading XML with start tag and end tag all in one tag
Hi Mark, That did the trick. I didn't see the attributeName part of the revXMLAttribute function, wasn't looking close enough. No wonder I was getting the error. Thanx, Mark Stuart - Regards, Mark Stuart --- LC: 4.6.4 WinXP/7/8 32bit and 64bit -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Reading-XML-with-start-tag-and-end-tag-all-in-one-tag-tp4667074p4667089.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Over £300k!
Just pledged with 39 hours to go. :) - Regards, Mark Stuart --- LC: 4.6.4 WinXP/7/8 32bit and 64bit -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Over-300k-tp4661192p4661239.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
to find the first numeric line?
Hi Tiemo, I haven’t tried this, but have you taken a look at the FILTER command? filter list with “[1-9]*” Thanx, Mark Stuart ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Sending an email on Windows 8
Hi all, I've reported this issue of trying to send an email from LC on Windows 8 Desktop. RR has reported back to me that using revMail someb...@ddd.com does not work on Win8. Here's the RunRev report bug: http://quality.runrev.com/show_bug.cgi?id=10639 Other methods of sending an email on Win8 still work: launch URL and revGoURL - Regards, Mark Stuart --- LC: 4.6.4 WinXP/7/8 32bit and 64bit -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Sending-an-email-on-Windows-8-tp4658707p4658891.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Sending an email on Windows 8
Hi, I was able to resolve sending an email on Windows 8. It was a syntax issue. Mark Stuart - Regards, Mark Stuart --- LC: 4.6.4 WinXP/7/8 32bit and 64bit -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Sending-an-email-on-Windows-8-tp4658707p4658808.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Sending an email on Windows 8
Wow! I guess no one is using Windows 8. - Regards, Mark Stuart -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Sending-an-email-on-Windows-8-tp4658707p4658741.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
getting URL data from website when proxy required
Hi, I'm trying to download a web page content, and it looks like I have to use the httpProxy setting. This is done from a corporate office, in a Windows OS environment. I see that IE Internet options Connections tab LAN settings, the Use a proxy server is checked and the Address and Port are defined. Address: theProxyValue and Port is 8080. So first, I tried without setting the httpProxy: set the htmlText of fld Source to URL fld WebURL this put a lot of text into the field Source. Here's the META tag: META http-equiv=Content-Type content=text/html; charset=UTF-8 •Technical Information (for support personnel) • Error Code: 407 Proxy Authentication Required. Forefront TMG requires authorization to fulfill the request. Access to the Web Proxy filter is denied. (12209) • IP Address: xx.x.xx.xxx • Date: 1/8/2013 4:01:42 PM [GMT] • Server: theProxyValue.corporate.com • Source: proxy So I used: set the httpProxy to (theProxyValue : thePortValue) set the httpHeaders to Content-Type content=text/html; charset=UTF-8 which returned the same Technical Information result into the field Source. So what am I missing? How do I find out how to set the httpHeaders? As from my search on the user-list, that's what seems to be the key in getting this to work. But I've no idea on how to get that info and to what it should be set. Is this a trial and error go around? - Regards, Mark Stuart -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/getting-URL-data-from-website-when-proxy-required-tp4658744.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: getting URL data from website when proxy required
Michael, Yes, no problem. Sorry, forgot to mention that. - Regards, Mark Stuart -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/getting-URL-data-from-website-when-proxy-required-tp4658744p4658748.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Sending an email on Windows 8
Robert, And I'll up your 2¢ with my 2¢ by submitting this as a tech support question to RR. :) When I hear from them, I'll let you know. - Regards, Mark Stuart --- LC: 4.6.4 WinXP/7/8 32bit and 64bit -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Sending-an-email-on-Windows-8-tp4658707p4658749.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Sending an email on Windows 8
Hi all, I'm trying to send an email on Windows 8, from LiveCode 4.6.4. I've tried each of the following: put mailto:myem...@gmail.comsubject=; tSubject into tMessage revGoURL tMessage --this opens the default mail client, and puts the email address AND subject into the To field. launch URL tMessage -- same result as revGoURL revMail myem...@gmail.com, , tSubject, tBody --this does nothing So what works? Any ideas? - Regards, Mark Stuart -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Sending-an-email-on-Windows-8-tp4658707.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Dockable Panes
Dick, Take a look at Codejocks ActiveX control: http://www.codejock.com/products/dockingpane/tour_3.asp?platform=com http://www.codejock.com/products/dockingpane/tour_3.asp?platform=com This web page shows an animation of the panes being moved and relocated into another position. This is what I'm talking about when a pane is moved. Notice the handle icons that are made visible when dragging begins. It's a placement icon to show where the pane can be dropped, and it previews the place of the pane with a transparent pane when the mouse moves over it. Dick - answering your question, pane #4 would occupy pane #2 and #4 area. Again, you can see this in the Codejock web page referenced above. Richard - I read your reply and looked at the pencil-animation web site (cool software). Each pane can be represented as a toolbox or contain information such as record detail, for example. Each pane has a header, which contains a title and buttons. Buttons can be to close/remove the pane, or have a drop-down menu for actions. The header is the dragging object. I will continue to prototype in LC until I have something to show. If I'm successful at uploading to RevOnline, I'll place it there for y'll to take a look at. - Regards, Mark Stuart -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Dockable-Panes-tp4658476p4658505.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Dockable Panes
Hi As_Simon, I took a look at the web page of the link you gave. It shows how to resize controls with the concept of a splitter. What I'm talking about is docking panes. Have a look at the link I supplied to Codejock. A whole different matter. But thanks for that. Those who read this topic will then see the difference. - Regards, Mark Stuart -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Dockable-Panes-tp4658476p4658513.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Dockable Panes
Hi Dick and Bob, The idea is that any pane can be dropped onto the position of any other pane. So if all 4 panes were in their original position, pane #3 could be dragged and dropped onto pane #4 position. Likewise, pane #2 could be dropped onto pane #3 position. All this is just my idea from what I've seen with other dockable pane software. Bob - to answer your question with a question. Were you thinking of Windows 8 tiles? One that I've played around with in VB is Codejock - www.codejock.com Its behavior and features are quite elaborate. I'd like to be able to mimic its concept in LC. Regards, Mark Stuart -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Dockable-Panes-tp4658476p4658484.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
QT player and continuous play of a list of songs problem
on Thu Dec 6 02:04:44 CST 2012, BNig wrote: Note: The playStoppedmessage is sent when a card containing the player closes and when the player's filename property is changed. If the player is hidden, or the movie or sound is not currently running, the message will still be sent. To prevent a playStopped handler from being executed inappropriately, set the lockMessages to true before changing the filename or switching cards: lock messages -- prevent sending playStopped set the filename of me to newFile unlock messages Thanx Bernd. That stopped the LC engine from going to the top of the handler again. But I can't resolve the no audio problem when the next song is set to play. Any ideas on that? Regards, Mark Stuart ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
QT player and continuous play of a list of songs problem
Hi all, I've built an MP3 player to play songs while at work. I decided to add a checkbox Continuous play to allow the songs to play one after the other, to the end of the list of songs. To start the player, I double click on the first in the list (see on mouseDoubleUp script below), and it sets the player filename with the path and MP3 filename. When it finishes playing that song, it should go to the next line in the list and start playing that song. I have a on playStopped script to handle that. But there's a problem with it. It skips a line and starts playing that song. Here's the script for that: on playStopped local TotalLines, tLineNum, tCPlay, tSong put the number of lines of fld SongList into TotalLines put the hilitedLine of fld SongList into tLineNum add 1 to tLineNum put the hilited of btn Continuous Play into tCPlay if tCPlay then if tLineNum = TotalLines then set the hilitedLine of fld SongList to tLineNum --PlaySong put fld MusicFolder into MusicFolder put the selectedText of fld SongList into tSong replace tab with empty in tSong set the fileName of player Player to MusicFolder slash tSong set the currentTime of player Player to zero start player Player else set the hilitedLine of fld SongList to 1 end if end if end playStopped Here's the peculiar behavior: When the LC engine gets to set the filename of player..., the engine goes back to the on playStopped line and executes from the top again. When it gets to set the fileName of player... again, it continues on to start player..., then goes to end playStopped, which it should do. But then it goes to the line set the currentTime... line and then the next line start player Sometimes when it is playing the song, there's no audio at all. Here's the SongList field script to get the player started: global MusicFolder on mouseDoubleUp local tSongTitle put fld MusicFolder into MusicFolder put the selectedText of me into tSongTitle -- SongList field is set as a table. -- First column is the MP3 filename and the 2nd column contains .mp3 -- This is for asthetics, so you don't see the .mp3 in the list. replace tab with empty in tSongTitle set the fileName of player Player to MusicFolder slash tSongTitle set the currentTime of player Player to zero start player Player end mouseDoubleUp How do I stop the on playStopped script from repeating itself and get it to play without skipping a line? Any and all help appreciated, Mark Stuart ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
LC and mobile development what-not
Hi all, I'm just starting to try my hand at mobile development, using LC 4.6.4. (I won't upgrade LC until I see how mobile development goes) I've read the Android Release Notes for this version of LC and didn't see anything about what font name and size to use for a mobile application, starting with Android since I'm on Windows. Font - I used Tahoma and size 14. It's way too small for my HTC Incredible phone. What is recommended here? (24 seems OK). Button size - what size should a button be? Quite large I now know since the default size I could hardly see on my device. I tried 50 px. It seems OK. Table fields - what are the defaults for mobile? What about the scroll bar width? What about gesturing on the table control itself to scroll down and up? How is that done? Do I set vertical scroll bars at all? These are just a few of the things I've tried so far. There must be a document that outlines the mobile platform layout defaults. Even better would be the IDE reading the Application Settings and knowing there is a mobile platform selected and set the properties palette appropriately. Or is this all trial error for each developer? :( Regards, Mark Stuart ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Reading the First Line of a DataGrid
Thanx Peter and Bob for the suggestions. LC: 4.6.4 I tried all suggestions but unfortunately, they're not working. dgHilitedIndex sets the line to the added sequence line, which in my case is the last line because the DataGrid is sorted descending order. The most recent record is at the top of the DataGrid. Both dgLine and dgHilitedLine select the first line in the DataGrid, which is the desired effect. Here's what I tried: set the dgLine of grp DataGrid to 1 send mouseUp to grp DataGrid dispatch selectionChanged to grp DataGrid and set the dgLine of grp DataGrid to 1 dispatch selectionChanged to grp DataGrid --send mouseUp to grp DataGrid Both scenarios the DataGrid selectionChanged parameter: HilitedIndex had no value. If you all have any other suggestions, they'll be very much welcomed. Regards, Mark Stuart ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
[RESOLVED] Reading the First Line of a DataGrid
Reading the rev-list, I found a reference to: dispatch selectionChanged to grp DataGrid with var Notice the with var So I've modified my command to: put the dgHilitedIndex of grp DataGrid into firstLineNum dispatch selectionChanged to grp DataGrid with firstLineNum This passes the DataGrid index to the selectionChanged and allows the dataArray of the DataGrid to be fetched successfully. This doesn't matter how the user has sorted the DataGrid. Thanx for your help Bob and Peter. Regards, Mark Stuart ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Reading the First Line of a DataGrid
Hi all, I'm trying to get the first line of a loaded DataGrid to be selected. At the end of the script that loads the DataGrid, I have the following 2 lines: set the dgLine of grp DataGrid to 1 send selectionChanged to grp DataGrid I've also tried: set the dgLine of grp DataGrid to 1 dispatch selectionChanged to grp DataGrid This really isn't selecting the line at all. How do I know, because in the selectionChanged handler of the DataGrid I'm using the answer command to display the arguments of the handler: HilitedIndex and PrevHilitedIndex. These values are empty using: answer HilitedIndex: HilitedIndex cr PrevHilitedIndex: PrevHilitedIndex So how do I get the first line of a DataGrid to be selected? Regards, Mark Stuart ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
SQL question
on Mon Sep 17 10:59:49 CDT 2012, Klaus on-rev wrote: I am wondering if it is possible to search the complete table instead of a particular column. Know what I mean? Like this pseudocode: ... SELECT * FROM Persons WHERE ANY_COLUMN LIKE 'sa%' ... Thanks for any hints or workarounds if this is not possible ;-) Klaus try concatenating the columns like this: SELECT Column1, Column2, Column3 FROM Table WHERE (Column1 + Column2 LIKE 'MyCriteria%') But the column data types must be the same for concatenation. Therefore CASTing column types into the same data type should work. Mark ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Stack to read offline the LiveCode Forum
Alejandro wrote: Does exists a LiveCode stack to read offline all the LiveCode forum postings? Alejandro, if you go to this link, I mentioned that I had an application that reads the mail list. Currently, it doesn't have the offline feature, but if folk are interested in that, I would add it. http://lists.runrev.com/pipermail/use-livecode/2011-September/162079.htm l If you can't download the application, let me know and I'll email it directly to you. Regards, Mark Stuart ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Using a check box in a datagrid column header
Glen wrote: I was wondering if it is possible to use a check box as a column header for a datagrid. This is where the user can select or deselect all lines in the datagrid instead of having to do it on the individual basis. thanks, Glen, try this DG lesson and see if that helps what you are trying to do. http://lessons.runrev.com/s/lessons/m/datagrid/l/8411-How-Do-I-Display-a-Contextual-Menu-When-the-User-Clicks-on-a-Column-Header- The lesson title is: How Do I Display a Contextual Menu When the User Clicks on a Column Header? It's not what you are looking for, but may be an alternative. Regards, Mark Stuart -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Using-a-check-box-in-a-datagrid-column-header-tp4129735p4130600.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Formatting ChordPro music charts
Jan, you are brilliant. Thank you very much for the script, it works exactly as expected. Even with chords like Dsus2, F#, Bb, Cm7, etc. So thanx again. Now to finish this project... another story. Regards, Mark Stuart -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Formatting-ChordPro-music-charts-tp4014902p4016678.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
How to set tab positions in the RTFtext?
Hi Roger, Tthe tabstop is \tab in WordPad? What are you using as a tabstop in the HTML field? Just replace it with \tab, right? ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
[ANN] iOS and Android apps
Hi John, I'd like to download your app to my Android phone, But after using the search word READ!, there were so many in the result list I gave up. Are there some key words that I can search for your app with? Regards, Mark Stuart ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
defining and using globals in an application
Hi all, Well, I didn't expect such a passionate response from a lot of folk about globals and related containers of variable values. So point taken about globals. Very interesting ideas and concepts that I very much appreciate, because I learned something today from y'all. Stephen - interesting concepts from Andre. Jerry J - many software development tools allow values of variables to be passed to other programs, functions, you name it, they are there. Specifically, the one I use every day - MSE's eDeveloper and their new version: uniPaaS. They allow the declaration of globals, which the values can be obtained from anywhere in the entire application. Jacqueline - are you saying that two different applications (as executables or as .rev/.livecode stacks) using the same global name can be referenced by one another, and share the same values? That's bizarre. Francis - I like the concept. I will give it a go. Richard - I like your concepts. I'll give it a go. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
defining and using globals in an application
Hi all, To me, once globals are defined and put with a value, their value should be available from any stack within the application. So far, so good. But the problem arises where, within other stacks script, if you don't define the required global again, the desired value is not there. The result is the name of the global in the stack where that global was first defined. Not good. So why aren't the values of global's, global to the application? In other software development languages, this IS the case. Wouldn't you want the same in LC? I would. Why isn't this the case in LC? Regards, Mark Stuart ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
defining and using globals in an application
Hi Slava, You wrote: You said the value of that global not be available anywhere else, but the value IS available everywhere else. You just have to declare that this is a global variable before using it, so LC knows where to fetch that value. Again, my point exactly. You HAVE to declare the global again, and again where needed. I'd rather it once declared and a value put into it, the value be available elsewhere WITHOUT having to declare it again. It just sets up the developer for an easy falldown. The time it takes, especially for a different developer in the same application or coming back some time later, to find the declared global name. Which brings up a whole new issue of intelli-sense or type-ahead variable-name-while-typing-a-script convention. But I won't go there at this time. Regards, Mark Stuart ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
create a blurred box 'drop shadow' grc?
on Tue Jul 5 16:06:20 CDT 2011, Chipp Walters wrote: Does anyone know if you can create a blurred box using a grc and blend/effects settings which overlays another image correctly? Sure. BTW, isn't that what you created already in the image? In the end it depends on what your final result is, but here's my results. I made it to look like yours, in which I succeeded. I placed an image on the stack. Selected a bmp image for it. Then placed a graphic over it. Graphic Effects settings: dropShadow: checked color: black blendMode: normal opacity: 220 filter: box3pass (it really doesn't change too much) spread: 84 size: 27 distance: 0 angle: 0 knockout: checked Blending settings (unchanged) Gradient (unchanged) Colors Patterns: Fill: black That's it. Regards, Mark Stuart ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
LiveCode development for Android - compatible controls
Hi All, I'm having a go at developing for the Android platform, and doing this on WinXP, using LC v4.6.2. I've gone thru the Hello World lesson on the runrev site - it worked fine in the IDE and emulator. Now as I continue the discovery period, I'm trying to find which controls work on Android. As in the lesson above the button and answer dialog work. I've created a new stack with an option button and a scrolling field. The idea is to load data into the field based on a selection from the option button. In the option button, I created a menuPick script and tested it on the Android emulator. The script wouldn't fire. I then changed to a mouseUp script in the button and that didn't fire either. The button script is simple: on menuPick pSelection answer pSelection end menuPick I put the same script into a on mouseUp in the option button. All this works in the IDE, but not on the Android emulator. So my question is: how many are finding these stumble blocks and where can I find more lessons/examples of how all this works. Run Rev lessons are lacking in this area. Regards, Mark Stuart BTW: check out http://www.basic4ppc.com A very complete package for the Windows and Android development environment. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
R: using animated gif for a cursor on Windows
on Fri Jun 10 08:24:20 CDT 2011, baccheschi at tin.it wrote: perhapse may help you.. putting it on a .gif script on mouseUp set the repeatcount of img ID its_ID to -1 set cursor to 0 repeat until the mouseclick set the loc of img ID its_ID to the mouseloc end repeat set the repeatcount of img ID its_ID to 0 set the currentframe of img ID its_ID to 1 set cursor to arrow end mouseUp Hi Mario, Thanx for your reply. I used your script and it didn't quite do what I was looking for, but I will try and make it work. Running your script, I notice my animated gif still does not animate. I did submit a Tech Support request to RunRev, and Heather replied with ...I guess we don't support it. Unless someone knows how to make animated gifs animate on Windows OS as a cursor, I guess I'm out of luck for now. Regards, Mark Stuart ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
using animated gif for a cursor on Windows
Hi All, I'm using an animated gif (rotating dot in a circle) with the cursor on Windows XP, but the gif doesn't animate in LC v4.6.1. the script: on openStack lock cursor set the cursor to 1019 -- do stuff unlock cursor reset cursors end openStack I guess the question here is: does LC support animated gif's on Windows OS in a cursor? Or am I missing something in the script or the gif itself? Regards, Mark Stuart ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
How do you build the tabs like in the script editor
on Mon Jun 6 23:31:53 CDT 2011, J. Landman Gay wrote: If you view UI elements in lists, the group Script Tabs is in revSETemplate on card Main. Thanx for the heads up on this Jacqueline. I noticed the Script Tabs group is using a behavior button - several lines of code. The objects (buttons) are added and removed from this group as needed. I've started prototyping an example, and it seems the best approach for this kind of thing. If you'd like the example stack when I'm done, please let me know. LC 4.6.1 Regards, Mark Stuart ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
How do you build the tabs like in the script editor
on Mon Jun 6 10:59:46 CDT 2011, J. Landman Gay wrote: I think the OP means horizontal tabs, since that's what the LiveCode editor uses. That's as simple as setting up a tab button where each tab opens either the correct card, or shows the correct group. Hi Jaqueline and Richard, Thanx for the replies. The tabs will be dynamically added and removed with a close button on each tab. The document content on each tab is not editable, viewable only. So it seems like the tab object is not really a tab object in LC, but rather a grouped object of buttons: one for the tab and one for the Close image button. I think I'll have to have a go at building this. Does anyone have any more ideas on this? Regards, Mark Stuart ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
How do you build the tabs like in the script editor
Hi all, It's a while since I've been on the list but anyway, how would I go about building the same tab interface (multiple document interface) as the LC script editor? As the user wants to open a document, they would have the choice of overwriting the existing open document, or opening the document on a new tab. The tab would have a close button on it just like LC's. Each opened document would belong to one tab. They user could potentially open as many documents as they want. As the number of opened tabs exceeds the stack width, two new navigation tabs would have to display at the far right. This would allow the user to bring into view those tabs further out to the right, and the other of the 2 navigation buttons would allow the user to view those tabs to the left. Anyone done such a thing? Regards, Mark Stuart ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
using mySQL on a web-based server
on Mon Feb 28 17:29:46 CST 2011, tkuypers at telenet.be wrote: The mySQL is using its default port (3306), and everything is working ok. Except with some of my bigger companies, who closed almost everything on their firewall, including (of course) port 3306 :-( Try this: get revOpenDatabase(mysql,host:80,MyDatabase,username,password) Hi Ton, Looking at the Documentation, you can define the host port number in the revOpenDatabase command. You could hard code the port number in the code or use a variable that is read from the application settings/preferences. HTH, Mark Stuart ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode