Re: Choosing a database and LC tools

2015-08-10 Thread PystCat
Hi Bill,

If you wouldn't mind... I would love to see some of those PHP scripts... I've 
always used MySQL locally but I was thinking of branching out to use it on the 
web.  I have a Founders account but never really use the MySQL from there... I 
never did like the (lack of) security.

Thanks
Paul



> On Aug 10, 2015, at 9:15 PM, William Prothero  wrote:
> 
> Tom:
> I use Navicat to manage my databases. It will access a variety of online 
> databases, and works with SQLite too. I use it all the time.
> In my app work, I use livecode with POST commands to php that talks to an 
> online mySQL database. PHP is totally robust and won’t fail on you, and it’s 
> built into most Apache installations. On Mac, there is also a great free tool 
> called MAMP, which allows you to run a complete web server with php on your 
> local machine, for debugging. Again, Navicat is your friend and will save you 
> hours of wondering whether your data actually got into the db or not.
> 
> I read that storage of images in a mySQL database isn’t recommended. But, I 
> have stored them in SQLite db’s and it worked fine. Haven’t tried it on mySQL.
> 
> I will send you some php scripts, if you are interested. Contact me offline.
> Best,
> Bill
> 
>> On Aug 10, 2015, at 11:01 AM, Peter Haworth  wrote:
>> 
>> Hi Tom,
>> SQLite should do what you need but a few notes for you.
>> 
>> SQLite doesn't have an array datatype.  The usual way of handling this type
>> of data in any SQL database is to store each key and value of the array in
>> a separate table that is linked to your main table by an id of some sort
>> that would have the same value in both tables.
>> 
>> You could also get round it by arrayEncoding them before putting them in
>> the database and then arrayDecoding them on the way out.
>> 
>> It's pretty easy to store images in columns with a data type of BLOB,
>> although it requires some slightly different LC coding to SELECT them.
>> Also be aware that LC used to encode BLOB data in a proprietary way but
>> then removed the encoding in a release which I can't quite remember.  Only
>> an issue if you expect to access the database with versions of LC both
>> before and after the change.  Plus it's controllable via an sqliteoption
>> parameter for revOpenDatabase.
>> 
>> I will contact you off list re contract work and a couple of other
>> suggestions.
>> 
>> Pete
>> 
>> 
>> On Mon, Aug 10, 2015 at 9:40 AM tbodine 
>> wrote:
>> 
>>> Hi,
>>> 
>>> I want to add a content library module to a LiveCode-built project. It will
>>> enable users to store, tag, sort and retrieve their content. I've read
>>> various threads and articles about databases, but I have minimal database
>>> experience and I want to get it right the first time. So I'd appreciate
>>> answers to these questions and any other insights:
>>> 
>>> 1) Is SQLite the best choice for local database file with a Livecode
>>> interface? (Each database record will need to hold a few sentences of
>>> Unicode text, 1 or 2 small arrays, the text contents of a few cprops, and a
>>> field for tags the user can apply to categorize the various records.) I
>>> doubt the number of records would ever exceed 10,000 with an average more
>>> like 2,000.
>>> 
>>> 2) The content of some records may have associated images or audio files. I
>>> can store the paths to those, but paths break easily. How much does it
>>> bloat
>>> or burden a database to store jpgs, pngs, wavs or aifs files in records?
>>> 
>>> 3) I see there are a few 3rd-party tools for database work with Livecode.
>>> (SQLyoga, SQLiteAdmin and SQLMagic). Are there others? Are these current
>>> with LC7?
>>> 
>>> 4) Are there contract developers in the LC community that specialize in
>>> setting up databases with LC interfaces?
>>> 
>>> Thanks!
>>> Tom B.
>>> 
>>> 
>>> 
>>> --
>>> View this message in context:
>>> http://runtime-revolution.278305.n4.nabble.com/Choosing-a-database-and-LC-tools-tp4694777.html
>>> Sent from the Revolution - User mailing list archive at Nabble.com.
>>> 
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubsc

Re: Choosing a database and LC tools

2015-08-10 Thread William Prothero
Tom:
I use Navicat to manage my databases. It will access a variety of online 
databases, and works with SQLite too. I use it all the time.
In my app work, I use livecode with POST commands to php that talks to an 
online mySQL database. PHP is totally robust and won’t fail on you, and it’s 
built into most Apache installations. On Mac, there is also a great free tool 
called MAMP, which allows you to run a complete web server with php on your 
local machine, for debugging. Again, Navicat is your friend and will save you 
hours of wondering whether your data actually got into the db or not.

I read that storage of images in a mySQL database isn’t recommended. But, I 
have stored them in SQLite db’s and it worked fine. Haven’t tried it on mySQL.

I will send you some php scripts, if you are interested. Contact me offline.
Best,
Bill

> On Aug 10, 2015, at 11:01 AM, Peter Haworth  wrote:
> 
> Hi Tom,
> SQLite should do what you need but a few notes for you.
> 
> SQLite doesn't have an array datatype.  The usual way of handling this type
> of data in any SQL database is to store each key and value of the array in
> a separate table that is linked to your main table by an id of some sort
> that would have the same value in both tables.
> 
> You could also get round it by arrayEncoding them before putting them in
> the database and then arrayDecoding them on the way out.
> 
> It's pretty easy to store images in columns with a data type of BLOB,
> although it requires some slightly different LC coding to SELECT them.
> Also be aware that LC used to encode BLOB data in a proprietary way but
> then removed the encoding in a release which I can't quite remember.  Only
> an issue if you expect to access the database with versions of LC both
> before and after the change.  Plus it's controllable via an sqliteoption
> parameter for revOpenDatabase.
> 
> I will contact you off list re contract work and a couple of other
> suggestions.
> 
> Pete
> 
> 
> On Mon, Aug 10, 2015 at 9:40 AM tbodine 
> wrote:
> 
>> Hi,
>> 
>> I want to add a content library module to a LiveCode-built project. It will
>> enable users to store, tag, sort and retrieve their content. I've read
>> various threads and articles about databases, but I have minimal database
>> experience and I want to get it right the first time. So I'd appreciate
>> answers to these questions and any other insights:
>> 
>> 1) Is SQLite the best choice for local database file with a Livecode
>> interface? (Each database record will need to hold a few sentences of
>> Unicode text, 1 or 2 small arrays, the text contents of a few cprops, and a
>> field for tags the user can apply to categorize the various records.) I
>> doubt the number of records would ever exceed 10,000 with an average more
>> like 2,000.
>> 
>> 2) The content of some records may have associated images or audio files. I
>> can store the paths to those, but paths break easily. How much does it
>> bloat
>> or burden a database to store jpgs, pngs, wavs or aifs files in records?
>> 
>> 3) I see there are a few 3rd-party tools for database work with Livecode.
>> (SQLyoga, SQLiteAdmin and SQLMagic). Are there others? Are these current
>> with LC7?
>> 
>> 4) Are there contract developers in the LC community that specialize in
>> setting up databases with LC interfaces?
>> 
>> Thanks!
>> Tom B.
>> 
>> 
>> 
>> --
>> View this message in context:
>> http://runtime-revolution.278305.n4.nabble.com/Choosing-a-database-and-LC-tools-tp4694777.html
>> Sent from the Revolution - User mailing list archive at Nabble.com.
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Android Status Bar?

2015-08-10 Thread Scott Rossi
Is it possible to customize the appearance of the status bar, i.e. making
it transparent, so we can make the overall stack appearance look more like
the current Android OS?

Thanks & Regards,

Scott Rossi
Creative Director
Tactile Media, UX/UI Design




___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Jane Austen's peculiarity

2015-08-10 Thread hh
Richmond, this was your last post to this thread before mine.

> My current version is here:
> https://www.dropbox.com/sh/ja47l87gg87sn0q/AAAIj99kEQVOb8ev3jz8C5ORa?dl=0
> 
> File : TA.zip
> play with it, rip it to pieces, improve it: go on, I dare you :)
> 
> Richmond.

So I downloaded this stack and wrote a script that implemented three ideas,
two by other LCoders, one by me. Because you graciously ignored these ideas,
I was simply curious about their effects on speed and selectivity (by using
trueWords). I didn't play with your stack, I didn't rip it into pieces, but
somehow improved it a bit in the sense of using effectively some available
features of LC 7.

It was no dare, I had fun. And you had obviously fun too, what a great
speech! Who dares wins, you --- and me.

Hermann

p.s. Shouldn't the opening of your speech read "I was _achieved_"? ;-)

Richmond wrote:

