Some questions about datagrid table under iOS
Hi, i noticed that it is not very comfortable to edit a row in a datagrid table under iOS. I have to double tap several times to get the field into the edit mode. And if i press return then the edit mode is left and i have to double tap more than once onto the next field to edit that field. Is it possible to go into edit mode without double tapping? And is it possible in any way to switch to the next field of that row without the need to double tap that field again? Regards, Matthias ___ 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
iOs and datagrids best practise?
Hi, I am starting to work on an iOs project and would really really like to use a dg there. I get it work in the simulator nicely, it renders... All fine. However, I would like to scroll it by touching the cells and then touchmoving along there? Has anybody done this? Any starters to try? Cheers, Malte ___ 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: [WOT] Warning - long winded discussion - was Re: Apple iPad announcement evokes yawn
When you see a 169 number, it's not being issued by DHCP - it's being issued by the Mac itself, because DHCP would not give it a number. If you're getting DHCP from one of the AirPort Expresses, then you'd want to use Airport Utility App (free download from Apple) to go in and increase the range of numbers that the device is issuing. Right now it might say something like: 10.1.1.1 to 10.1.1.10. And you'd change it to 10.1.1.1 to 10.1.1.200. Then you won't run out of numbers. --- Richard MacLemale Music = http://www.richardmac.com Programming = http://www.macandchee.se On Mar 9, 2012, at 12:15 AM, Kay C Lan wrote: As we are WOT and you guys are clearly Server savvy I thought I might pose a problem I have not been able to solve. I've posted on the Apple forums, at least twice dating back to Leopard, and have never received a response. Apple Genii have less clue than I do. Simply put, my home network seems to be limited to 10 devices (wired + WiFi). I understand there is a 10 user limit on AFP (non-Server), but I don't have 10 devices with File Sharing switched On (iTunes Sharing maybe, iPhoto Sharing less so). Apart from desktops (wired), laptops and iOS devices (WiFi), there is a TimeCapsule (wired), 2 x Airport Expresses (1 wired to network, the other via WiFi), a printer (wired) and an AV Amp (wired). The Expresses are suppose to have 10 User limit (WiFi) whilst the TimeCapsule is suppose to be limited to 50 Users (not clear if this WiFi or wired + WiFi). The problem is when too many of us are at home, someone will try and log into the network and not get a proper connection. DHCP allocates a 169.xx.xx.xx IP rather than a usual 10.0.x.xx. When I troubleshoot there is always 9 listed devices on the network, + the one doing the Listing makes 10 - the List includes the printer/amp/Airports, so this is Total DHCP clients, not just WiFi. If someone logs off, the other can log on. The TimeCapsule is set up to allocate a range of 30 numbers for the 25 devices in the house. The Express that is connected via WiFi is used to Airplay to outdoor speakers and rarely has any WiFi clients. The Express connected by wire is to cover a weak spot in the house and may have 2 or 3 WiFi clients. So my question is quite simple, is there a 10 device limit, and if so, if I bought a MacMini Server and placed it into the network would that limit disappear? (But then why aren't TimeCapsules advertised as 50 Users ONLY WITH OS X Server) If there is no 10 device limit, what is the likely cause of my problem. Does the TimeCapsule us AFP, if so how does it differentiate between the 50 User limit and the 10 AFP Limit? iOS devices don't display the TimeCapsule so they can't be using AFP, but because there now seems to be an iOS device epidemic we now seem to hit the limit more often :-( I might also mention that we are running a range of OSs from Tiger to Lion. ___ 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: [WOT] Warning - long winded discussion - was Re: Apple iPad announcement evokes yawn
On Thu, Mar 8, 2012 at 10:41 PM, Bob Sneidar b...@twft.com wrote: And what really eats at this long time mac aficionado is that soon I will be forced to upgrade. I LIKE Leopard/Snow Leopard! I don't wanna give it up! What bob said The only thing forcing me to upgrade is Apples silly decisions that you must be running the latest thing if you want to deploy apps for the Mac App Store or iTunes App Store... I don't need anything from Lion or Mountain Lion that I don't have on Snow Leopard. -- http://www.andregarzia.com -- All We Do Is Code. http://fon.nu -- minimalist url shortening service. ___ 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: [Now Seriously OT] Re: Apple iPad announcement evokes yawn
It works out that your two numbers were very close. With the current exchange rate, and the smaller US gallon, the UK diesel cost works out to about $8.66 per gallon. On 9 Mar 2012, at 14:43, Ken Corey wrote: That's 1.45 x 4.54 (to convert to gallons) x 1.57 ( from xe.com, to convert to dollars) = $10.33 per gallon, and my car holds about 18 gallons. Gallons are the exeception that proves the rule that everything is bigger in America. ___ 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: [WOT] Warning - long winded discussion - was Re: Apple iPad announcement evokes yawn
On Fri, Mar 9, 2012 at 1:36 PM, Jerry Jensen j...@jhj.com wrote: Which device is serving DHCP? Where does it get ITS IP#? How are the DHCP served addresses set up? Be sure there is only ONE DHCP server on your network. Everything else should bridge. Jerry, The TimeCapsule issues the LAN DHCP IPs and it get's it's WAN IP from a ISP provided modem. The two Airport Expresses are set to 'Extend a wireless network'. Richard, As stated before the current range of IP addresses (set in the TimeCapsule via Airport Utility - with the Expresses set to 'Extend a wireless network' mode there are no further setting available) is set to 30 a comfortable buffer over the number of devices. I don't think there is any point in setting it to 200 as basically what happens is, for instance, my iPhone always gets the same 10.x.x.xx IP allocated to it, if there are 10 devices on the network it gets a 169.xx.xx.xx IP and I can't do anything, as soon as someone logs off, if I switch the iPhone WiFi off and back on, it will be allocated the 10.x.x.xx DHCP IP it normally has. This is the same be it a desktop, PB, whatever. Note, I don't manually specify IP addresses, although I have tried it and it doesn't seem to make any difference. I leave the TimeCapsule to automatically assign IPs and it just seems to always allocate the same number to the same device. At this stage I've never seen (not that I thoroughly looked every single time) the last couple of IP address in the range allocated to any device - the TimeCapsule appears to have started with lowest number in the range and sequentually allocated numbers to each and every device. I don't run out of numbers, I just don't get the ones I'm suppose too. Thanks ___ 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: [WOT] Warning - long winded discussion - was Re: Apple iPad announcement evokes yawn
Your DHCP server is running out of leases. A lease is still current even if no one is using it presently, because the TTL has not yet expired. DHCP will typically hold a lease until it expires. The solution is to bridge your Airports to the LAN so that everyone is on the same subnet, and then have a single DHCP server somewhere on the LAN (the server will probably have one) that hands out all the leases. Don't have more than one unless you know how to set them up that way. Bob On Mar 8, 2012, at 9:15 PM, Kay C Lan wrote: As we are WOT and you guys are clearly Server savvy I thought I might pose a problem I have not been able to solve. I've posted on the Apple forums, at least twice dating back to Leopard, and have never received a response. Apple Genii have less clue than I do. Simply put, my home network seems to be limited to 10 devices (wired + WiFi). I understand there is a 10 user limit on AFP (non-Server), but I don't have 10 devices with File Sharing switched On (iTunes Sharing maybe, iPhoto Sharing less so). Apart from desktops (wired), laptops and iOS devices (WiFi), there is a TimeCapsule (wired), 2 x Airport Expresses (1 wired to network, the other via WiFi), a printer (wired) and an AV Amp (wired). The Expresses are suppose to have 10 User limit (WiFi) whilst the TimeCapsule is suppose to be limited to 50 Users (not clear if this WiFi or wired + WiFi). The problem is when too many of us are at home, someone will try and log into the network and not get a proper connection. DHCP allocates a 169.xx.xx.xx IP rather than a usual 10.0.x.xx. When I troubleshoot there is always 9 listed devices on the network, + the one doing the Listing makes 10 - the List includes the printer/amp/Airports, so this is Total DHCP clients, not just WiFi. If someone logs off, the other can log on. The TimeCapsule is set up to allocate a range of 30 numbers for the 25 devices in the house. The Express that is connected via WiFi is used to Airplay to outdoor speakers and rarely has any WiFi clients. The Express connected by wire is to cover a weak spot in the house and may have 2 or 3 WiFi clients. So my question is quite simple, is there a 10 device limit, and if so, if I bought a MacMini Server and placed it into the network would that limit disappear? (But then why aren't TimeCapsules advertised as 50 Users ONLY WITH OS X Server) If there is no 10 device limit, what is the likely cause of my problem. Does the TimeCapsule us AFP, if so how does it differentiate between the 50 User limit and the 10 AFP Limit? iOS devices don't display the TimeCapsule so they can't be using AFP, but because there now seems to be an iOS device epidemic we now seem to hit the limit more often :-( I might also mention that we are running a range of OSs from Tiger to Lion. Any help appreciated ___ 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 ___ 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: Some questions about datagrid table under iOS
You will probably have to roll your own method. It works the same way in the IDE. Bob On Mar 9, 2012, at 1:58 AM, Matthias Rebbe wrote: Hi, i noticed that it is not very comfortable to edit a row in a datagrid table under iOS. I have to double tap several times to get the field into the edit mode. And if i press return then the edit mode is left and i have to double tap more than once onto the next field to edit that field. Is it possible to go into edit mode without double tapping? And is it possible in any way to switch to the next field of that row without the need to double tap that field again? Regards, Matthias ___ 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 ___ 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: [WOT] Warning - long winded discussion - was Re: Apple iPad announcement evokes yawn
It sounds like there is more than one DHCP server, and that the other is rejecting the lease requests, but the way DHCP is supposed to work is, all servers respond with a DHCP offer, and the first one the client sees it uses. There is information in the broadcast traffic to indicate which server the client has accepted. If an offer is not acknowledged by a client, it is dropped. If you can get ahold of a 3rd party DHCP server that allows you to set up static IP addresses, you can just turn off the other DHCP servers and use that. I use IPNetRouterX, which is a full blown software router and firewall, and I just turn off the router and use the built in DHCP server. It's $100 though. I have a 400+ node network so it's worth it for me to control who gets what IP. Bob On Mar 9, 2012, at 7:54 AM, Kay C Lan wrote: On Fri, Mar 9, 2012 at 1:36 PM, Jerry Jensen j...@jhj.com wrote: Which device is serving DHCP? Where does it get ITS IP#? How are the DHCP served addresses set up? Be sure there is only ONE DHCP server on your network. Everything else should bridge. Jerry, The TimeCapsule issues the LAN DHCP IPs and it get's it's WAN IP from a ISP provided modem. The two Airport Expresses are set to 'Extend a wireless network'. Richard, As stated before the current range of IP addresses (set in the TimeCapsule via Airport Utility - with the Expresses set to 'Extend a wireless network' mode there are no further setting available) is set to 30 a comfortable buffer over the number of devices. I don't think there is any point in setting it to 200 as basically what happens is, for instance, my iPhone always gets the same 10.x.x.xx IP allocated to it, if there are 10 devices on the network it gets a 169.xx.xx.xx IP and I can't do anything, as soon as someone logs off, if I switch the iPhone WiFi off and back on, it will be allocated the 10.x.x.xx DHCP IP it normally has. This is the same be it a desktop, PB, whatever. Note, I don't manually specify IP addresses, although I have tried it and it doesn't seem to make any difference. I leave the TimeCapsule to automatically assign IPs and it just seems to always allocate the same number to the same device. At this stage I've never seen (not that I thoroughly looked every single time) the last couple of IP address in the range allocated to any device - the TimeCapsule appears to have started with lowest number in the range and sequentually allocated numbers to each and every device. I don't run out of numbers, I just don't get the ones I'm suppose too. Thanks ___ 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 ___ 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: a little help with find script
Hi Tim. If you don't care about finding 3 occurrences of FF in (FF__, _FF_, __FF) then try this: replace mySearch with cr mySearch cr in myString filter myString with mySearch put the number of lines of myString into theCount Bob On Mar 9, 2012, at 12:28 PM, Timothy Miller wrote: Oops. Forgot how to do this. Knew it once. I don't write scripts every day. Not even every month. Please remind me how to write a script that finds and records every instance of a string in field foo I know how to write repeat loops, but can't remember how to keep finding and then exit when the last instance is found. It would be helpful to add a user entry to the dictionary about this. If I can do it correctly and coherently, I'll add one myself. Many cards in this stack contain field foo Field foo may contain none, one or many instances of the string I will be looking for. I will not necessarily be on card one when I start searching and the cursor may or may not be inserted in field foo. Not all cards contain field foo Let's put all the foundchunks into tVar. I can take it from there. After char x to y of field z I need to add the id of the card where the foundchunk was found. It would be convenient to know the id rather than the number of field z. I can't remember if some function similar to the foundchunk includes the card ID of the foundchunk, or if I have to script it. The long foundchunk? Probly not... I don't need a correct working script, just a few hints. Your little hints save me hours of dictionary-studying and trial and error scripting. I really appreciate them. Tim ___ 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 ___ 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
change a locked group's rect without moving contained controls
Does that make sense? I've been working at this for a while now and can't figure it out. The answer is probably simple. I have a grouped control that I'm trying to reposition at run-time. The group's lockLocation is set to true. The controls contained in the group are positioned first. So all I need to do is change the group's dimensions so none of the controls are cut off. I've tried different combinations of changing the group's width/height. I've tried changing the rect. I've tried changing the boundingRect. The last works the best, except it doesn't also change the rect to match, so even though the bounding rect is correct, the group's *visible* rect is not. And everything else I've tried moves the entire group, including it's controls, which have already been move. Not sure if I'm even making any sense. What I'm ultimately trying to do is create a handler to resize controls at run-time when run on a mobile device. In this case, I'm currently mostly concerned with iPad (generations 1 and 2) vs. the new iPad. On the new iPad, I need everything to scale up to the higher resolution. My script works well so far, except in the case of a group with it's lockLocation set to true. Jacque, if you're reading this, have you had any similar problems in your apps? I ask you because I know you've written code to do this kind of thing. :-) Thanks, Chris -- Chris Sheffield Read Naturally, Inc. www.readnaturally.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: a little help with find script
I wrote this in HC about 1990, ported over to LC. It predated the godLike Rinaldi. Completely straightforward: function revFullFind tText,tFind,exactly --RETURNS LINE NUMBER , WORD NUMBER put 0 into counter switch exactly case true case empty repeat for each line tline in tText add 1 to counter if tFind = tline then put counter return after tResult end if end repeat break case false repeat for each line tline in tText add 1 to counter if tFind is in tline then repeat with y = 1 to the number of words in tLine if word y of tLine = tFind then put y , after temp end repeat delete last char of temp put counter , temp return after tResult put into temp end if end repeat break end switch return tResult end revFullFind tText is your field text, tFind is, well, you know, and exactly should be false in your case. And yes, you need to run this for each field in each card, but that should only add about six more lines to your handler. Craig Newman -Original Message- From: Timothy Miller gand...@doctortimothymiller.com To: How to use LiveCode use-livecode@lists.runrev.com Sent: Fri, Mar 9, 2012 3:32 pm Subject: a little help with find script Oops. Forgot how to do this. Knew it once. I don't write scripts every day. Not even every month. Please remind me how to write a script that finds and records every instance of a string in field foo I know how to write repeat loops, but can't remember how to keep finding and then exit when the last instance is found. It would be helpful to add a user entry to the dictionary about this. If I can do it correctly and coherently, I'll add one myself. Many cards in this stack contain field foo Field foo may contain none, one or many instances of the string I will be looking for. I will not necessarily be on card one when I start searching and the cursor may or may not be inserted in field foo. Not all cards contain field foo Let's put all the foundchunks into tVar. I can take it from there. After char x to y of field z I need to add the id of the card where the foundchunk was found. It would be convenient to know the id rather than the number of field z. I can't remember if some function similar to the foundchunk includes the card ID of the foundchunk, or if I have to script it. The long foundchunk? Probly not... I don't need a correct working script, just a few hints. Your little hints save me hours of dictionary-studying and trial and error scripting. I really appreciate them. Tim ___ 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 ___ 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: change a locked group's rect without moving contained controls
I think you have to get into the geometry manager for each object in the group and make sure they are not positioning themselves according to the group. Just a guess tho'. Bob On Mar 9, 2012, at 1:44 PM, Chris Sheffield wrote: Does that make sense? I've been working at this for a while now and can't figure it out. The answer is probably simple. I have a grouped control that I'm trying to reposition at run-time. The group's lockLocation is set to true. The controls contained in the group are positioned first. So all I need to do is change the group's dimensions so none of the controls are cut off. I've tried different combinations of changing the group's width/height. I've tried changing the rect. I've tried changing the boundingRect. The last works the best, except it doesn't also change the rect to match, so even though the bounding rect is correct, the group's *visible* rect is not. And everything else I've tried moves the entire group, including it's controls, which have already been move. Not sure if I'm even making any sense. What I'm ultimately trying to do is create a handler to resize controls at run-time when run on a mobile device. In this case, I'm currently mostly concerned with iPad (generations 1 and 2) vs. the new iPad. On the new iPad, I need everything to scale up to the higher resolution. My script works well so far, except in the case of a group with it's lockLocation set to true. Jacque, if you're reading this, have you had any similar problems in your apps? I ask you because I know you've written code to do this kind of thing. :-) Thanks, Chris -- Chris Sheffield Read Naturally, Inc. www.readnaturally.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 ___ 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: change a locked group's rect without moving contained controls
Well, I had a feeling I'd find a solution as soon as I posted my message. :-) Maybe there's a better way, but I finally realized I just need to temporarily store the starting location of each control in the group. Then I resize the group as needed, then follow that with resizing/repositioning the controls inside the group, using the saved starting location as a reference. Works like a charm. On Mar 9, 2012, at 2:44 PM, Chris Sheffield wrote: Does that make sense? I've been working at this for a while now and can't figure it out. The answer is probably simple. I have a grouped control that I'm trying to reposition at run-time. The group's lockLocation is set to true. The controls contained in the group are positioned first. So all I need to do is change the group's dimensions so none of the controls are cut off. I've tried different combinations of changing the group's width/height. I've tried changing the rect. I've tried changing the boundingRect. The last works the best, except it doesn't also change the rect to match, so even though the bounding rect is correct, the group's *visible* rect is not. And everything else I've tried moves the entire group, including it's controls, which have already been move. Not sure if I'm even making any sense. What I'm ultimately trying to do is create a handler to resize controls at run-time when run on a mobile device. In this case, I'm currently mostly concerned with iPad (generations 1 and 2) vs. the new iPad. On the new iPad, I need everything to scale up to the higher resolution. My script works well so far, except in the case of a group with it's lockLocation set to true. Jacque, if you're reading this, have you had any similar problems in your apps? I ask you because I know you've written code to do this kind of thing. :-) Thanks, Chris -- Chris Sheffield Read Naturally, Inc. www.readnaturally.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 ___ 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: change a locked group's rect without moving contained controls
Ah! Essentially a custom geometry manager. :-) Bob On Mar 9, 2012, at 2:33 PM, Chris Sheffield wrote: Well, I had a feeling I'd find a solution as soon as I posted my message. :-) Maybe there's a better way, but I finally realized I just need to temporarily store the starting location of each control in the group. Then I resize the group as needed, then follow that with resizing/repositioning the controls inside the group, using the saved starting location as a reference. Works like a charm. On Mar 9, 2012, at 2:44 PM, Chris Sheffield wrote: Does that make sense? I've been working at this for a while now and can't figure it out. The answer is probably simple. I have a grouped control that I'm trying to reposition at run-time. The group's lockLocation is set to true. The controls contained in the group are positioned first. So all I need to do is change the group's dimensions so none of the controls are cut off. I've tried different combinations of changing the group's width/height. I've tried changing the rect. I've tried changing the boundingRect. The last works the best, except it doesn't also change the rect to match, so even though the bounding rect is correct, the group's *visible* rect is not. And everything else I've tried moves the entire group, including it's controls, which have already been move. Not sure if I'm even making any sense. What I'm ultimately trying to do is create a handler to resize controls at run-time when run on a mobile device. In this case, I'm currently mostly concerned with iPad (generations 1 and 2) vs. the new iPad. On the new iPad, I need everything to scale up to the higher resolution. My script works well so far, except in the case of a group with it's lockLocation set to true. Jacque, if you're reading this, have you had any similar problems in your apps? I ask you because I know you've written code to do this kind of thing. :-) Thanks, Chris -- Chris Sheffield Read Naturally, Inc. www.readnaturally.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 ___ 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 ___ 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
Passing parameters by reference
I think I already know the answer to this so just confirming in case I'm missing something Let's say I have a handler with a parameter that is passed by reference, eg command xyz @parm1. If I try to pass an element of an array, eg xyz theArray[2], I get a runtime error. If, however, I pass the whole array, eg xyz theArray, all seems to work fine. That seems somewhat strange to me but apparently that's the way it is? -- Pete Molly's Revenge http://www.mollysrevenge.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: Apple iPad announcement evokes yawn
Funniest thing I've read in a while. Thanks for making me laugh. Bill Vlahos On Mar 7, 2012, at 7:49 PM, Andre Garzia wrote: I've heard that Google is dealing with that by shipping a new Android Emulator in the SDK. This new emulator will randomize the rect of the device upon every launch with values between 124 and 2048. =) ___ 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: Passing parameters by reference
Oh, that would be cool! Maybe the array could be global (or passed as a parameter) and the subscript passed. This works: add 1 to a[x] ... it seems like a reasonable thing to do. There might be problems I don't see right off, such as access to the same array at two different levels at the same time. Dar On Mar 9, 2012, at 4:30 PM, Pete wrote: I think I already know the answer to this so just confirming in case I'm missing something Let's say I have a handler with a parameter that is passed by reference, eg command xyz @parm1. If I try to pass an element of an array, eg xyz theArray[2], I get a runtime error. If, however, I pass the whole array, eg xyz theArray, all seems to work fine. That seems somewhat strange to me but apparently that's the way it is? -- Pete Molly's Revenge http://www.mollysrevenge.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 ___ 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
Editing very wide and tall stacks.
I need to edit the GUI on a stack that is very wide and very tall for a full screen app on a large screen that is much larger than my development environment. I also want to do some testing (click buttons, watch images fly around) on the development system. Ideas? (I suspect there is some feature I have missed over the years and I'm going to feel silly.) Dar ___ 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: Editing very wide and tall stacks.
Dar, Group everything, set the rect of the group to the card rect. Disable the scroll bars in full-screen mode. The only problem is that turning off Select Grouped Controls can be problematic, but you can probably write a front script for that. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Download the Installer Maker Plugin 1.7 for LiveCode here http://qery.us/za On 10 mrt 2012, at 02:16, Dar Scott wrote: I need to edit the GUI on a stack that is very wide and very tall for a full screen app on a large screen that is much larger than my development environment. I also want to do some testing (click buttons, watch images fly around) on the development system. Ideas? (I suspect there is some feature I have missed over the years and I'm going to feel silly.) Dar ___ 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: [WOT] Warning - long winded discussion - was Re: Apple iPad announcement evokes yawn
On Sat, Mar 10, 2012 at 2:32 AM, Warren Samples war...@warrensweb.uswrote: On 03/09/2012 12:27 PM, J. Landman Gay wrote: Ignore all that other advice. Just give a couple of your kids to the neighbors. This is the answer to so many problems, although not always conducive to good relations with the neighbors! Which is why I've taken the next logical step and am giving them to fiancés. First one at the end of the month :-) Unfortunately on the downside is that when the boyfriends/girlfriends turn up, they bring their WiFi enabled mobile devices with them :-( ___ 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: a little help with find script
Mark- (correcting the typo and...) on findit pTextToFind local x, y local tText local tFoundList repeat for each line tCard in the cardnames of this stack repeat with y = 1 to number of fields of card tCard put field y of card tCard into tText if pTextToFind is in tText then put tCard,y cr after tFoundList end if end repeat end repeat return tFoundList end findit -- -Mark Wieder mwie...@ahsoftware.net ___ 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: [WOT] Warning - long winded discussion - was Re: Apple iPad announcement evokes yawn
On Sat, Mar 10, 2012 at 12:24 AM, Bob Sneidar b...@twft.com wrote: It sounds like there is more than one DHCP server, and that the other is rejecting the lease requests, but the way DHCP is supposed to work is, all servers respond with a DHCP offer, and the first one the client sees it uses. There is information in the broadcast traffic to indicate which server the client has accepted. If an offer is not acknowledged by a client, it is dropped. If you can get ahold of a 3rd party DHCP server that allows you to set up static IP addresses, you can just turn off the other DHCP servers and use that. I use IPNetRouterX, which is a full blown software router and firewall, and I just turn off the router and use the built in DHCP server. It's $100 though. I have a 400+ node network so it's worth it for me to control who gets what IP. I've adjusted Lease time from x Days down to the current 30 min. It's made no difference, and as I say, as soon as someone logs off, the next person can log on and they don't get a new IP, they don't get the IP of the person that just logged off, they get the IP they had last night before they went to bed, which is the same after 8hrs of logged off sleep in the morning before they headed out the door. My guess is that the TimeCapsule remembers the IP it associates with each MAC address and doesn't bother handing out a new IP unless it's a new MAC. As such, boyfriends and girlfriends can turn up and log on, because there is still a buffer in the IP range I've allocated, as long as there are not already 10 devices logged in. Thanks everyone for your responses, this is a LC forum and this thread is WOT so I think enough is enough. At least you've saved me money because I was very seriously considering buying an OS X server. ___ 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: Editing very wide and tall stacks.
Wouldn't it be great if LC provided scrollbars at the card level... Pete On Fri, Mar 9, 2012 at 5:22 PM, Mark Schonewille m.schonewi...@economy-x-talk.com wrote: Dar, Group everything, set the rect of the group to the card rect. Disable the scroll bars in full-screen mode. The only problem is that turning off Select Grouped Controls can be problematic, but you can probably write a front script for that. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Download the Installer Maker Plugin 1.7 for LiveCode here http://qery.us/za On 10 mrt 2012, at 02:16, Dar Scott wrote: I need to edit the GUI on a stack that is very wide and very tall for a full screen app on a large screen that is much larger than my development environment. I also want to do some testing (click buttons, watch images fly around) on the development system. Ideas? (I suspect there is some feature I have missed over the years and I'm going to feel silly.) Dar ___ 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 -- Pete Molly's Revenge http://www.mollysrevenge.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: Passing parameters by reference
I have an update on this. If the parameter passed is simply the name of the array with no key qualifications, all is fine. LC only kicks up a fuss when you pass a qualified array like myArray[myKey]. Weird. Pete On Fri, Mar 9, 2012 at 5:05 PM, Dar Scott d...@swcp.com wrote: Oh, that would be cool! Maybe the array could be global (or passed as a parameter) and the subscript passed. This works: add 1 to a[x] ... it seems like a reasonable thing to do. There might be problems I don't see right off, such as access to the same array at two different levels at the same time. Dar On Mar 9, 2012, at 4:30 PM, Pete wrote: I think I already know the answer to this so just confirming in case I'm missing something Let's say I have a handler with a parameter that is passed by reference, eg command xyz @parm1. If I try to pass an element of an array, eg xyz theArray[2], I get a runtime error. If, however, I pass the whole array, eg xyz theArray, all seems to work fine. That seems somewhat strange to me but apparently that's the way it is? -- Pete Molly's Revenge http://www.mollysrevenge.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 ___ 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 -- Pete Molly's Revenge http://www.mollysrevenge.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
on-rev urgent problem -- Livecode contact address?
Sorry but, does anyone know the urgent contact address for Livecode? I recall having seen before some LC/On-rev contact-website with a dropdown menu listing, but can't find it now. And in case someone from LC is reading... Suddenly, despite years of having functioned perfectly, a Rev-engine based cgi (which includes calls to MySQL) on my onrev account is suddenly -- I've not changed anything! -- spitting out this error: [Fri Mar 09 20:41:42 2012] [error] [client ...] Attempting to load driver: /path/dbmysql.so Oddly, my other critical on-rev problem a few weeks back also happened on a Friday at around the same time. I didn't check the logs then so I don't know if the problems are the same or related. Thank you. -- Nicolas Cueto ___ 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: Editing very wide and tall stacks.
Hi, Mark! I don't understand the problem with select Grouped Controls. Mental block I guess. What is the issue here? Dar On Mar 9, 2012, at 6:22 PM, Mark Schonewille wrote: Dar, Group everything, set the rect of the group to the card rect. Disable the scroll bars in full-screen mode. The only problem is that turning off Select Grouped Controls can be problematic, but you can probably write a front script for that. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Download the Installer Maker Plugin 1.7 for LiveCode here http://qery.us/za On 10 mrt 2012, at 02:16, Dar Scott wrote: I need to edit the GUI on a stack that is very wide and very tall for a full screen app on a large screen that is much larger than my development environment. I also want to do some testing (click buttons, watch images fly around) on the development system. Ideas? (I suspect there is some feature I have missed over the years and I'm going to feel silly.) Dar ___ 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 --- Dar Scott dba Dar Scott Consulting 8637 Horacio Place NE Albuquerque, NM 87111 Lab, home, office phone: +1 505 299 9497 For Skype and fax, please contact. d...@swcp.com Computer Programming and tinkering, often making LiveCode libraries and externals, sometimes writing associated microcontroller firmware. --- ___ 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: on-rev urgent problem -- Livecode contact address?
Anything we mere mortals can check for you, in case it helps? Colin, I wish! But, the problem is server-side, so it needs someone with access to the server. Things seem to be back to normal. But the log page still shows an error when loading the dbmysql.so driver. Looking thru the archives, this dbmysql.so problem has happened before. Case-sensitivity was noted on by Andre Garzia, but, as I wrote, the setup has worked fine for years. So, why the hiccup now? And why at the same day of the week and time? If someone, mortal or not, has advice, please! P.S. Ditto on the still-unresolved problem with Android and post. Thanks. -- Nicolas Cueto ___ 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: on-rev urgent problem -- Livecode contact address?
On Sat, Mar 10, 2012 at 11:00 AM, Nicolas Cueto nicon...@gmail.com wrote: Sorry but, does anyone know the urgent contact address for Livecode? I've always received fast an efficient help from Heather by emailing: supp...@runrev.com I notice with a particular on-rev problem I had, the email came from: on-...@runrev.com Both the above are likely to faster than using the Form: http://www.runrev.com/support/contact-support/contact-support/ HTH ___ 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