Search found 76 matches
- Fri Mar 27, 2009 2:13 am
- Forum: Talking LiveCode
- Topic: Indirect Referencing
- Replies: 8
- Views: 6245
Re: Indirect Referencing
Hi guys, I'm trying to reference the contents of a variable using its name in another variable. So far its not working. Any pointers? Here is an example of what I mean. put "x,y,z" into var1 put "var1" into varibleName put item 1 of varibleName What I get in the message box is var1 but what I want ...
- Sat Mar 21, 2009 8:54 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: replace one instance of a word
- Replies: 1
- Views: 2865
Re: replace one instance of a word
Hi Preston ~Preston Shea wrote:When I use
replace oldWord with newWord in field "textField"
every instance of oldWord is replaced by newWord. How do I replace just one specific instance -- for example the clickText?
Try putting this in a locked "textField":
Code: Select all
put newWord into the clickChunk
- Sat Mar 21, 2009 8:11 pm
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: From Windows to Mac
- Replies: 11
- Views: 6930
Sorry to be a bubble buster, but that hasn't been my experience.. however I am going the opposite direction. I develop on a Mac and deploy to both Mac and Windows but I always have problems getting my Windows versions to work and appear correctly. Macs are more forgiving I think, especially in the h...
- Fri Mar 13, 2009 2:50 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: CAN ANYBODY HELP ????
- Replies: 22
- Views: 15825
Hi Smash ~ There are several ways to do this, but one way is to add the line: delete the first char of field "Credit" This will remove the first character of the field "Credit" which is the minus sign. One minor point though... it's standard accounting practice to have the minus sign in front of a c...
- Sun Mar 08, 2009 4:18 pm
- Forum: Internet
- Topic: unzipped standalone won't open
- Replies: 5
- Views: 4885
Hi Jim ~ It may be something in the standalone settings that is incorrect. Maybe check some of these things out in the Standalone Settings under the File menu... Under the "OS X" icon... Is the end user you sent the zipped standalone using an Intel or PowerPC Mac? Did you check "Build For": Universa...
- Sat Mar 07, 2009 5:46 pm
- Forum: Databases
- Topic: Postgres Connection
- Replies: 3
- Views: 3848
Hi again Phil, I obviously didn't have enough coffee yet this morning because I missed the line in your original post which said "It also throws an error if I use the integer test that works on SQLite and MySQL." So you're saying you still get your error line: "Could not connect to database:" even i...
- Sat Mar 07, 2009 4:45 pm
- Forum: Databases
- Topic: Postgres Connection
- Replies: 3
- Views: 3848
Hi Phil, I'm no expert, but I believe the revOpenDatabase returns an integer which is an ID to the database, and your current code is checking for "true", a boolean. If revOpenDatabase fails, it returns an error which isn't an integer, so you can check the connection by verifying the return as an in...
- Sun Jan 25, 2009 3:40 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Printing Forms
- Replies: 2
- Views: 3589
Using Rev for creating forms only to be filled in by hand seems like overkill to me, and the wrong tool for the job. Why not just set up the form using something like MS Word? Much faster and it's WYSIWYG. Unless you are going to fill in the form via a Rev app interface, it seems a waste of time usi...
- Sun Jan 18, 2009 3:57 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Logical operator isn't operating!
- Replies: 4
- Views: 5783
What does "double binary operator" mean? The word "is" in Rev is a synonym for "=" allowing you to use English in an expression such as: if x is 34 then or if x = 34 then so you got a "double binary operator" error from Rev because you're expression: if whatCase is >= 65 then put whatCase into mess...
- Tue Jan 06, 2009 2:32 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: event handler questions
- Replies: 5
- Views: 5150
Re: code for event handlers
...I'd be interested to learn the command to reset all the text boxes to blank based on a mouseup event Hi Clint ~ I'd just add to Jan's excellent advise... If you wish a field to be "blank" and have no text or numbers in it, you can also use the Rev constant "empty", for example: put empty into fi...
- Sun Jan 04, 2009 6:32 pm
- Forum: Talking LiveCode
- Topic: opening a web page (archive)
- Replies: 4
- Views: 4730
Re: opening a web page (archive)
Hi, I've copied a web page (archive) to my desktop and I put it in the same file as the program I've written with Rev. I have a button in the program that I want to open this archive (web page). I have my Airport (wireless) shut off because I want to show how I can open a web page and there may not...
- Tue Dec 23, 2008 4:11 pm
- Forum: Off-Topic
- Topic: Corrupted icons and OSX video playback
- Replies: 19
- Views: 23940
Some final thoughts... You may want to use Apple's Console app (in your Utilities folder) and have a look at system.log to check for any clues on boot up. You may glean some insight there as to what may be happening, and for some background and perspective on any suspicious entries in the system.log...
- Sun Dec 21, 2008 6:06 pm
- Forum: Off-Topic
- Topic: Corrupted icons and OSX video playback
- Replies: 19
- Views: 23940
The only other thing I can think of right now is to run one of the system maintenance utilities (checks system preference files and cleans out corrupt cache files, etc). Here are some to check out: Preferential Treatment http://www.jonn8.com/html/pt.html Cocktail http://www.maintain.se/cocktail/inde...
- Sun Dec 14, 2008 3:31 pm
- Forum: Off-Topic
- Topic: Corrupted icons and OSX video playback
- Replies: 19
- Views: 23940
There are a few more things you could try before concluding it's a hardware problem. 1. It appears you have a black desktop. What happens if you change the desktop to any of the Apple provided ones in System Preferences->Desktop & Screen Saver? 2. Use Apple's Disk Utility to Repair Permissions. 3. C...
- Mon Dec 01, 2008 3:27 am
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: text shift not work in buttons?
- Replies: 2
- Views: 2373
Hi Bill ~
You can set the: bottomMargin, topMargin, leftMargin and rightMargin in pixels, to move the button text right where you wish as:
You can set the: bottomMargin, topMargin, leftMargin and rightMargin in pixels, to move the button text right where you wish as:
Code: Select all
set the bottomMargin of btn "myButton" to 30