> I am achieving what I initially set out to achieve, and with far less 
> code than yours, so have no intention
> of changing anything.
> 
> I, also, am a lucky sort of chap insofar as I don't really mind that 
> much if my stack takes 3 days to work its way
> through a corpus . . . I can go and do some teaching, read a book, cook 
> some food, go for a bike ride, talk to my wife,
> play with my cats, and so on.
> 
> That has ALWAYS been my approach to programming for one simple reason: 
> working every holiday for very many years indeed on a farm
> on an island I had to sort out broken bailers, tractors and so on.
> 
> Now "proper" spares had to come, on a ferry, at a vast transportation 
> overhead, from the mainland of Scotland. We could not afford
> that, so we fossicked (lovely verb) for whatever would do the job in the 
> 'graveyard' of broken tractors, cars, stuff we had picked up from the
> local dump, and so on. Every single time we got our accursed bailer to 
> bail the straw and the hay, we got the cotter pins we needed to
> connect the tractor to the plough, harrow, muck-spreader or whatever; 
> never very elegant, but they worked. In fact my younger son was on that 
> farm just 8 days ago and was shown some of my repair work by the 
> farmer's son (the farmer is long dead); still functional after 25 years.
> 
> I have, just, worked out a way to colourise the items I want, and while, 
> churning through some socking great corpus that would take days, I only 
> need it to colourise the sentences the previous routine has extracted, 
> so that won't take that long.
> 
> You, if it really seems such a good idea (and is it?) are more than 
> welcome to download my stack
> 
> 
> https://www.dropbox.com/sh/ja47l87gg87sn0q/AAAIj99kEQVOb8ev3jz8C5ORa?dl=0
>  File: 
> TA.zip
> 
> and mess around with the script to your heart's content.
> 
> AND, while we are talking about time-consuming exercises: having put 4 
> hours of work into the thing, that seems, already, a bit more than the
> thing deserves as I am not interested in winning the Tour de France, 
> simply extracting some data from a million word corpus with absolutely 
> no deadline at all unless I choose to impose one. The results MAY get 
> rolled into a paper my wife and I are THINKING of writing for an
> academic conference . . . .
> 
> Almost ALL the stacks I have thrown out into the public domain in the 
> last 6 months have come back to me with comments about how my code is 
> clunky, inefficient, and so forth; and I would not doubt for a minute 
> that that is probably true.
> 
> HOWEVER, as far as I am concerned there is one enormous advantage about 
> my code above thine, or anybody else's; while thy code and the code of 
> many others is probably more efficient, more clever and gets things done 
> more quickly, I don't understand the finer points of it, while I 
> understand how my code works 100% because it was written by me, follows 
> my logic, and does what I require it to do.
> 
> It is always entertaining and instructive to see how people react to my 
> code, and I often learn a lot from their reactions (not least about
> human psychology), including new coding tricks - but there always come a 
> point where the burden of having to plough through other
> people's code (reflecting the way their minds work) feels like too much 
> in comparison from anything I might learn from it.
> 
> ---
> 
> I also suspect that very many people share my interest in getting "the 
> job done" rather than producing posh code.
> 
> RunRev claim, on their website, that one can learn to code quickly. With 
> Livecode one can learn how to code RELATIVELY quickly, up
> to a certain point; and many people  who are not programmers qua 
> programmers should be attracted by that because they have probably
> got other things to do other than JUST program.
> 
> I am, at least to a certain extent, one of those people, as computer 
> programming is not the hinge on which my life rotates (and this became
> extremely clear just recently when I spent 3 weeks driving round

Re: [YO EDINBURGH!] Microsoft Open-Sources It's Toolkit For Making iOS Apps Run On Win 10

2015-08-10 Thread Monte Goulding
Unfortunately the platforms are relatively different in the way they do things 
so it's not easy to make things exactly the same unless you whittle things down 
to the lowest common denominator and that's not always helpful. As far as 
externals goes I'm keen to help there but there's two road blocks. Firstly it 
has been rare that people have asked/paid me to build android externals. That's 
how mergExt externals are born. Secondly the android externals sdk is so darn 
limited that I've had to give up on a couple of projects.

So there you go, give me clients and something solid to work with and I can 
shower you with Android externals ;-)

Cheers

Monte

Sent from my iPhone

> On 11 Aug 2015, at 12:26 am, Roger Eller  wrote:
> 
> Although LC calls itself cross-platform, I despise the fact that commands
> in the dictionary, particularly for mobile, have quirks that make it a
> little different for Android than iOS.  If it wants to call itself
> cross-platform, a term that is in the dictionary should work exactly the
> same across all supported platforms.  I would also be more likely to invest
> more into externals if they didn't focus on a single preferred OS rather
> than looking at the market potential for LC devs to build x-plat apps.  LC
> tools should all be required to be x-plat - period. /just one opinion.
> 
> ~Roger
> 
> On Mon, Aug 10, 2015 at 9:56 AM, Mike Kerner 
> wrote:
> 
>> Back in The Days Of The Language Wars, it was important, but now, with so
>> many specialty languages for so many reasons, it becomes much less of an
>> issue.  The PL bigots have been upended by uncompiled web languages.
>> 
>> Whether it's this or Xojo or something else, LC still has a lead for
>> building cross-platform apps.  Hopefully 8 will extend that lead and
>> exploit it, more, because, really, web portals aren't the same.
>> 
>> --
>> On the first day, God created the heavens and the Earth
>> On the second day, God created the oceans.
>> On the third day, God put the animals on hold for a few hours,
>>   and did a little diving.
>> And God said, "This is good."
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Jane Austen's peculiarity

2015-08-10 Thread Richmond

On 10/08/15 22:19, hh wrote:

Hi all,

Richmond, you could give this a try in your fine prepared stack:

The following uses
= an array [one of the proposals above]
= trueWords [one of the proposals, needs LC 7]
= multichar-itemDelimiters [one of the proposals above, needs LC 7]

It outputs for each of your 6 opening words
"were ,was ,is ,are ,has ,have ".
the frequency counts of words 1 and lists the item numbers of these
occurences, for each of the 6 words as itemdelimiter (actually word & space).

For example in fld "COOKED were" (by script created) we get:

were by3 122 375 413

what means there are 3 occurrences of "were by" and these
are at trueword 1 of items 122, 375 and 413 if "were " is
the itemdelimiter.
[Use of trueWord collects for example "by " and "by? " and "by, " and "by! "
in one categorie "by".]

*** This takes < 1 sec, in sum for all 6 opening words from above! ***
*** So this is TMHO a true demo of the power of some LC 7 features ***

A click on a line of one of the 6 output fields colourizes (yellow backColour)
exactly the occurrences in fld "TEKST" and cycles finding these by hitting the
enterKey.

What to do?
[1} Make a new button with the following script part 1.
[2] Add the last part of the script to your card script part 2.
Have fun, it takes 5 minutes to test all this with your stack ...

Hermann

## part 1 for button
on mouseUp
  put the millisecs into strt
  put "started : " & the long time into fld "STARTT"
  put empty into fld "STOPT"
  lock screen; lock messages --> speeds up
  set cursor to watch
  put 1 into KTEKST; put 1 into KCOOK
  put fld "WERBS" into WERBS; delete last line of WERBS
  put fld "TEKST" into TEKST
  delete char 1 to offset("PRIDE AND PREJUDICE",TEKST)-1 of TEKST
  --> watch the space after each item, no space before each item
  put "were ,was ,is ,are ,has ,have " into openings
  -- start be lazy
  if there is no fld "STOPT2" then
clone fld "STOPT"
set name of last fld to "STOPT2"
set left of fld "STOPT2" to the left of fld "STOPT"
set top of fld "STOPT2" to the 40+the top of fld "STOPT"
  end if
  repeat with j=1 to 6
put ("COOKED" && word 1 of item j of openings) into F
if there is no field F then
  clone fld "Cooked"
  set name of last fld to F
  set rect of fld F to (0,0,275,150)
  set topleft of fld F to \
(item j of "95,95,380,380,670,670", item j of 
"590,740,590,740,590,740")
  set tabstops of fld F to 128
end if
  end repeat
  -- end be lazy
  repeat for each item W in openings
put ("COOKED" && word 1 of W) into F
put empty into RM; put empty into RM1
set itemdelimiter to W; put TEKST into TEKST2
delete item 1 of TEKST2; put 1 into X
repeat for each item I in TEKST2
  put W & trueword 1 of I into Y --> important is "trueword", compare to 
"word"
  add 1 to word 1 of RM[Y]
  add 1 to X; put space & X after RM[Y]
end repeat
-- write these 'keys' at top
repeat for each line L in WERBS
  put RM[W & L] into wL
  if wL is empty then put 0 into wL
  put cr & W & L & tab & wL after RM1
end repeat
combine RM by cr and tab
put W & ": diff cases" & tab & (the number of lines of RM) & \
  cr & RM1 & cr&cr & RM into fld F
