Option menu in datagrid
"...* table-style datagrid and each row includes an option menu * *button"* I assume you mean that your DG table has a column that contains an option menu button (which, of course, appears in each row). Edit the default column behavior of the column that contains the option button. Edit the FillinData handler to include something like If conditionA then set the text of button 1 of me to the text of field "OptionText1" else set the text of button 1 of me to the text of field "OptionText2" end if Don't forget to refresh the data grid. Tested; works! Regards, Sri ___ 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: 8 datagrid text properties
Hi Mike: Have you consulted the DataGrid help document (or dictionary)? set the dgProp["Property Name"] of group "DataGrid Name" to thePropertyValue where you have a slew of properties you can set: "header height" "header margins" "header text color" "header text font" "header text style" "header text size" "header background color" "header background hilite color" etc. Similarly to set the properties of body text, you have "text color" "text font" "text style" "text size" "hilited text color" etc. I tested. They work in LC8. Regards, Sri -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/8-datagrid-text-properties-tp4710203p4710247.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: Goofy question about Datagrids
Bob Sneidar-2 wrote > Well I discovered that what you CANNOT do is call a user-defined command > or function that has not been loaded yet, as in a front or back script > that has not been inserted yet. If I do, when I open the stack I get an > error. I suppose I could do the inserts in a preopen handler, but the > scripts are contained in buttons in the stack that is not open yet. Not > sure how that would play out. > > Bob S Bob, May be I have not understood what you are trying to do, but a user-defined function in the same script as the FillinData handler of the column in question works perfectly for me. <http://runtime-revolution.278305.n4.nabble.com/file/n4710097/before.png> Above is the original phone number format. I tried to convert it by adding an fConvert function in the column behavior of the "Phone" column, as follows: on FillInData pData -- set the text of field 1 of me to pData set the text of field 1 of me to fConvert(pData) end FillInData function fConvert pData set the itemDel to "-" return "(" & item 1 of pData & ")" && (item 2 of pData) && (item 3 of pData) end fConvert It works perfectly; here's the image. <http://runtime-revolution.278305.n4.nabble.com/file/n4710097/after.png> I hope the images show in the post (My post wouldn't make any sense otherwise!) Regards, Sri -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Goofy-question-about-Datagrids-tp4709954p4710097.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: Goofy question about Datagrids
Hi Bob: Make it set the text of field 1 of me to just to be sure. You can have a group of more than one object in the cell. Regards, Sri -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Goofy-question-about-Datagrids-tp4709954p471.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: Goofy question about Datagrids
Bob Sneidar-2 wrote > I store datetime data in "international" format, but I want to display it > in a kind of short date/time format. .. I would need to > display a value one way while leaving the underlying format as is. > > Bob S on FillinData pData set the text of me to fConvert(pData) end FillinData function fConvert pDate /*convert the original format to display format*/ end fConvert Regards, Sri -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Goofy-question-about-Datagrids-tp4709954p4709998.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: Goofy question about Datagrids
1. The underlying data structure is in the form of an array (dgData). So, anytime there is frequent access to edit, calculate, and re-display results, array will have an edge over list. This would be even better if LC introduced additional array manipulation commands such as (multidimensional) matrix multiplication, etc. 2. Individual columns can be populated using their own rules (FillinData). Thus, it is possible, say, to color a row green if the email column of the row data contains "richmond" 3. Since you can have buttons, checkboxes, images, graphics, etc., in a cell (not just text), you can have different tools show up in a cell (column-row) depending on the value of an entry in a different cell in that row. 4. All this with DG table. DG form can do much more, but is not comparable to a spreadsheet and so is not relevant to your query. Regards, Sri -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Goofy-question-about-Datagrids-tp4709954p4709993.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: Suicide
http://forums.livecode.com/viewtopic.php?f=7=25742=133791=harakiri#p133783 Regards, Sri -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Suicide-tp4707891p4707941.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: What Newbies Expect
Warren Samples wrote > There are several people on the > list wose habit is to start new topics by replying to a message in a > current thread rather than starting a new thread by posting a "new" > message. Ah, that must be it! I don't see it too often, but now and again a thread has different subject titles for different messages in it! As I start reading them without really looking at the subject line each time, a message makes no sense to me and I feel I have fallen down a rabbit hole! Regards, Sri -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/What-Newbies-Expect-tp4704871p4706436.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: What Newbies Expect
I am reading this thread on the web and I find two other threads (by Ray Horsley-2) entangled with this one. What is going on? Do others see this? Regards, Sri -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/What-Newbies-Expect-tp4704871p4706430.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: "Responsive" Browser Widget
Sannyasin Brahmanathaswami wrote > Perhaps we need to create the browser widget to the new > orientation/size, set the URL, *after* the stack is resized to the new > rect, create the browser widget and then delete it again before switching > orientations Why not have two (sub)stacks, one for each orientation, each updating the other, but only one of them visible, depending on the orientation? Is this a feasible strategy? Regards, Sri -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Responsive-Browser-Widget-tp4706362p4706370.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: use LiveCode list
It has always been my impression that this list IS for and by advanced users of LiveCode. While I follow this list, I always ask my questions (which is usually of the Beginner variety) on the Forum. Regards, Sri -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/use-LiveCode-list-tp4705871p4705872.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: [ANN] New IRC channel for LiveCode Open Source users & contributors
Oh, I guess the github link given there is the archive or the conversations! -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/ANN-New-IRC-channel-for-LiveCode-Open-Source-users-contributors-tp4704225p4704541.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: [ANN] New IRC channel for LiveCode Open Source users & contributors
Are the conversations archived? Or, is it realtime only? -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/ANN-New-IRC-channel-for-LiveCode-Open-Source-users-contributors-tp4704225p4704540.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: LC8 App Interactive Lesson - issues
Whenever the next instruction doesn't appear automatically, click on an empty area of the Property Inspector (or a LiveCode area currently being worked on), and the instruction appears. Obviously, a minor glitch, but one that can trip up a new user. Regards, Sri -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/LC8-App-Interactive-Lesson-issues-tp4704312p4704388.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: Difficulty using Livecode.com
I wish LC would consider reorganizing its website to display a multi-stage nested menu on its main page. It may be complex to create (and maintain), but it would give visitors (new and repeat) a bird's eye view and a way to quickly go where they want. I know nested menus are frowned upon by web design gurus, but I think it will add to the LC website's usability. Regards, Sri -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Difficulty-using-Livecode-com-tp4702909p4702976.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: Using the Widget to display charts
Very interesting! Thanks, Sri -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Using-the-Widget-to-display-charts-tp4700428p4700436.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: An idea for the project browser
More: Option-click on an object would open another PB with the clicked object selected. Drag would move and Option-drag would copy an object (between the PBs). Regards, Sri -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/An-idea-for-the-project-browser-tp4699284p4699286.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: styling text within an LC script
niconiko wrote > Can an LC script italicize the Italian while leaving the English as is, so > that the resulting multi-styled combined text can be copy-pasted from an > LC > text-object to another doc? Yes. Drag a table field onto the card and name it "Table1" Create a button called "Test". Put the following code into the script of the button "Test" Click the button "Test" !!! --- on mouseUp local tText -- create tab-delimited text put "Paradiso.01 1" & tab & "La gloria di colui che tutto move" & tab & "The glory of the one who moves all things" into line 1 of tText put "Paradiso.01 2" & tab & "per l’universo penetra, e risplende" & tab & "permeates the universe and glows" into line 2 of tText put "Paradiso.01 3" & tab & "in una parte più e meno altrove." & tab & "in one part more and another less." into line 3 of tText -- put it into a table field set the tabStops of field "Table1" to "100, 300, 500" set the text of field "Table1" to tText -- style as necessary repeat with i = 1 to 3 set the itemDel to tab set the textStyle of item 2 of line i of field "Table1" to "italic" end repeat end mouseUp Regards, Sri -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/styling-text-within-an-LC-script-tp4698642p4698652.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: Livecode all around the world
If you assign a word in, say, Mandarin for every LiveCode-specific word or phrase (keyword, command, message, etc.), it will be a cheap (if stilted) solution to the problem. The added advantage is translation of an entire application script to any language at the click of a button and back. There are clear limitations to this approach, of course, but you can't beat the cost-benefit. Regards, Sri -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Livecode-all-around-the-world-tp4698473p4698487.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: [ANN] Text-file DBs
Robert Brenstein wrote > ... Do you have any files that you can share? +1 By any chance, you can record and throw it on YouTube? Something I'd really like to attend. Only 2500 miles away! Regards, Sri -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/ANN-Text-file-DBs-tp4698379p4698484.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: Livecode all around the world
RH wrote > I would not go further then that, just replacing word by word. But I > wonder > how that would sound in German for example: "put x into button y" - "Lege > x in Knopf y"? Too funny. There is no equivalent even for a simple word > such as "put" or "button" which would give exactly the same idea. I mean a 1 to 1 correspondence but not word for word. It can be a camelCase phrase (as long as it needs to be to make sense) for word. Of course, it would still be "unnatural" language approach! But, it might be better than "English or nothing" option. Some languages are going to lend themselves better than others, but imagine if we have this option in Mandarin, Spanish, Portuguese, and Hindi. If even a small fraction of non-English speakers from those milieus are tempted to give LiveCode a try, it would be worth it. Remember, at any time they can click a button and the entire script appears in English. Since no one (no programmer, that is) is completely English-ignorant, switching back and forth will facilitate learning and using the language and eventually switching to English script. Regards, Sri -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Livecode-all-around-the-world-tp4698473p4698507.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: Application Data
Peter: Will this work? 1. Use windowShape property to create your "application" stack with a rectangular hole in the middle for the "user" stack. 2. Constrain the location and dimensions of the user stack so it stays within bounds when the user resizes it. 3. Use mouseEnter and mouseLeave to activate the respective stack. Regards, Sri -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Application-Data-tp4698191p4698335.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: Two great tips, one fantastic source...
Very useful. Thank you, Bob! Regards, Sri -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Two-great-tips-one-fantastic-source-tp4695475p4695476.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: How to resize the columns of a datagrid?
You may want to try this: 1. Save the original width of datagrid in a custom property cOldWidth. 2. In the datagrid script, handle resizeControl: on resizeControl local tFraction put (the width of me / the cOldWidth of me) into tFraction repeat for each line tLine in the dgProp[columns] of me set the dgColumnWidth[tLine] of me to the round of (tFraction * the dgColumnWidth[tLine] of me) end repeat Make sure that the minimum column width and column resizablity properties are properly set. I haven't tried this out. Hope it works. The idea is to handle the change under resizeControl Regards, Sri -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/How-to-resize-the-columns-of-a-datagrid-tp4694576p4694577.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: Indy License upgrade
Peter: Heather must have missed your email. Same situation, I wrote to support and they have combined the licenses and extended the renewal date under the new, price lock-down license. You may want to contact them again. Regards, Sri. -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Indy-License-upgrade-tp4694286p4694468.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: Referencing a control name
Hi Thierry: It does exactly the same as my example - whether you put it in a button or from the message box. It refers to the field object without the parenthesis, and to the button object with parenthesis. This is due to the fact that the parenthesis is evaluated before the rest, as I had hinted. Am I missing something? Sri. -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Referencing-a-control-name-tp4694325p4694340.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: Referencing a control name
Wprothero wrote Sri It may be bad practice to use the word field in the name of a field. However, i suspect there's more to it. Hi Bill: This is just a quick example I contrived to prove a point. I never use field for a field's name; I give (very) descriptive names to my objects! Regards, Sri. -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Referencing-a-control-name-tp4694325p4694341.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: Referencing a control name
The parenthesis placements are key in such references as they change the order of command processing. For example: 1. Create a button Test1 of width 82 (say) 2. Create a field Field1 of width 168 (say) containing the text: /button Test1/ 3. Type into message box put the width of field Field1 Answer: 168 4. Type into message box put the width of (field Field1) Answer: 82 Regards, Sri -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Referencing-a-control-name-tp4694325p4694334.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: Datagrid Form
Hi Pete: I'd like to see the code (stripped down version). Also, did you try to manually refresh the datagrid and see (after stepping over some code)? Regards, Sri -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Datagrid-Form-tp4693596p4693598.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: curiosities in object reference
This works: put deux into word 2 of control (the layer of the long id of fld Field1) Regards, Sri pmbrig wrote Is there any way I can put deux into word 2 of the field without jumping through hoops, .. or am I stuck with hoops? -- Peter Peter M. Brigham pmbrig@ http://home.comcast.net/~pmbrig ___ use-livecode mailing list use-livecode@.runrev Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/curiosities-in-object-reference-tp4691266p4691322.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: Repeat syntax addition
Peter Haworth wrote Wouldn't it be nice if you could: repeat for each line rLine in tLines where rLine begins with xyz . end repeat It would be even nicer if we could have the more general form repeat for each line rLine in tLines [/condition/] [/transformation/] ... end repeat where [condition] is an optional condition that returns a boolean, and [transformation] operates on the line to transform it. Thus, it could be useful as a filter, universal transformer, or conditional transformer. Regards, Sri. -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Repeat-syntax-addition-tp4690850p4690880.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: Does 'exists' work on arrays?
The argument of the exits() function should be an object. exists(myArray) should work. myArray[gpx] is a property, I think. if gpx is among the lines in the keys of myArray should work. Regards, Sri. -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Does-exists-work-on-arrays-tp4690174p4690175.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: Datagrid Help
1. Load data from the database into tArray. 2. Set the dgData of the data grid to tArray to display the data. Make a back up of the initial data to tBackupArray. 3. After the user edits the data in the data grid, say, he clicks a button Save Write the dgData of the data grid to the database. 4. If the write is successful, put the dgData of the data grid into tBackupArray. If the write is unsuccessful, set the dgData of the data grid to tBackupArray. Regards, Sri -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Datagrid-Help-tp4690006p4690012.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: Datagrid Help
As Peter points out http://lessons.runrev.com/m/datagrid/l/7337-how-do-i-save-changes-the-user-makes-in-an-editor-field-to-an-external-data-source explains how you can i) override EditFieldText with only one parameter, in which case it won't automatically save and refresh the data grid, but you'll have to ii) edit closeFieldEditor to write to the database and, if successful, update dgData and then set it, which will refresh datagrid. But, wouldn't the problem remain, that other users simultaneously updating a (different) cell of the datagrid would lose their edits as soon as you save one edited cell and refresh the datagrid (by setting the dgData)? Each user editing a copy of the datagrid would likely resolve this problem. Regards, Sri -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Datagrid-Help-tp4690006p4690066.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: Sorting Columns
dunbarx wrote An easy way is to extract the full dataset, perhaps with the dgData. This will give you a tab and return delimited list. 1. I think Craig meant dgText (dgData is an array). 2. Don't forget to set itemDel to tab Regards, Sri. -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Sorting-Columns-tp4689614p4689631.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: [Datagrid] How to change an objects owner from a Datagrid to a Card
I am not sure why go to all that trouble to retrieve a misplaced object. Could we not just delete it by using the message box? if exists(button Next) then put the owner of button Next into tOwner delete button Next of tOwner of this card Is there something I am missing? Regards, Sri. -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Datagrid-How-to-change-an-objects-owner-from-a-Datagrid-to-a-Card-tp4689331p4689451.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: Use MenuPick properly
-- Here's using an array put revDataFromQuery(tDataBaseID, SELECT displayItem, storeItem FROM tableName) into tArray -- Note that displayItem is what you want to display in the menu, storeItem is the corresponding value you want to store; the data is not an array yet. split tArray by return and tab -- now, tArray has displayItem as the array key and storeItem as the array element -- Now you can display the keys of tArray in the menu in the order you like -- and save tArray[chosenMenuItem] in the database. Regards, Sri. -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Use-MenuPick-properly-tp4688589p4688596.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: Data grid Line or Index
Since arrays relate to how data is stored and not how data is displayed, I'd think no display-related factors should affect them. I'd expect dgData to stay the same (i.e., not updated), regardless of how the user manipulates the table displayed. (Any edits are incorporated through the index). Regards, Sri. -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Data-grid-Line-or-Index-tp4685113p4685115.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: Speed testing: Fastest search method
Hi Mike: In your method 1, . repeat for each item tItem in tDeletions delete line tItem of tDat --delete the lines after the repeat for each. end repeat ... the line numbers of tDat will get rearranged dynamically after each deletion, whereas the line numbers contained in tDeletions are static. Won't it mess up the whole thing? Regards, Sri -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Speed-testing-Fastest-search-method-tp4682719p4682730.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: Who says LiveCode ain't English!
Add to Bernd's code: if morning contains headache then call doctor else order beer end if -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Who-says-LiveCode-ain-t-English-tp4682122p4682164.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: OpenControl
Will this work? 1. Create an invisible button in your group named, say, Card Change. 2. On openControl, Set the script of the current card to add in the on closeCard handler the statement: send mouseUp to button Card Change of group myGroup 3. When the button received the mouseUp message on closeCard of the current card, a) it goes into a watch mode to see if the current card has changed; and b) when it changes, it resets the contents of the group, and c) modifies the closeCard of the new card. Just trying to exercise my brain cells! Sri. -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/OpenControl-tp4681692p4681714.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: OpenControl
Hi Jacque: Wilstrand's method seems to work (with a little modification). In the following, oldCardID is a custom property of the group. The first focusOut is issued on closeCard. on focusOut local tID put the ID of this card into tID if tID is not the oldCardID of me then set the oldCardID of me to tID -- here, change the contents of the group, as necessary else send focusOut to me in 50 milliseconds end if end focusOut Let me know if this doesn't serve your purpose. I am just trying to learn from all you experts on this use group. Sri. -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/OpenControl-tp4681692p4681736.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] Xojo
Importantly, Xojo's license terms are much better. You don't lose the commercial license if you stop renewing annually. You simply stop receiving the updates. -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/OT-Xojo-tp4678146p4678154.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] Xojo
Richard Gaskin wrote ... in practical terms the difference in proprietary licensing affects only a relatively small subset of users.. I don't know. People who want to develop iPad and iPhone educational apps, but cannot really recoup $500 a year ..., must constitute a significant population, I think. I invested some time learning LiveCode but have put it in cold storage for almost a year now, for this reason. Nearly 100% my target segment is iPad users. I could elaborate in some detail why this is so, but then the key point here is if people like me are really a small subset. I truly think if LiveCode comes up with a different licensing schedule, one that allows, for a much smaller fee, people to develop commercial iOS app of some restricted size or lines of code (a rough yardstick of project complexity), they will be pleasantly surprised by the response. iPad has a disproportionate enthusiasm market share when it comes to edu apps. Regards, Sri. -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/OT-Xojo-tp4678146p4678156.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] Xojo
Richard Gaskin wrote Let's find out - RunRev delivered almost exactly what you're looking for, at least as far as providing iOS deployment more affordably for non-revenue-producing apps: lt;http://livecode.com/membership/gt; Richard, Thanks for the link. I look at LiveCode website once a while to see what's new, but did not stumble onto this page. I went back to livecode.com home page and tried to navigate to the above page, and had some difficulty finding it! I was looking for a page that compares Community and Commercial editions (I have seen it before), but couldn't navigate to it from the home page. I wonder if most people who come to the website to find out about the licenses will actually end up with full information. Others have said it before, the live code website badly needs some help. Sri. -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/OT-Xojo-tp4678146p4678170.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] Xojo
Richard Gaskin wrote . If instead the app is to be sold commercially as part of a business, how can the business survive if it isn't making enough to cover the cost of design, development, marketing, and Apple's 30% cut for distribution? There is a segment between those who make free apps as a hobby (and a contribution to the field), and full-time programmers/businesses. There are programs that may be useful for narrow niches (e.g., low-incidence disabilities) that may still involve enough time and effort to warrant a modest price (which the users are willing to pay). Such programs are not profitable for professional programmers/businesses, but too involved for a strict hobbyist. Regards, Sri. -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/OT-Xojo-tp4678146p4678172.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] Xojo
Lynn Fredricks-2 wrote It comes from a very different mind set than LiveCode, and provides an excellent multi-platform, modern replacement for Visual Basic. LiveCode and Xojo both create multi-platform applications, but that's where the similarity ends. Conceptualizing applications is 100% different. The sort of issues that arise during development are 100% different. The goals of either...you get the idea. To help people who may considering both products, would you care to spill some more ink on HOW they are different? Thank you for your time, Sri. -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/OT-Xojo-tp4678146p4678174.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