SLICK! Works perfectly thanks man!rkriesel wrote:The dictionary entry for the "contains" operator says "See also: ... begins with Operator."
Does that work for you?
-- Dick
Search found 51 matches
- Thu Nov 20, 2014 12:47 pm
- Forum: Talking LiveCode
- Topic: "contains" but for matching index?
- Replies: 12
- Views: 7369
Re: "contains" but for matching index?
- Thu Nov 20, 2014 10:41 am
- Forum: Talking LiveCode
- Topic: "contains" but for matching index?
- Replies: 12
- Views: 7369
Re: "contains" but for matching index?
Hi EssoAir, I think you want "is among" except for put "y" is among the chars of "xyz" Not clear how that is different from put "x" is among the chars of "xyz" Simon Let me give you the Javascript implementation so that maybe it's more clear. function isAmatch(string, substring) { for(var i = 0; i ...
- Thu Nov 20, 2014 9:44 am
- Forum: Talking LiveCode
- Topic: "contains" but for matching index?
- Replies: 12
- Views: 7369
"contains" but for matching index?
Quick question: How can I use "contains" (or any command, actually) to evaluate if a substring is contained within a string AND the indexes match up so that "xyz" contains "x" == true and "xyz" contains "xy" == true but "xyz" contains "yz" == false and "xyz" contains "y" == false I could write this ...
- Sun Nov 16, 2014 8:23 am
- Forum: Talking LiveCode
- Topic: Scroling a field while user types?
- Replies: 2
- Views: 2681
Re: Scroling a field while user types?
Hi EssoAir, Well you actually almost had it right... the right idea but try this send "scrollMe" to me in 1 millisec the wait you have blocks all. Now that 1 millisec is waaayyyyyy too short, and is the reason for that recursion error, not the end of the scrolling fld. The screen hasn't finished up...
- Sun Nov 16, 2014 6:45 am
- Forum: Talking LiveCode
- Topic: Scroling a field while user types?
- Replies: 2
- Views: 2681
Scroling a field while user types?
Hey, I was writing this simple game and ran into a problem that I understand, but don't know how to solve in LiveCode. Heres the script: https://dl.dropboxusercontent.com/u/122745818/Game.livecode The part I'd like to highlight is this: on scrollMe if stillScrolling = 1 then set the scroll of me to ...
- Wed Nov 12, 2014 1:41 pm
- Forum: Talking LiveCode
- Topic: Writing a custom syntax highlighter?
- Replies: 5
- Views: 4382
Re: Writing a custom syntax highlighter?
Thanks guy! I'm not really sure yet, tbh. I'm just trying to figure everything out. I'll have to check out both of those suggestions once I get to the implementation stage.
- Wed Nov 12, 2014 12:23 pm
- Forum: Talking LiveCode
- Topic: Maintaining a single shell() instance across multiple calls?
- Replies: 0
- Views: 1672
Maintaining a single shell() instance across multiple calls?
Hey guys! So I'm working on a project right now. Part of it requires that I make an install wizard for the Dlang compiler called DMD. I was really just hoping to use LiveCode's shell() command to script the install process without the user seeing any command windows open or anything. The problem is,...
- Fri Oct 31, 2014 3:54 am
- Forum: Talking LiveCode
- Topic: Writing a custom syntax highlighter?
- Replies: 5
- Views: 4382
Writing a custom syntax highlighter?
Hey guys! I know this is nothing new, syntax highlighting has been implemented in every language since the dawn of multi-colored screens. But I can't seem to find someone that's implemented it in LiveCode. I'm more of the C-like syntax type coder and so I kinda need help here. I want make an IDE for...
- Sun Jul 27, 2014 4:20 am
- Forum: Announcements
- Topic: We're Funding LiveCode For the Web
- Replies: 40
- Views: 55086
Re: We're Funding LiveCode For the Web
The answer is simple. Putting your stacks into a browser without the use of a plugin will require a LiveCode to javascript interpreter, which is a very large undertaking. RR is a small company and does not have the resources to do this without additional funding. The alternative is to wait until th...
- Thu Apr 17, 2014 6:57 pm
- Forum: Mac OS
- Topic: Using LiveCode to shutdown, logout and restart the Mac
- Replies: 15
- Views: 13947
Re: Using LiveCode to shutdown, logout and restart the Mac
Wouldn't it be easier to do in AppleScript?Mag wrote:I wonder if it is possible to use LiveCode to perform operations as log out, restart and shut down your Mac...
- Thu Apr 17, 2014 6:51 pm
- Forum: Android Deployment
- Topic: Remote stack (via internet) on Android?
- Replies: 12
- Views: 7785
Re: Remote stack (via internet) on Android?
I need to do some more obscuring work, but here is the basic thing I got going //Within the card on openCard if the environment <> "mobile" then exit openCard mobileControlCreate "input", "urlBar" mobileControlSet "urlBar", "visible", true put the rect of control "urlBarRect" into iRect //urlBarRect...
- Thu Apr 17, 2014 6:13 pm
- Forum: Android Deployment
- Topic: Remote stack (via internet) on Android?
- Replies: 12
- Views: 7785
Re: Remote stack (via internet) on Android?
Wow i feel stupid! I saw "do" in the revdocs and assumed it was a do-while loop like in most programming languages.Klaus wrote:Hi Esso,
Yes, you could use the "DO" command for example, Mr. ThrillseekerEssoAir wrote:Can a command be run from a string variable?
Best
Klaus
Thank you good sir!
- Thu Apr 17, 2014 4:43 pm
- Forum: Android Deployment
- Topic: Remote stack (via internet) on Android?
- Replies: 12
- Views: 7785
Re: Remote stack (via internet) on Android?
tl;dr I get you all have concerns but I'd really appreciate it if you let me deal with the apple review process and instead just help me out with the question at hand, that being: Can a command be run from a string variable? For clarity, I'm working on an app. It will be an easy to use application f...
- Thu Apr 17, 2014 4:39 pm
- Forum: Android Deployment
- Topic: Remote stack (via internet) on Android?
- Replies: 12
- Views: 7785
Re: Remote stack (via internet) on Android?
If a stack file is merely a media container and includes no code at all, it may be viewed as compliant with Apple's terms. However, even then it's possible with just property settings to alter the execution path of an app, and in such cases it may be seen as a violation. If one were sufficiently mo...
- Thu Apr 17, 2014 3:17 pm
- Forum: Android Deployment
- Topic: Remote stack (via internet) on Android?
- Replies: 12
- Views: 7785
Re: Remote stack (via internet) on Android?
But what if Apple didn't know this is how it worked? Come on! 8) Ok ok i know its a long shot, but can you load a command as a string in to a variable and excecute it? Can this be done on desktop? Like, for example, can I have a user enter a command into a text field and have that command be run by...