set textstyle of line 1 of fld F to "bold"
set textstyle of line 3 to 2+(the num of lines of WERBS) of fld F to 
"italic"
set hilitedLines of fld F to 1
set itemdelimiter to comma
  end repeat
  put "finished : " & the long time into fld "STOPT"
  put (the short name of me)&": "&(the millisecs - strt)&" ms" into fld "STOPT2"
  unlock screen; unlock messages
end mouseUp

## part 2 for card script
local toFind

on mouseUp
  if "cooked " is in the short name of the target then
set cursor to watch; lock screen; lock messages
put length(fld "TEKST") into L
set textcolor of char 1 to L of fld "TEKST" to "0,0,0"
set backColor of char 1 to L of fld "TEKST" to "255,255,255"
put the value of the clickline into cL
colorWords cL
unlock screen; unlock messages
  end if
end mouseUp

on colorWords x
  set itemdel to tab
  put item 2 of x into wrds
  put 1 + word 1 of wrds into N
  set itemdel to ((trueword 1 of x) & space)
  repeat with j=2 to N
set backcolor of trueword 1 of item (word j of wrds) of fld "TEKST" to 
"255,255,0"
  end repeat
  put "find whole" && quote & (trueword 1 to 2 of x) & quote && \
"in fld" && quote & "TEKST" & quote into toFind
  select before trueword 1 of item (word N of wrds) of fld "TEKST" -- the last 
hit
  set itemdel to comma
  do toFind
end colorWords

on enterinField
  do toFind
end enterinField

-- end of scripts
___



I am achieving what I initially set out to achieve, and with far less 
code than yours, so have no intention

of changing anything.

I, also, am a lucky sort of chap insofar as I don't really mind that 
much if my stack takes 3 days to work its way
through a corpus

Re: Jane Austen's peculiarity

2015-08-10 Thread hh
Hi all,

Richmond, you could give this a try in your fine prepared stack:

The following uses
= an array [one of the proposals above]
= trueWords [one of the proposals, needs LC 7]
= multichar-itemDelimiters [one of the proposals above, needs LC 7]

It outputs for each of your 6 opening words
"were ,was ,is ,are ,has ,have ".
the frequency counts of words 1 and lists the item numbers of these
occurences, for each of the 6 words as itemdelimiter (actually word & space).

For example in fld "COOKED were" (by script created) we get:

were by3 122 375 413

what means there are 3 occurrences of "were by" and these
are at trueword 1 of items 122, 375 and 413 if "were " is
the itemdelimiter.
[Use of trueWord collects for example "by " and "by? " and "by, " and "by! "
in one categorie "by".]

*** This takes < 1 sec, in sum for all 6 opening words from above! ***
*** So this is TMHO a true demo of the power of some LC 7 features ***

A click on a line of one of the 6 output fields colourizes (yellow backColour)
exactly the occurrences in fld "TEKST" and cycles finding these by hitting the
enterKey.

What to do?
[1} Make a new button with the following script part 1.
[2] Add the last part of the script to your card script part 2.
Have fun, it takes 5 minutes to test all this with your stack ...

Hermann

## part 1 for button
on mouseUp
 put the millisecs into strt
 put "started : " & the long time into fld "STARTT"
 put empty into fld "STOPT"
 lock screen; lock messages --> speeds up
 set cursor to watch
 put 1 into KTEKST; put 1 into KCOOK
 put fld "WERBS" into WERBS; delete last line of WERBS
 put fld "TEKST" into TEKST
 delete char 1 to offset("PRIDE AND PREJUDICE",TEKST)-1 of TEKST
 --> watch the space after each item, no space before each item
 put "were ,was ,is ,are ,has ,have " into openings
 -- start be lazy
 if there is no fld "STOPT2" then
   clone fld "STOPT"
   set name of last fld to "STOPT2"
   set left of fld "STOPT2" to the left of fld "STOPT"
   set top of fld "STOPT2" to the 40+the top of fld "STOPT"
 end if
 repeat with j=1 to 6
   put ("COOKED" && word 1 of item j of openings) into F
   if there is no field F then
 clone fld "Cooked"
 set name of last fld to F
 set rect of fld F to (0,0,275,150)
 set topleft of fld F to \
   (item j of "95,95,380,380,670,670", item j of 
"590,740,590,740,590,740")
 set tabstops of fld F to 128
   end if
 end repeat
 -- end be lazy
 repeat for each item W in openings
   put ("COOKED" && word 1 of W) into F
   put empty into RM; put empty into RM1
   set itemdelimiter to W; put TEKST into TEKST2
   delete item 1 of TEKST2; put 1 into X
   repeat for each item I in TEKST2
 put W & trueword 1 of I into Y --> important is "trueword", compare to 
"word"
 add 1 to word 1 of RM[Y]
 add 1 to X; put space & X after RM[Y] 
   end repeat
   -- write these 'keys' at top
   repeat for each line L in WERBS
 put RM[W & L] into wL
 if wL is empty then put 0 into wL
 put cr & W & L & tab & wL after RM1
   end repeat
   combine RM by cr and tab
   put W & ": diff cases" & tab & (the number of lines of RM) & \
 cr & RM1 & cr&cr & RM into fld F
   set textstyle of line 1 of fld F to "bold"
   set textstyle of line 3 to 2+(the num of lines of WERBS) of fld F to "italic"
   set hilitedLines of fld F to 1
   set itemdelimiter to comma
 end repeat
 put "finished : " & the long time into fld "STOPT"
 put (the short name of me)&": "&(the millisecs - strt)&" ms" into fld "STOPT2"
 unlock screen; unlock messages
end mouseUp

## part 2 for card script
local toFind

on mouseUp
 if "cooked " is in the short name of the target then
   set cursor to watch; lock screen; lock messages
   put length(fld "TEKST") into L
   set textcolor of char 1 to L of fld "TEKST" to "0,0,0"
   set backColor of char 1 to L of fld "TEKST" to "255,255,255"
   put the value of the clickline into cL
   colorWords cL
   unlock screen; unlock messages
 end if
end mouseUp

on colorWords x
 set itemdel to tab
 put item 2 of x into wrds
 put 1 + word 1 of wrds into N
 set itemdel to ((trueword 1 of x) & space)
 repeat with j=2 to N
   set backcolor of trueword 1 of item (word j of wrds) of fld "TEKST" to 
"255,255,0"
 end repeat
 put "find whole" && quote & (trueword 1 to 2 of x) & quote && \
   "in fld" && quote & "TEKST" & quote into toFind
 select before trueword 1 of item (word N of wrds) of fld "TEKST" -- the last 
hit
 set itemdel to comma
 do toFind
end colorWords

on enterinField
 do toFind
end enterinField

-- end of scripts
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Colouring words

2015-08-10 Thread J. Landman Gay

On 8/10/2015 12:39 PM, Richmond wrote:


but, because one cannot set the textColor of a word in a stringVariable
it is very slow with large texts because it has to work within the field.


That's why I usually use the html suggestion that Mark S. provided. 
After getting the htmltext of the field, you can replace all instances 
of the target word with color tags in one line of code. Then set the 
htmltext of the field to the resulting value of the variable:


get the htmltext of fld "what"
replace "finalSolution666" with "finalSolution666" in it

set the htmltext of fld "what" to it

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Colouring words

2015-08-10 Thread Michael Doub
I was going to suggest looking at styledText too,  but it is kind of 
tricky to insert a run within the array.


I think Richmond should look at some of the text routines in the 
masterLibrary.   There are several that might be interesting:


LineOffsets returns a list of lines that contain a string within 
container - create a list of each line that contains "only"


WordOffsets returns a list of word offsets of a string within a 
container - create a new list that has line number and  the word offsets 
within the line.


wordBounds returns the start and end character of a word specified by 
line number and work offset. -  Based on the line number and word 
offset, get the start and end character and change the color within the 
field variable with the screen locked.





On 8/10/15 1:59 PM, Mike Bonner wrote:

It sounds like you might want to look at the styledtext.  Its a bit
convoluted, but once you get it figured out, it should be very fast.

Pseudo code for this would be..
put the text of the field into a variable.
repeat for each line (paragraph) and build up an array of "runs" with
descriptive text styling for each paragraph.
Apply the resulting array to the field.

Sounds simple.. Isn't.


On Mon, Aug 10, 2015 at 11:40 AM, Michael Doub  wrote:


Yet another approach:

put "this is the only  one" into fld 1

put empty into s1
put empty into e1
get MatchChunk (line 1of  fld 1,"(?i).+(only).+",s1,e1)
-- the regexp capture returns the start and end characters the match

set the textcolor of char s1 to e1 of line 1 of fld 1 to red

On 8/10/15 12:03 PM, Mike Bonner wrote:


You can do this..  Still a bit ugly but it works.

set the textcolor of trueword ( truewordoffset("only",line 5 of field 1))
of line 5 of field 1 to red


On Mon, Aug 10, 2015 at 9:13 AM, Richmond 
wrote:

