Search found 2733 matches

by SparkOut
Mon Jun 03, 2013 6:35 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Putting the result into a field
Replies: 11
Views: 7623

Re: Putting the result into a field

The function returns a string literal containing the chars of the digit and % symbol to be stored in the field. LiveCode is not a strongly typed language and so it will do its best to make sense of what values you give to any operator. In this case, however, it won't be able to calculate a numeric v...
by SparkOut
Sun Jun 02, 2013 7:02 pm
Forum: Engine Contributors
Topic: Escapes in string literals
Replies: 97
Views: 53091

Re: Escapes in string constants

What Jacque said.
by SparkOut
Sun Jun 02, 2013 12:55 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Putting the result into a field
Replies: 11
Views: 7623

Re: Putting the result into a field

See my answer and sample stack that I already provided here: http://forums.runrev.com/phpBB2/viewtopic.php?p=76885#p76885 as also mentioned there, if btn "Purchase type" = "Private" then will not help you because the button will never EQUAL "Private" but its label or menu history or custom property ...
by SparkOut
Thu May 30, 2013 9:02 pm
Forum: Internet
Topic: Getting text from HTML <div> into LiveCode
Replies: 13
Views: 11337

Re: Getting text from HTML <div> into LiveCode

Yes they are, but did Kevin actually say "Klausimausi"?! :lol:
by SparkOut
Thu May 30, 2013 9:00 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Fields of Joy... but Start of Line? (='.'=)
Replies: 2
Views: 1944

Re: Fields of Joy... but Start of Line? (='.'=)

Ciao Mariasole, Using a slightly different approach, but again a very useful demonstration of the versatile chunking and text handling capabilities of LiveCode: repeat for each line tLine in field "fString" set the caseSensitive to true set the wholeMatches to true answer tLine if tLine is not among...
by SparkOut
Thu May 30, 2013 8:42 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Nested "if" statements
Replies: 16
Views: 7870

Re: Nested "if" statements

Here's a zipped sample stack. Unzip it and try. I hope it helps
by SparkOut
Thu May 30, 2013 8:09 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Nested "if" statements
Replies: 16
Views: 7870

Re: Nested "if" statements

One thing you really do need to do is be careful with the difference between a function and a handler. Handlers invoke scripts when a message generated by an event in the application matches the defined handler in an appropriate place in the message path. When you click a button, for instance (among...
by SparkOut
Thu May 30, 2013 1:14 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Nested "if" statements
Replies: 16
Views: 7870

Re: Nested "if" statements

With a drop down (ie combo box or option menu) button you can find out the currently selected item in the menu by testing the menuHistory property, which returns the line number of the last selected item in the menu. In the script of the calculate button you could: -- say the menu choices are "Priva...
by SparkOut
Wed May 29, 2013 7:06 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Nested "if" statements
Replies: 16
Views: 7870

Re: Nested "if" statements

You can't put a button into a variable and have it do anything meaningful in this situation. You would have to determine what value you wanted according to the button state, or some other condition you determine. I imagine you are more likely to want to have a button to press which performs the calc...
by SparkOut
Wed May 29, 2013 1:16 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Nested "if" statements
Replies: 16
Views: 7870

Re: Nested "if" statements

Hi Klausimausi, I don't think that was the same question (see my offering about "is among" for that solution on the other thread"). This one about Excel may be helped by understanding the nested if/then structures in the spreadsheet formula =IF(G4="Private", IF(G6>2000000.01,7%,IF(G6>1000000.01,5%,I...
by SparkOut
Wed May 29, 2013 1:08 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: IF and... multiple OR | (=*.*=) A newbie nightmare
Replies: 5
Views: 3002

Re: IF and... multiple OR | (=*.*=) A newbie nightmare

but you can just type "

Code: Select all

" and "
" in the edit window
by SparkOut
Wed May 29, 2013 11:53 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: IF and... multiple OR | (=*.*=) A newbie nightmare
Replies: 5
Views: 3002

Re: IF and... multiple OR | (=*.*=) A newbie nightmare

This should do the trick, if you don't want anything more sophisticated

Code: Select all

put "(?:[,!$])" into tMatches
repeat for each word tWord in field "fList"
  if the last char of tWord is among the chars of tMatches then
     answer last char of tWord
  end if
end repeat
by SparkOut
Tue May 28, 2013 2:38 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Error message when linking the ANdroid SDK
Replies: 8
Views: 4990

Re: Error message when linking the ANdroid SDK

The latest version of the SDK seems to have changed some file locations and removed others. Try copying the apkbuilder (apkbuilder.bat?) file into the "Tools" folder from a previous version. Also try copying aapt (aapt.exe?) and dx (dx.bat?) from a numbered folder under "build-tools" to the "platfor...
by SparkOut
Mon May 27, 2013 11:59 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: ffmpeg
Replies: 15
Views: 10334

Re: ffmpeg

I have a collection of email correspondence and info from that time, but I really couldn't say if any of it would be relevant today. I can forward what it is that I've got, might be a starting point for you at least.

Go to advanced search