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 ...
Search found 75 matches
- Fri Mar 27, 2009 2:13 am
- Forum: Talking LiveCode
- Topic: Indirect Referencing
- Replies: 8
- Views: 10282
- Sat Mar 21, 2009 8:54 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: replace one instance of a word
- Replies: 1
- Views: 4098
Re: replace one instance of a word
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?
Hi Preston ~
Try putting this in a locked "textField":
put newWord into the clickChunk
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?
Hi Preston ~
Try putting this in a locked "textField":
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: 12769
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 ...
- Fri Mar 13, 2009 2:50 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: CAN ANYBODY HELP ????
- Replies: 22
- Views: 24811
- Sun Mar 08, 2009 4:18 pm
- Forum: Internet
- Topic: unzipped standalone won't open
- Replies: 5
- Views: 8130
- Sat Mar 07, 2009 5:46 pm
- Forum: Databases
- Topic: Postgres Connection
- Replies: 3
- Views: 6036
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 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 ...
- Sat Mar 07, 2009 4:45 pm
- Forum: Databases
- Topic: Postgres Connection
- Replies: 3
- Views: 6036
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 ...
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 ...
- Sun Jan 25, 2009 3:40 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Printing Forms
- Replies: 2
- Views: 6354
- Sun Jan 18, 2009 3:57 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Logical operator isn't operating!
- Replies: 4
- Views: 8391
- Tue Jan 06, 2009 2:32 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: event handler questions
- Replies: 5
- Views: 8032
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 ...
- Sun Jan 04, 2009 6:32 pm
- Forum: Talking LiveCode
- Topic: opening a web page (archive)
- Replies: 4
- Views: 7396
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 ...
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 ...
- Tue Dec 23, 2008 4:11 pm
- Forum: Off-Topic
- Topic: Corrupted icons and OSX video playback
- Replies: 19
- Views: 37513
- Sun Dec 21, 2008 6:06 pm
- Forum: Off-Topic
- Topic: Corrupted icons and OSX video playback
- Replies: 19
- Views: 37513
- Sun Dec 14, 2008 3:31 pm
- Forum: Off-Topic
- Topic: Corrupted icons and OSX video playback
- Replies: 19
- Views: 37513
- Mon Dec 01, 2008 3:27 am
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: text shift not work in buttons?
- Replies: 2
- Views: 3934
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