On 10/08/15 16:51, dunb...@aol.com wrote:

@Mark


There is nothing wrong with setting the textColor of an entire line. Any
valid chunk expression would do.

No, there is nothing wrong with that, but that is not what I want to do.

Richmond.


@, Richmond:


What are you seeing? Why does it not work? I am in v 6.7.


Craig Newman




___

use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

___

use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode




___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: [OT-ish] naming a MeetUp group

2015-08-10 Thread Bill Vlahos
Martin,

I’m involved with a couple of MeetUp groups. My experience is similar to yours 
regarding the lack of attendance even when people confirm they are coming.

Bill Vlahos

> On Aug 9, 2015, at 7:21 AM, Martin Koob  wrote:
> 
> I set up a meet-up group page in Toronto
> 
> http://www.meetup.com/Greater-Toronto-Area-LiveCode-Users-Group/members/
> 
> I was hoping to specifically focus on LiveCode so included that in the name.  
>  
> 
> You also set a headline for the group.  I used the following to hilite the
> multi platform capabilities.
> 
> "LiveCode: write once, deploy on iOS, Android, Mac OS X, Windows, Linux,
> Server"
> 
> I think if you are trying to appeal to new programmers they may not know
> that 'High level' means.  It may actually sound more difficult,  i.e. you
> are working at a high level.
> 
> Maybe in the group headline you can explain that high level languages are
> easier to use.
> 
> "Coding doesn't need to be scary, high level languages have all of the power
> to do what you want done with less of the complexity. If you have an idea
> for an app and want to get started right away join this meet-up.
> 
> I am not sure how much of that will fit in the headline.
> 
> With the Toronto LiveCode meet up group members keep joining, it is up to 35
> now.  However I have not had much luck getting people to come out to a meet
> up.
> 
> Martin
> 
> 
> 
> 
> 
> 
> --
> View this message in context: 
> http://runtime-revolution.278305.n4.nabble.com/OT-ish-naming-a-MeetUp-group-tp4694690p4694725.html
> Sent from the Revolution - User mailing list archive at Nabble.com.
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: [YO EDINBURGH!] Microsoft Open-Sources It's Toolkit For Making iOS Apps Run On Win 10

2015-08-10 Thread Roger Eller
Thankfully, hardware convergence is finally coming.  If the latest
generation Atom processors had been around when the iPad took the world by
storm, we would have seen something quite different.  I can now get a fully
functional Dell tablet that is lighter and thinner than an iPad, but it can
run LiveCode any other Windows application.  These Win tablets have GPS
and accelerometers, so why not support them?  Check out the latest Android
Lollipop LapTabLopLet (what else would you call it?):  The Dell Venue 10
7000

.


On Mon, Aug 10, 2015 at 1:13 PM, Mark Talluto 
wrote:

>
> > On Aug 10, 2015, at 10:00 AM, Roger Eller 
> wrote:
> >
> > I wouldn't know.  Why?  Because I chose LiveCode (actually MetaCard)
> > because my code could be written only once, and it worked the same on
> Mac,
> > Win, and Irix at that time.  Sure there were always shell calls once in a
> > while, but overall, the original designers of the language put in some
> real
> > effort to make it that way, and I truly appreciate all the work that went
> > into making it so seamless.
>
> I appreciate your desire for a fully unified experience. Keep in mind,
> technology has changed a lot since MetaCard. And, features have improve and
> become more complex since MetaCard. It is one thing to write data to a file
> using a unified method for all platforms. It is another to address mobile
> specific features between each OS with varying levels of sophistication.
> Even Apple uses a different/modified OS between all its hardware line.
>
> Where equality breaks in LiveCode, it seems reasonable to me. It looks
> like this will only continue until the various OS and hardware manufactures
> get together and unify what is available on each system. Desktops will be
> the last ones to get GPS and accelerometer support. Not holding my breath
> on that.
>
>
> Best regards,
>
> Mark Talluto
> canelasoftware.com
>
> CassiaDB: The easy to use, free local storage database made for LiveCode
> Developers: livecloud.io
>
>
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Choosing a database and LC tools

2015-08-10 Thread Peter Haworth
Hi Tom,
SQLite should do what you need but a few notes for you.

SQLite doesn't have an array datatype.  The usual way of handling this type
of data in any SQL database is to store each key and value of the array in
a separate table that is linked to your main table by an id of some sort
that would have the same value in both tables.

You could also get round it by arrayEncoding them before putting them in
the database and then arrayDecoding them on the way out.

It's pretty easy to store images in columns with a data type of BLOB,
although it requires some slightly different LC coding to SELECT them.
Also be aware that LC used to encode BLOB data in a proprietary way but
then removed the encoding in a release which I can't quite remember.  Only
an issue if you expect to access the database with versions of LC both
before and after the change.  Plus it's controllable via an sqliteoption
parameter for revOpenDatabase.

I will contact you off list re contract work and a couple of other
suggestions.

Pete


On Mon, Aug 10, 2015 at 9:40 AM tbodine 
wrote:

> Hi,
>
> I want to add a content library module to a LiveCode-built project. It will
> enable users to store, tag, sort and retrieve their content. I've read
> various threads and articles about databases, but I have minimal database
> experience and I want to get it right the first time. So I'd appreciate
> answers to these questions and any other insights:
>
> 1) Is SQLite the best choice for local database file with a Livecode
> interface? (Each database record will need to hold a few sentences of
> Unicode text, 1 or 2 small arrays, the text contents of a few cprops, and a
> field for tags the user can apply to categorize the various records.) I
> doubt the number of records would ever exceed 10,000 with an average more
> like 2,000.
>
> 2) The content of some records may have associated images or audio files. I
> can store the paths to those, but paths break easily. How much does it
> bloat
> or burden a database to store jpgs, pngs, wavs or aifs files in records?
>
> 3) I see there are a few 3rd-party tools for database work with Livecode.
> (SQLyoga, SQLiteAdmin and SQLMagic). Are there others? Are these current
> with LC7?
>
> 4) Are there contract developers in the LC community that specialize in
> setting up databases with LC interfaces?
>
> Thanks!
> Tom B.
>
>
>
> --
> View this message in context:
> http://runtime-revolution.278305.n4.nabble.com/Choosing-a-database-and-LC-tools-tp4694777.html
> Sent from the Revolution - User mailing list archive at Nabble.com.
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Colouring words

2015-08-10 Thread Mike Bonner
It sounds like you might want to look at the styledtext.  Its a bit
convoluted, but once you get it figured out, it should be very fast.

Pseudo code for this would be..
put the text of the field into a variable.
repeat for each line (paragraph) and build up an array of "runs" with
descriptive text styling for each paragraph.
Apply the resulting array to the field.

Sounds simple.. Isn't.


On Mon, Aug 10, 2015 at 11:40 AM, Michael Doub  wrote:

> Yet another approach:
>
>put "this is the only  one" into fld 1
>
>put empty into s1
>put empty into e1
>get MatchChunk (line 1of  fld 1,"(?i).+(only).+",s1,e1)
> -- the regexp capture returns the start and end characters the match
>
>set the textcolor of char s1 to e1 of line 1 of fld 1 to red
>
> On 8/10/15 12:03 PM, Mike Bonner wrote:
>
>> You can do this..  Still a bit ugly but it works.
>>
>> set the textcolor of trueword ( truewordoffset("only",line 5 of field 1))
>> of line 5 of field 1 to red
>>
>>
>> On Mon, Aug 10, 2015 at 9:13 AM, Richmond 
>> wrote:
>>
>> On 10/08/15 16:51, dunb...@aol.com wrote:
>>>
>>> @Mark


 There is nothing wrong with setting the textColor of an entire line. Any
 valid chunk expression would do.

 No, there is nothing wrong with that, but that is not what I want to do.
>>>
>>> Richmond.
>>>
>>>
>>> @, Richmond:


 What are you seeing? Why does it not work? I am in v 6.7.


 Craig Newman




 ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>>
>>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>
>>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Colouring words

2015-08-10 Thread Michael Doub

Yet another approach:

   put "this is the only  one" into fld 1

   put empty into s1
   put empty into e1
   get MatchChunk (line 1of  fld 1,"(?i).+(only).+",s1,e1)
-- the regexp capture returns the start and end characters the match

   set the textcolor of char s1 to e1 of line 1 of fld 1 to red

On 8/10/15 12:03 PM, Mike Bonner wrote:

You can do this..  Still a bit ugly but it works.

set the textcolor of trueword ( truewordoffset("only",line 5 of field 1))
of line 5 of field 1 to red


On Mon, Aug 10, 2015 at 9:13 AM, Richmond 
wrote:


On 10/08/15 16:51, dunb...@aol.com wrote:


@Mark


There is nothing wrong with setting the textColor of an entire line. Any
valid chunk expression would do.


