Thank you Simon, That works perfectly.
They should add that to the dictionary and manual.
Search found 16 matches
- Mon Sep 16, 2013 9:45 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: return hex value of chosen color
- Replies: 4
- Views: 4945
- Mon Sep 16, 2013 9:16 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: return hex value of chosen color
- Replies: 4
- Views: 4945
return hex value of chosen color
Hello, I am looking at how to return the chosen color of a value in its Hex value
get the backgroundcolor of control ID "1003"
put it into myColorVar
put myColorVar into fld "colorID"
This will create an RGB value, like 22,183,67 for a blue
how would I get the hex value of that same value ...
get the backgroundcolor of control ID "1003"
put it into myColorVar
put myColorVar into fld "colorID"
This will create an RGB value, like 22,183,67 for a blue
how would I get the hex value of that same value ...
- Wed Aug 28, 2013 8:42 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: setting the defaultPath with dynamic values
- Replies: 4
- Views: 4005
Re: setting the defaultPath with dynamic values
Oh, yes, now I see, you put it, I was trying to set the global
Thank you very much.
Thank you very much.
- Wed Aug 28, 2013 7:38 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: setting the defaultPath with dynamic values
- Replies: 4
- Views: 4005
Re: setting the defaultPath with dynamic values
Yes, I did get it to work, only I think I did not completely understand how to set a global or define its value,
I must have not correctly set the global to the folder path, I set what I would call in PHP a super global, $mypathtofile
loaded that into a variable then it did work, so far nothing ...
I must have not correctly set the global to the folder path, I set what I would call in PHP a super global, $mypathtofile
loaded that into a variable then it did work, so far nothing ...
- Wed Aug 28, 2013 5:28 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: setting the defaultPath with dynamic values
- Replies: 4
- Views: 4005
setting the defaultPath with dynamic values
I have a need to open a specific folder path, looking in the dictionary I could not find an exact example of how this should appear.
There are examples of different uses, but none that explain the defaultPath method, at least from what I read.
source dictionary
answer file "Select a file to ...
There are examples of different uses, but none that explain the defaultPath method, at least from what I read.
source dictionary
answer file "Select a file to ...
- Thu Aug 22, 2013 5:29 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: put xml string with quotes?
- Replies: 5
- Views: 4954
Re: put xml string with quotes?
Oh, yes thank you, gentleman, I appreciate the replies, this makes perfect sense, If I could only unlearn the old ways...
again thank you for the replies, it is much appreciatiated.
again thank you for the replies, it is much appreciatiated.
- Thu Aug 22, 2013 5:08 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: put xml string with quotes?
- Replies: 5
- Views: 4954
put xml string with quotes?
I am curious if it is possible to put xml formatted data, into a variable or to add strings to a container.
Example,
put "tab1text" title=" into mySpecialvariable This would create error, double binary operator, so if you wanted to express data that contains operators, what would be the best ...
Example,
put "tab1text" title=" into mySpecialvariable This would create error, double binary operator, so if you wanted to express data that contains operators, what would be the best ...
- Sat Aug 10, 2013 12:39 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: if then else
- Replies: 5
- Views: 6778
Re: if then else
Ok, yes, thanks, I had an old script I think back around 2.8.1
But its probably been changed years ago, yes, it would be handy, I used to use it to communicate an error, for a validation of a PHP script, but its been a long time since I have fooled with the engine at all.
The docs dont seem to ...
But its probably been changed years ago, yes, it would be handy, I used to use it to communicate an error, for a validation of a PHP script, but its been a long time since I have fooled with the engine at all.
The docs dont seem to ...
- Fri Aug 09, 2013 11:35 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: if then else
- Replies: 5
- Views: 6778
if then else
I have a stack that posts to a webserver and receives a result, if the result is OK:0 it means that the post connected but no action was taken, in that case I would want to exit to top with a message, letting the user know that something went wrong.
if fld "result1" contains "OK:0" then exit to ...
if fld "result1" contains "OK:0" then exit to ...
- Thu May 16, 2013 1:05 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: sorting data using delimiters and managing items
- Replies: 13
- Views: 22995
Re: sorting data using delimiters and managing items
Ok, I believe I understand the way that it works now, that I see the example thank you for sharing your time so generously.
There is a lot to understand but that really helps, when I look at the example I can understand how it should work, so much better again thank you.
There is a lot to understand but that really helps, when I look at the example I can understand how it should work, so much better again thank you.
- Wed May 15, 2013 11:14 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: sorting data using delimiters and managing items
- Replies: 13
- Views: 22995
Re: sorting data using delimiters and managing items
I played with this for several iterations, producing various results, I am certain I have something a little off, I can almost see where I am going wrong but it just escapes me at the moment.
on mouseUp
put the text of fld "testing" into mySnippetVar
set the itemdelimiter to "*"
repeat for ...
on mouseUp
put the text of fld "testing" into mySnippetVar
set the itemdelimiter to "*"
repeat for ...
- Wed May 15, 2013 8:17 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: sorting data using delimiters and managing items
- Replies: 13
- Views: 22995
Re: sorting data using delimiters and managing items
Thank you Klaus I will read though the documentation to see how I can find out more about these subjects, I appreciate the information, so in this case I would say that the engine does not know what of the construct to put into the field, so I have to construct a method of telling the engine what I ...
- Wed May 15, 2013 6:21 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: sorting data using delimiters and managing items
- Replies: 13
- Views: 22995
Re: sorting data using delimiters and managing items
Yes, that is a good idea, the base idea is to Get, some text data, (flat file) from a remote server,
Post that data into a substack variable, sort it then load it into fields that co-respond to the lines of each item,
item 1
line 1 into fld A
line 2 into fld B
line 3 into fld C
line 4 ...
Post that data into a substack variable, sort it then load it into fields that co-respond to the lines of each item,
item 1
line 1 into fld A
line 2 into fld B
line 3 into fld C
line 4 ...
- Wed May 15, 2013 5:52 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: sorting data using delimiters and managing items
- Replies: 13
- Views: 22995
Re: sorting data using delimiters and managing items
Ok that makes sense, I tried out a couple of different things,
on mouseUp
put the text of fld "testing" into mySnippetVar
set the itemdelimiter to "*"
repeat for each item tItem in mySnippetVar
put line 2 to -1 of tItem into mySnippetVar[tkey]
end repeat
put mySnippetVar into fld ...
on mouseUp
put the text of fld "testing" into mySnippetVar
set the itemdelimiter to "*"
repeat for each item tItem in mySnippetVar
put line 2 to -1 of tItem into mySnippetVar[tkey]
end repeat
put mySnippetVar into fld ...
- Wed May 15, 2013 12:29 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: sorting data using delimiters and managing items
- Replies: 13
- Views: 22995
Re: sorting data using delimiters and managing items
Thank you for your reply, Yes the first line would be a designation for the type of data later I would probably add more information.
But yes both of those work quite well, I am a little amazed at how easy it is to use a few words and accomplish so much, again thank you for your reply and solution.
But yes both of those work quite well, I am a little amazed at how easy it is to use a few words and accomplish so much, again thank you for your reply and solution.