Perfect, thanks.
I totally forgot about the url keyword. Not particularly intuitive.
Appreciate it...
Search found 24 matches
- Sat Feb 09, 2019 2:48 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Newbie again
- Replies: 3
- Views: 2259
- Sat Feb 09, 2019 2:24 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Newbie again
- Replies: 3
- Views: 2259
Newbie again
All I want to do is open a text file and display it in a text field, modify it, then save it again. I can use the Answer command, but that gives me the path. How do I get the contents of the file? I've used Live code a long time ago (RunRev era), but the new dictionary is perplexing to me, and I can...
- Thu Apr 18, 2013 6:48 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: how to get ibeam location
- Replies: 1
- Views: 1983
how to get ibeam location
Hey, I'm interested in controlling the properties of text as it is being entered into a field. Specifically, I'm making a chemistry application and need to distinguish numbers and letters, then would like to make all the numbers to be subscript as I type them in. The following code works but is a bi...
- Sun Jun 19, 2011 7:47 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: significant digits
- Replies: 1
- Views: 1594
significant digits
I'm not sure how to insure a certain number of significant digits in a number I'm diplaying. As an example, I perform a calculation and get a number: 35.003742. If I use statRound(35.003742,2) I get 35 (written without any decimal point). Not 35.00. How to I get "35.00"? Is there another function th...
- Sat Mar 05, 2011 10:50 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: code writing standards
- Replies: 3
- Views: 3004
Re: code writing standards
Craig, Thanks for the snippet. I wonder if we are pretty much doing the same thing. Of course, I have to enforce some restrictions on input (must start with a letter, every element must only contain two letters but integers can have any number). I'm not worried about the error catching code just yet...
- Sat Mar 05, 2011 5:45 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: code writing standards
- Replies: 3
- Views: 3004
code writing standards
Hi, I've been working on a short program that calculates the formula weight of a given molecular formula. Conceptually it is very easy, and I've done the same thing using Java and Python, but as practice I'm trying to use LiveCode to do the same thing. Input is a formula like: "C6H5Cl1". In the past...
- Fri Oct 01, 2010 9:16 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: mouse wheel?
- Replies: 3
- Views: 2840
Re: mouse wheel?
Thanks for the response.
It turns out to be very simple once I know where to look.
--Doug
It turns out to be very simple once I know where to look.
--Doug
- Thu Sep 30, 2010 2:59 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: mouse wheel?
- Replies: 3
- Views: 2840
Re: mouse wheel?
Hi again, actually, I don't think I was perfectly clear with my earlier post. I don't want to just scroll - that happen automatically. What I want is to capture the mouse wheel as an event. There are two cases where I would like to do this. In one case, I would like to use the mouse wheel to move up...
- Thu Sep 30, 2010 2:56 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: mouse wheel?
- Replies: 3
- Views: 2840
mouse wheel?
Hi, I have a scrolling list of files (that I read from a folder) that I would like to survey quickly. I know how to make the down arrow and return key move between items in the list. Is there a way to use the mouse wheel to scroll down? Can I catch the mouse wheel change as an event? Thanks, --Doug
- Sat Jul 24, 2010 12:26 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: get and set selectedText
- Replies: 3
- Views: 3284
Re: get and set selectedText
Thanks for the explanation, I think I understand now. My confusion was not recognizing that selectedText was a function. I assumed that any object that was made to select things (lists, popup buttons, radio groups) would have an attribute representing the selection that I could get and set. Now I se...
- Fri Jul 23, 2010 11:04 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: get and set selectedText
- Replies: 3
- Views: 3284
get and set selectedText
Hi, I have an array that I'm using to store comments about various image files. I am now trying to search the comments for keywords, and when I find hits, create a list and display the image and comments. Below is an excerpt of my code: on mouseUp set the itemDelimiter to return put the text of fiel...
- Mon Jul 19, 2010 2:28 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: changing file name
- Replies: 2
- Views: 2524
Re: changing file name
Thanks Klaus, Works great. My rename code now looks like: on mouseUp put the fileName of image "image" into tOldName set itemDelimiter to "." put tOldName into tNewName ask "New Name:" put it into item 1 of tNewName rename file tOldName to (defaultFolder & "\" & tNewName) send "openstack" to stack "...
- Wed Jul 14, 2010 5:15 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: changing file name
- Replies: 2
- Views: 2524
changing file name
Hi, I have an image control that I load from a file on disk. I would like to change the name of the image, and have it change the name of the file on disk. Is there an easy way to do this?
Thanks,
--Doug
Thanks,
--Doug
- Mon Jul 05, 2010 9:44 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Versions
- Replies: 1
- Views: 2107
Versions
How do you keep track of changes in Rev? I frequently save different versions with a different name, but my stacks continue to have the same names so that my scripts all work. However, when I launch a different version of a project, Rev complains that several stacks have the same names. Do I have to...
- Tue May 25, 2010 3:10 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Finding a folder
- Replies: 5
- Views: 3440
Re: Finding a folder
Perfect. That's exactly what I need. I never would have thought about looking up that.
thanks,
--Doug
thanks,
--Doug