No, there is nothing wrong with that, but that is not what I want to do.

Richmond.



@, Richmond:


What are you seeing? Why does it not work? I am in v 6.7.


Craig Newman





___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode




___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Choosing a database and LC tools

2015-08-10 Thread Mark Talluto

> On Aug 10, 2015, at 9:36 AM, tbodine  wrote:
> 
> 1) Is SQLite the best choice for local database file with a Livecode
> interface? (Each database record will need to hold a few sentences of
> Unicode text, 1 or 2 small arrays, the text contents of a few cprops, and a
> field for tags the user can apply to categorize the various records.) I
> doubt the number of records would ever exceed 10,000 with an average more
> like 2,000.
> 
> 2) The content of some records may have associated images or audio files. I
> can store the paths to those, but paths break easily. How much does it bloat
> or burden a database to store jpgs, pngs, wavs or aifs files in records?
> 
> 3) I see there are a few 3rd-party tools for database work with Livecode.
> (SQLyoga, SQLiteAdmin and SQLMagic). Are there others? Are these current
> with LC7? 
> 
> 4) Are there contract developers in the LC community that specialize in
> setting up databases with LC interfaces? 

Hi Tom,

Another 3rd party option is CassiaDB. The local database is free. You can learn 
more about it at LiveCloud.io. 
If you have any questions about it, feel free to write us.

Best regards,

Mark Talluto
canelasoftware.com

CassiaDB: The easy to use, free local storage database made for LiveCode 
Developers: livecloud.io




___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Colouring words

2015-08-10 Thread Richmond
The thing that emerges from my question is that to colour a word or 
phrase programmatically
in a textField is a fiddly business and it would be nice (??) if a 
simpler way to do this were introduced.


This works very well:

on mouseUp
   put 1 into VOCABLE
   repeat until word VOCABLE in fld "TEKST" is "finalSolution666"
  put VOCABLE into fld "KOUNT"
  if word VOCABLE of fld "TEKST" is "the" then
 set the textColor of word VOCABLE of fld "TEKST" to red
  end if
  add 1 to VOCABLE
   end repeat
end mouseUp


but, because one cannot set the textColor of a word in a stringVariable
it is very slow with large texts because it has to work within the field.

Richmond.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: [YO EDINBURGH!] Microsoft Open-Sources It's Toolkit For Making iOS Apps Run On Win 10

2015-08-10 Thread Richmond

On 10/08/15 20:13, Mark Talluto wrote:

On Aug 10, 2015, at 10:00 AM, Roger Eller  wrote:

I wouldn't know.  Why?  Because I chose LiveCode (actually MetaCard)
because my code could be written only once, and it worked the same on Mac,
Win, and Irix at that time.  Sure there were always shell calls once in a
while, but overall, the original designers of the language put in some real
effort to make it that way, and I truly appreciate all the work that went
into making it so seamless.

I appreciate your desire for a fully unified experience. Keep in mind, 
technology has changed a lot since MetaCard. And, features have improve and 
become more complex since MetaCard. It is one thing to write data to a file 
using a unified method for all platforms. It is another to address mobile 
specific features between each OS with varying levels of sophistication. Even 
Apple uses a different/modified OS between all its hardware line.

Where equality breaks in LiveCode, it seems reasonable to me. It looks like 
this will only continue until the various OS and hardware manufactures get 
together and unify what is available on each system. Desktops will be the last 
ones to get GPS and accelerometer support. Not holding my breath on that.


Quite frankly, as far as I can see, expecting 100% cross-platform 
portability is expecting too much.


The fact that LiveCode manages about 90% is amazing: especially when one 
considers that there are precious few

others that can offer that sort of level of cross-platform stuff.

Richmond.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: [YO EDINBURGH!] Microsoft Open-Sources It's Toolkit For Making iOS Apps Run On Win 10

2015-08-10 Thread Richmond

On 10/08/15 20:00, Roger Eller wrote:

I wouldn't know.  Why?  Because I chose LiveCode (actually MetaCard)
because my code could be written only once, and it worked the same on Mac,
Win, and Irix at that time.  Sure there were always shell calls once in a
while, but overall, the original designers of the language put in some real
effort to make it that way, and I truly appreciate all the work that went
into making it so seamless.


Indeed!

I got involved with LiveCode when I was working at the University of St. 
Andrews
and needed to write a series of programs for Chinese, Japanese and 
Korean students get their heads
around the 'joys' of English phonetics that would work, with Quicktime, 
on both Windows and Macintosh 9 & 10.


I later developed a software package ("Listen Hear") for school kids to 
learn about different types of music,

that could run on both Macs and Windows systems.

There didn't really seem anything else that could do that without a 
near-vertical learning curve at the time.





On Mon, Aug 10, 2015 at 11:33 AM, Richard Gaskin 
wrote:
Roger Eller wrote:

...a term that is in the dictionary should work exactly the

same across all supported platforms.


Is that how it works in Microsoft Visual Studio?


Wow! that made me laugh because right behind me, on the bed, there 
reclines an incredibly attractive . . . book
entitled "Practical Visual Basic 6" by Reselman, Pruchniak, Peasley and 
Smith, which I, in a fit of foolishness spent 22 pounds sterling

on when I was "studying" at the "University" of Abertay.

For some unknown reason, my cats seem to like the book and often sleep 
on top of it - quite appropriate really.


I am very glad I studied Visual Basic 6. Not because Visual Basic 6 is 
any good, frankly. Because every exercise Mrs Lobster (ok, ok, her real
name was Mrs Crab) gave us was a complete pain in the bum to put 
together and get working in VB6, so at the end of every practical session
I would go home and do the same exercise in LiveCode (or Runtime 
Revolution as it then was) in about 10% of the time, and much more
easily. Considering I had been using LiveCode for about 18 months at 
that stage, and had never had any classes in it (well, admittedly,
Mrs Lobster was incompetent - I remembered things from my BASIC classes 
from about 30 years before, when I was 13/14 - that she
kept getting wrong), it just served to show me what a "Clunk, Clunk, 
Clunk" VB6 was.


AND, Visual Basic is a single-platform language (and it runs on my 
least-favourite platform).




--
  Richard Gaskin
  


Richmond.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: [YO EDINBURGH!] Microsoft Open-Sources It's Toolkit For Making iOS Apps Run On Win 10

2015-08-10 Thread Mark Talluto

> On Aug 10, 2015, at 10:00 AM, Roger Eller  wrote:
> 
> I wouldn't know.  Why?  Because I chose LiveCode (actually MetaCard)
> because my code could be written only once, and it worked the same on Mac,
> Win, and Irix at that time.  Sure there were always shell calls once in a
> while, but overall, the original designers of the language put in some real
> effort to make it that way, and I truly appreciate all the work that went
> into making it so seamless.

I appreciate your desire for a fully unified experience. Keep in mind, 
technology has changed a lot since MetaCard. And, features have improve and 
become more complex since MetaCard. It is one thing to write data to a file 
using a unified method for all platforms. It is another to address mobile 
specific features between each OS with varying levels of sophistication. Even 
Apple uses a different/modified OS between all its hardware line. 

Where equality breaks in LiveCode, it seems reasonable to me. It looks like 
this will only continue until the various OS and hardware manufactures get 
together and unify what is available on each system. Desktops will be the last 
ones to get GPS and accelerometer support. Not holding my breath on that.


Best regards,

Mark Talluto
canelasoftware.com

CassiaDB: The easy to use, free local storage database made for LiveCode 
Developers: livecloud.io




___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: [YO EDINBURGH!] Microsoft Open-Sources It's Toolkit For Making iOS Apps Run On Win 10

2015-08-10 Thread Roger Eller
I wouldn't know.  Why?  Because I chose LiveCode (actually MetaCard)
because my code could be written only once, and it worked the same on Mac,
Win, and Irix at that time.  Sure there were always shell calls once in a
while, but overall, the original designers of the language put in some real
effort to make it that way, and I truly appreciate all the work that went
into making it so seamless.


On Mon, Aug 10, 2015 at 11:33 AM, Richard Gaskin  wrote:

> Roger Eller wrote:
>
> ...a term that is in the dictionary should work exactly the
>> same across all supported platforms.
>>
>
> Is that how it works in Microsoft Visual Studio?
>
> --
>  Richard Gaskin
>  Fourth World Systems
>  Software Design and Development for Desktop, Mobile, and Web
>  
>  ambassa...@fourthworld.comhttp://www.FourthWorld.com
>
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Colouring words

2015-08-10 Thread dunbarx
Richmond.


I see, you wanted to use the literal word as a chunk expression. But you surely 
know this is not valid in LC, and will have to use the wordOffset or something 
similar so you can get an actual valid chunk.


Craig






-Original Message-
From: Richmond 
To: How to use LiveCode 
Sent: Mon, Aug 10, 2015 7:40 am
Subject: Colouring words


what is wrong with this:

if line 5 of fld "WHAT" contains "only" then
  
set the textColor of "only" in line 5 of fld "WHAT" to red
  end
if

???

I would like to set certain phrases in a sentence to a different

textColor to the other words . . .

. . . should be dead
easy.

Richmond.

___
use-livecode
mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe,
unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

 
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Choosing a database and LC tools

2015-08-10 Thread tbodine
Hi,

I want to add a content library module to a LiveCode-built project. It will
enable users to store, tag, sort and retrieve their content. I've read
various threads and articles about databases, but I have minimal database
experience and I want to get it right the first time. So I'd appreciate
answers to these questions and any other insights: 

1) Is SQLite the best choice for local database file with a Livecode
interface? (Each database record will need to hold a few sentences of
Unicode text, 1 or 2 small arrays, the text contents of a few cprops, and a
field for tags the user can apply to categorize the various records.) I
doubt the number of records would ever exceed 10,000 with an average more
like 2,000.

2) The content of some records may have associated images or audio files. I
can store the paths to those, but paths break easily. How much does it bloat
or burden a database to store jpgs, pngs, wavs or aifs files in records?

3) I see there are a few 3rd-party tools for database work with Livecode.
(SQLyoga, SQLiteAdmin and SQLMagic). Are there others? Are these current
with LC7? 

4) Are there contract developers in the LC community that specialize in
setting up databases with LC interfaces? 

Thanks!
Tom B.



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Choosing-a-database-and-LC-tools-tp4694777.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Colouring words

2015-08-10 Thread Richmond

On 10/08/15 19:03, Mike Bonner wrote:

oh. Assuming you're on a version of lc that supports truewords




Mine all seem to support falsewords . . .

Err, sorry, the mask slipped there a minute :/

I see that version 7.0.5 supports truewords, and that's good enough for me.

Thanks for that one.

Richmond.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Colouring words

2015-08-10 Thread Mike Bonner
You can do this..  Still a bit ugly but it works.

set the textcolor of trueword ( truewordoffset("only",line 5 of field 1))
of line 5 of field 1 to red


On Mon, Aug 10, 2015 at 9:13 AM, Richmond 
wrote:

> On 10/08/15 16:51, dunb...@aol.com wrote:
>
>> @Mark
>>
>>
>> There is nothing wrong with setting the textColor of an entire line. Any
>> valid chunk expression would do.
>>
>
> No, there is nothing wrong with that, but that is not what I want to do.
>
> Richmond.
>
>
>>
>> @, Richmond:
>>
>>
>> What are you seeing? Why does it not work? I am in v 6.7.
>>
>>
>> Craig Newman
>>
>>
>>
>>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Colouring words

2015-08-10 Thread Mike Bonner
oh. Assuming you're on a version of lc that supports truewords

On Mon, Aug 10, 2015 at 10:03 AM, Mike Bonner  wrote:

> You can do this..  Still a bit ugly but it works.
>
> set the textcolor of trueword ( truewordoffset("only",line 5 of field 1))
> of line 5 of field 1 to red
>
>
> On Mon, Aug 10, 2015 at 9:13 AM, Richmond 
> wrote:
>
>> On 10/08/15 16:51, dunb...@aol.com wrote:
>>
>>> @Mark
>>>
>>>
>>> There is nothing wrong with setting the textColor of an entire line. Any
>>> valid chunk expression would do.
>>>
>>
>> No, there is nothing wrong with that, but that is not what I want to do.
>>
>> Richmond.
>>
>>
>>>
>>> @, Richmond:
>>>
>>>
>>> What are you seeing? Why does it not work? I am in v 6.7.
>>>
>>>
>>> Craig Newman
>>>
>>>
>>>
>>>
>>
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>
>
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: [YO EDINBURGH!] Microsoft Open-Sources It's Toolkit For Making iOS Apps Run On Win 10

2015-08-10 Thread Malte Brill
> I think the majority of you have iOS devices
> because it is what you LIKE, not because it represents what the majority or
> even half of the population HAVE.

While I agree that feature (and syntax) parity is not (yet) achieved in 
liveCode (And why on earth do the mobile commands STILL throw errors in the 
IDE?) I disagree that it necessariely makes sense to run after a certain 
platform only because there are more devices sold. A broader market of devices 
to deploy to, not necessariely gives us better ROI. If the users buy the cheap 
devices, they are less likely to open the purse for apps (monetize via ads?) If 
we develop for business users, not end users (who are much more likely to open 
the purse for development / consulting) then we can expend only high end / 
prestige devices. 

While I know that many of you alreay deploy to mobile and some of you surely 
monetize there, I also still find too many hoops to jump through before I 
regard it as a viable platform.I certainly wish for a more optimized engine 
with syntax parity wherever possible. But with the current engine I would not 
bet my income on targeting on building liveCode apps for low end devices.

3 € cents (due to inflation)

All the best,

Malte
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: [YO EDINBURGH!] Microsoft Open-Sources It's Toolkit For Making iOS Apps Run On Win 10

2015-08-10 Thread Richard Gaskin

Roger Eller wrote:

I have to say this, because I believe ti to be true.  LiveCode developers
are part of the problem.  I think the majority of you have iOS devices
because it is what you LIKE, not because it represents what the majority or
even half of the population HAVE.  Inexpensive Android devices are getting
better and better specs all the time, and lots of people buy them.  THEY
should be our focus, not just our favorites.


I would agree that the whole process does seem rather Apple-centric at 
times, but did you see the Release Notes for 7.1dp1?  The LC engine now 
supports Android intents -- see the new mobileLaunchData function.


This is also a good example of how different OS APIs can make a LiveCode 
feature complicated when the team attempts to make it the same on all 
platforms:  iOS doesn't have intents, using Actions instead.  Android 
intents are relatively simple to code for and work very similarly to url 
schemes, so it's been pretty straightforward for the team to add that. 
 They do indeed intend to also action Actions support for iOS, but like 
so many Cocoa things it's not nearly as simple, and given the full range 
of priorities on their plate won't be in v7.1.


Complete feature parity sounds simple, but once you dive into the 
implementation details it's clear that OSes just don't often work the 
same, requiring tough decisions about what gets delivered now and what 
gets delivered later.


But at least those of us deploying to the 80% using Android finally have 
a feature that isn't all about Apple.  And a very useful one at that.


And in the meantime, anyone in a position to add Actions support to the 
engine sooner than the core team can is welcome to submit the pull request.


--
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for Desktop, Mobile, and Web
 
 ambassa...@fourthworld.comhttp://www.FourthWorld.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: [YO EDINBURGH!] Microsoft Open-Sources It's Toolkit For Making iOS Apps Run On Win 10

2015-08-10 Thread Richard Gaskin

Roger Eller wrote:


...a term that is in the dictionary should work exactly the
same across all supported platforms.


Is that how it works in Microsoft Visual Studio?

--
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for Desktop, Mobile, and Web
 
 ambassa...@fourthworld.comhttp://www.FourthWorld.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: [YO EDINBURGH!] Microsoft Open-Sources It's Toolkit For Making iOS Apps Run On Win 10

2015-08-10 Thread Roger Eller
I have to say this, because I believe ti to be true.  LiveCode developers
are part of the problem.  I think the majority of you have iOS devices
because it is what you LIKE, not because it represents what the majority or
even half of the population HAVE.  Inexpensive Android devices are getting
better and better specs all the time, and lots of people buy them.  THEY
should be our focus, not just our favorites.


On Mon, Aug 10, 2015 at 11:12 AM, Mike Kerner 
wrote:

> +1 Roger, +1 Pierre.
>
> On the first one, Roger, I completely agree, MORE SEAMLESS cross-platform,
> more attention to Android (and Win 10, etc.) is important, even if it's
> only because it says to the rest of the world "Cross-platform for
> realises".
> I also agree with Pierre on where the investment goes.  We're doing most of
> our work, right now, on iOS, so that's mostly what I'm paying folks to
> extend.  I would bet that Monte is responding to demand, because if I said
> "Hey, Monte, I want blah, blah, blah for Android", I would get it.  Right
> now it's "Hey, I want blah, blah, blah for iOS", so, , I get
> blah, blah, blah for iOS.
>
> On Mon, Aug 10, 2015 at 10:49 AM, Pierre Sahores 
> wrote:
>
> > Hi Roger,
> >
> > It’s simply no way to achieve 100% of cross platform ability as long as
> > some features available, say, on the native Xcode’s iOS platform are not
> on
> > the native Android SDK/NDK/JNI side and vice-versa ! Instead of
> complaining
> > about this fact and, again, instead of limiting the cross platform
> ability
> > of LiveCode to the less commun denominator of the different platforms LC
> > covers, Edinburgh and external providers (Monte, …) extends it, each time
> > it can be reliable and useful with special targeted features on one or an
> > other platform and, gracefully, it’s, IMHO, the most we can get for
> staying
> > as productive as possible from all of these beloved LC cookers ;D
> >
> > Best,
> >
> > Pierre
> > --
> > Pierre Sahores
> > mobile : 06 03 95 77 70
> > www.sahores-conseil.com
> >
> > > Le 10 août 2015 à 16:26, Roger Eller  a
> > écrit :
> > >
> > > Although LC calls itself cross-platform, I despise the fact that
> commands
> > > in the dictionary, particularly for mobile, have quirks that make it a
> > > little different for Android than iOS.  If it wants to call itself
> > > cross-platform, a term that is in the dictionary should work exactly
> the
> > > same across all supported platforms.  I would also be more likely to
> > invest
> > > more into externals if they didn't focus on a single preferred OS
> rather
> > > than looking at the market potential for LC devs to build x-plat apps.
> > LC
> > > tools should all be required to be x-plat - period. /just one opinion.
> > >
> > > ~Roger
> > >
> > > On Mon, Aug 10, 2015 at 9:56 AM, Mike Kerner <
> mikeker...@roadrunner.com>
> > > wrote:
> > >
> > >> Back in The Days Of The Language Wars, it was important, but now, with
> > so
> > >> many specialty languages for so many reasons, it becomes much less of
> an
> > >> issue.  The PL bigots have been upended by uncompiled web languages.
> > >>
> > >> Whether it's this or Xojo or something else, LC still has a lead for
> > >> building cross-platform apps.  Hopefully 8 will extend that lead and
> > >> exploit it, more, because, really, web portals aren't the same.
> > >>
> > >> --
> > >> On the first day, God created the heavens and the Earth
> > >> On the second day, God created the oceans.
> > >> On the third day, God put the animals on hold for a few hours,
> > >>   and did a little diving.
> > >> And God said, "This is good."
> > > ___
> > > use-livecode mailing list
> > > use-livecode@lists.runrev.com
> > > Please visit this url to subscribe, unsubscribe and manage your
> > subscription preferences:
> > > http://lists.runrev.com/mailman/listinfo/use-livecode
> >
> >
> > ___
> > use-livecode mailing list
> > use-livecode@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> > subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
> >
>
>
>
> --
> On the first day, God created the heavens and the Earth
> On the second day, God created the oceans.
> On the third day, God put the animals on hold for a few hours,
>and did a little diving.
> And God said, "This is good."
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: [YO EDINBURGH!] Microsoft Open-Sources It's Toolkit For Making iOS Apps Run On Win 10

2015-08-10 Thread Roger Eller
It is also irritating when the assumption is always that so many features
are unavailable to the Android platform, and bright shiny iOS has
everything you could ever dream of.  I call BS on that as all major apps
out there work exactly the same on both platforms.  I have never read that
"Netflix can't play movies because Google didn't provide an easy Android
SDK for AV to it's developers."


On Mon, Aug 10, 2015 at 10:49 AM, Pierre Sahores 
wrote:

> Hi Roger,
>
> It’s simply no way to achieve 100% of cross platform ability as long as
> some features available, say, on the native Xcode’s iOS platform are not on
> the native Android SDK/NDK/JNI side and vice-versa ! Instead of complaining
> about this fact and, again, instead of limiting the cross platform ability
> of LiveCode to the less commun denominator of the different platforms LC
> covers, Edinburgh and external providers (Monte, …) extends it, each time
> it can be reliable and useful with special targeted features on one or an
> other platform and, gracefully, it’s, IMHO, the most we can get for staying
> as productive as possible from all of these beloved LC cookers ;D
>
> Best,
>
> Pierre
> --
> Pierre Sahores
> mobile : 06 03 95 77 70
> www.sahores-conseil.com
>
> > Le 10 août 2015 à 16:26, Roger Eller  a
> écrit :
> >
> > Although LC calls itself cross-platform, I despise the fact that commands
> > in the dictionary, particularly for mobile, have quirks that make it a
> > little different for Android than iOS.  If it wants to call itself
> > cross-platform, a term that is in the dictionary should work exactly the
> > same across all supported platforms.  I would also be more likely to
> invest
> > more into externals if they didn't focus on a single preferred OS rather
> > than looking at the market potential for LC devs to build x-plat apps.
> LC
> > tools should all be required to be x-plat - period. /just one opinion.
> >
> > ~Roger
> >
> > On Mon, Aug 10, 2015 at 9:56 AM, Mike Kerner 
> > wrote:
> >
> >> Back in The Days Of The Language Wars, it was important, but now, with
> so
> >> many specialty languages for so many reasons, it becomes much less of an
> >> issue.  The PL bigots have been upended by uncompiled web languages.
> >>
> >> Whether it's this or Xojo or something else, LC still has a lead for
> >> building cross-platform apps.  Hopefully 8 will extend that lead and
> >> exploit it, more, because, really, web portals aren't the same.
> >>
> >> --
> >> On the first day, God created the heavens and the Earth
> >> On the second day, God created the oceans.
> >> On the third day, God put the animals on hold for a few hours,
> >>   and did a little diving.
> >> And God said, "This is good."
> > ___
> > use-livecode mailing list
> > use-livecode@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Colouring words

2015-08-10 Thread Richmond

On 10/08/15 16:51, dunb...@aol.com wrote:

@Mark


There is nothing wrong with setting the textColor of an entire line. Any valid 
chunk expression would do.


No, there is nothing wrong with that, but that is not what I want to do.

Richmond.




@, Richmond:


What are you seeing? Why does it not work? I am in v 6.7.


Craig Newman






___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: [YO EDINBURGH!] Microsoft Open-Sources It's Toolkit For Making iOS Apps Run On Win 10

2015-08-10 Thread Mike Kerner
+1 Roger, +1 Pierre.

On the first one, Roger, I completely agree, MORE SEAMLESS cross-platform,
more attention to Android (and Win 10, etc.) is important, even if it's
only because it says to the rest of the world "Cross-platform for realises".
I also agree with Pierre on where the investment goes.  We're doing most of
our work, right now, on iOS, so that's mostly what I'm paying folks to
extend.  I would bet that Monte is responding to demand, because if I said
"Hey, Monte, I want blah, blah, blah for Android", I would get it.  Right
now it's "Hey, I want blah, blah, blah for iOS", so, , I get
blah, blah, blah for iOS.

On Mon, Aug 10, 2015 at 10:49 AM, Pierre Sahores 
wrote:

> Hi Roger,
>
> It’s simply no way to achieve 100% of cross platform ability as long as
> some features available, say, on the native Xcode’s iOS platform are not on
> the native Android SDK/NDK/JNI side and vice-versa ! Instead of complaining
> about this fact and, again, instead of limiting the cross platform ability
> of LiveCode to the less commun denominator of the different platforms LC
> covers, Edinburgh and external providers (Monte, …) extends it, each time
> it can be reliable and useful with special targeted features on one or an
> other platform and, gracefully, it’s, IMHO, the most we can get for staying
> as productive as possible from all of these beloved LC cookers ;D
>
> Best,
>
> Pierre
> --
> Pierre Sahores
> mobile : 06 03 95 77 70
> www.sahores-conseil.com
>
> > Le 10 août 2015 à 16:26, Roger Eller  a
> écrit :
> >
> > Although LC calls itself cross-platform, I despise the fact that commands
> > in the dictionary, particularly for mobile, have quirks that make it a
> > little different for Android than iOS.  If it wants to call itself
> > cross-platform, a term that is in the dictionary should work exactly the
> > same across all supported platforms.  I would also be more likely to
> invest
> > more into externals if they didn't focus on a single preferred OS rather
> > than looking at the market potential for LC devs to build x-plat apps.
> LC
> > tools should all be required to be x-plat - period. /just one opinion.
> >
> > ~Roger
> >
> > On Mon, Aug 10, 2015 at 9:56 AM, Mike Kerner 
> > wrote:
> >
> >> Back in The Days Of The Language Wars, it was important, but now, with
> so
> >> many specialty languages for so many reasons, it becomes much less of an
> >> issue.  The PL bigots have been upended by uncompiled web languages.
> >>
> >> Whether it's this or Xojo or something else, LC still has a lead for
> >> building cross-platform apps.  Hopefully 8 will extend that lead and
> >> exploit it, more, because, really, web portals aren't the same.
> >>
> >> --
> >> On the first day, God created the heavens and the Earth
> >> On the second day, God created the oceans.
> >> On the third day, God put the animals on hold for a few hours,
> >>   and did a little diving.
> >> And God said, "This is good."
> > ___
> > use-livecode mailing list
> > use-livecode@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



-- 
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
   and did a little diving.
And God said, "This is good."
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: [YO EDINBURGH!] Microsoft Open-Sources It's Toolkit For Making iOS Apps Run On Win 10

2015-08-10 Thread Pierre Sahores
Hi Roger,

It’s simply no way to achieve 100% of cross platform ability as long as some 
features available, say, on the native Xcode’s iOS platform are not on the 
native Android SDK/NDK/JNI side and vice-versa ! Instead of complaining about 
this fact and, again, instead of limiting the cross platform ability of 
LiveCode to the less commun denominator of the different platforms LC covers, 
Edinburgh and external providers (Monte, …) extends it, each time it can be 
reliable and useful with special targeted features on one or an other platform 
and, gracefully, it’s, IMHO, the most we can get for staying as productive as 
possible from all of these beloved LC cookers ;D

Best,

Pierre
--
Pierre Sahores
mobile : 06 03 95 77 70
www.sahores-conseil.com

> Le 10 août 2015 à 16:26, Roger Eller  a écrit :
> 
> Although LC calls itself cross-platform, I despise the fact that commands
> in the dictionary, particularly for mobile, have quirks that make it a
> little different for Android than iOS.  If it wants to call itself
> cross-platform, a term that is in the dictionary should work exactly the
> same across all supported platforms.  I would also be more likely to invest
> more into externals if they didn't focus on a single preferred OS rather
> than looking at the market potential for LC devs to build x-plat apps.  LC
> tools should all be required to be x-plat - period. /just one opinion.
> 
> ~Roger
> 
> On Mon, Aug 10, 2015 at 9:56 AM, Mike Kerner 
> wrote:
> 
>> Back in The Days Of The Language Wars, it was important, but now, with so
>> many specialty languages for so many reasons, it becomes much less of an
>> issue.  The PL bigots have been upended by uncompiled web languages.
>> 
>> Whether it's this or Xojo or something else, LC still has a lead for
>> building cross-platform apps.  Hopefully 8 will extend that lead and
>> exploit it, more, because, really, web portals aren't the same.
>> 
>> --
>> On the first day, God created the heavens and the Earth
>> On the second day, God created the oceans.
>> On the third day, God put the animals on hold for a few hours,
>>   and did a little diving.
>> And God said, "This is good."
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: [YO EDINBURGH!] Microsoft Open-Sources It's Toolkit For Making iOS Apps Run On Win 10

2015-08-10 Thread Roger Eller
Although LC calls itself cross-platform, I despise the fact that commands
in the dictionary, particularly for mobile, have quirks that make it a
little different for Android than iOS.  If it wants to call itself
cross-platform, a term that is in the dictionary should work exactly the
same across all supported platforms.  I would also be more likely to invest
more into externals if they didn't focus on a single preferred OS rather
than looking at the market potential for LC devs to build x-plat apps.  LC
tools should all be required to be x-plat - period. /just one opinion.

~Roger

On Mon, Aug 10, 2015 at 9:56 AM, Mike Kerner 
wrote:

> Back in The Days Of The Language Wars, it was important, but now, with so
> many specialty languages for so many reasons, it becomes much less of an
> issue.  The PL bigots have been upended by uncompiled web languages.
>
> Whether it's this or Xojo or something else, LC still has a lead for
> building cross-platform apps.  Hopefully 8 will extend that lead and
> exploit it, more, because, really, web portals aren't the same.
>
> --
> On the first day, God created the heavens and the Earth
> On the second day, God created the oceans.
> On the third day, God put the animals on hold for a few hours,
>and did a little diving.
> And God said, "This is good."
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: [YO EDINBURGH!] Microsoft Open-Sources It's Toolkit For Making iOS Apps Run On Win 10

2015-08-10 Thread Mike Kerner
Back in The Days Of The Language Wars, it was important, but now, with so
many specialty languages for so many reasons, it becomes much less of an
issue.  The PL bigots have been upended by uncompiled web languages.

Whether it's this or Xojo or something else, LC still has a lead for
building cross-platform apps.  Hopefully 8 will extend that lead and
exploit it, more, because, really, web portals aren't the same.

-- 
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
   and did a little diving.
And God said, "This is good."
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Colouring words

2015-08-10 Thread dunbarx
@Mark


There is nothing wrong with setting the textColor of an entire line. Any valid 
chunk expression would do.


@, Richmond:


What are you seeing? Why does it not work? I am in v 6.7.


Craig Newman






-Original Message-
From: Richmond 
To: How to use LiveCode 
Sent: Mon, Aug 10, 2015 8:58 am
Subject: Re: Colouring words


On 10/08/15 14:45, Mark Schonewille wrote:
> Hi Richmond,
>
> It may not be
as easy as you think:
>
> repeat with x = 1 to number of words of line y of
fld "What"
>   if word x of line y of fld "What" is "only" then
> set the
textColor of word x of line y of fld "What" to red
>   end if
> end
repeat
>
> or
>
> put the htmlText of fld "What" into myText
> replace
"only" with "only set the htmlText of fld "What" to myText
>
> Both approaches have
advantages and disadvantages.
>
> -- 
> Best regards,
>
> Mark
Schonewille
>
>



> On 8/10/2015 13:39, Richmond wrote:
>> what is
wrong with this:
>>
>> if line 5 of fld "WHAT" contains "only" then
>>   
set the textColor of "only" in line 5 of fld "WHAT" to red
>>   end
if
>>
>> ???
>>
>> I would like to set certain phrases in a sentence to a
different
>> textColor to the other words . . .
>>
>> . . . should be dead
easy.
>>
>> Richmond.

Oh, well . . .

I was well aware I could do
this:

on mouseUp
set the textColor of word 3 of line 1 of fld "WHAT" to
red
end mouseUp


it just seemed incredibly longwinded to have to write
stuff like this:

on mouseUp
if word 3 of line 1 of fld "WHAT" is "only"
then
set the textColor of word 3 of line 1 of fld "WHAT" to red
end
if
end mouseUp

and then, as you have suggested, write a routine to trawl
through all 
the words in a
line.

Richmond.

___
use-livecode
mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe,
unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

 
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Colouring words

2015-08-10 Thread Richmond

On 10/08/15 14:45, Mark Schonewille wrote:

Hi Richmond,

It may not be as easy as you think:

repeat with x = 1 to number of words of line y of fld "What"
  if word x of line y of fld "What" is "only" then
set the textColor of word x of line y of fld "What" to red
  end if
end repeat

or

put the htmlText of fld "What" into myText
replace "only" with "only




On 8/10/2015 13:39, Richmond wrote:

what is wrong with this:

if line 5 of fld "WHAT" contains "only" then
  set the textColor of "only" in line 5 of fld "WHAT" to red
  end if

???

I would like to set certain phrases in a sentence to a different
textColor to the other words . . .

. . . should be dead easy.

Richmond.


Oh, well . . .

I was well aware I could do this:

on mouseUp
   set the textColor of word 3 of line 1 of fld "WHAT" to red
end mouseUp


it just seemed incredibly longwinded to have to write stuff like this:

on mouseUp
   if word 3 of line 1 of fld "WHAT" is "only" then
   set the textColor of word 3 of line 1 of fld "WHAT" to red
   end if
end mouseUp

and then, as you have suggested, write a routine to trawl through all 
the words in a line.


Richmond.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Colouring words

2015-08-10 Thread Mark Schonewille

Hi Richmond,

It may not be as easy as you think:

repeat with x = 1 to number of words of line y of fld "What"
  if word x of line y of fld "What" is "only" then
set the textColor of word x of line y of fld "What" to red
  end if
end repeat

or

put the htmlText of fld "What" into myText
replace "only" with "onlyhttp://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553

Installer Maker for LiveCode:
http://qery.us/468

Buy my new book "Programming LiveCode for the Real Beginner" 
http://qery.us/3fi


LiveCode on Facebook:
https://www.facebook.com/groups/runrev/

On 8/10/2015 13:39, Richmond wrote:

what is wrong with this:

if line 5 of fld "WHAT" contains "only" then
  set the textColor of "only" in line 5 of fld "WHAT" to red
  end if

???

I would like to set certain phrases in a sentence to a different
textColor to the other words . . .

. . . should be dead easy.

Richmond.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Colouring words

2015-08-10 Thread Richmond

what is wrong with this:

if line 5 of fld "WHAT" contains "only" then
 set the textColor of "only" in line 5 of fld "WHAT" to red
 end if

???

I would like to set certain phrases in a sentence to a different 
textColor to the other words . . .


. . . should be dead easy.

Richmond.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Jane Austen's peculiarity

2015-08-10 Thread Richmond

My current version is here:

https://www.dropbox.com/sh/ja47l87gg87sn0q/AAAIj99kEQVOb8ev3jz8C5ORa?dl=0

File : TA.zip

play with it, rip it to pieces, improve it: go on, I dare you :)

Richmond.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode