Re: Library Stack and Mobile

2011-12-22 Thread J. Landman Gay

On 12/22/11 9:10 PM, J. Landman Gay wrote:


The "revPreOpenstack" message will be sent to your library stack when
the IDE opens it immediately after startup.


On second thought, I think that's not quite right. Your library will get 
the message whenever any stack opens, but you're right it will be after 
your working stack finishes opening.


To load your library whenever the IDE opens, put the start using command 
into a preOpenstack handler in the library stack. Then when the IDE 
opens it, it should execute. If you do it that way, you won't need to 
use revPreOpenstack at all. I just looked at one of my library stacks 
(which I should have done before,) and I have a preOpenstack handler in 
the first card (so it won't interfere with anything else.) It starts up 
and gets used every time the IDE launches.


--
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: Library Stack and Mobile

2011-12-22 Thread J. Landman Gay

On 12/22/11 5:04 PM, Ralph DiMola wrote:

Jacqueline,

Thanks!

Even when I set it up as you suggested, the lib stack is not available
during the apps openCard script. The revopenstack message to the plug-in is
behind the stack and card open/preopen messages of the app. Interestingly
enough if I put an answer dialog in the openstack handler of the app the lib
is available after I hit OK. Take out the answer dialog and the lib is not
available until all the opens and propens are complete. Is this just the way
the messages path crumbles? Or am I missing something? I will just put a
"start using" in the apps preopen. That will fix it.


The "revPreOpenstack" message will be sent to your library stack when 
the IDE opens it immediately after startup. Your library should have a 
"revPreOpenstack" handler that just puts its stack in use, so it should 
already be available by the time your working stack opens. Did you 
restart LiveCode? That's when the IDE will load your library. If 
something else is going on (I'm a little confused about what's happening 
exactly) then just specifically putting it in use is fine too.


The plugin setup, of course, is an IDE-only thing. It won't work that 
way in a standalone.




On the mobile front I trying to avoid putting MY_library.livecode as a copy
file because that exposes my code (and encryption method) to prying eyes.
The app stack seems to be buried and compressed somewhere in the apk and not
easy to expose. Any Ideas on this


Password protect the stack, which will hide its code. File inclusions 
are tucked into the apk too, so they won't be hanging around loose 
somewhere anyway. Of course, it isn't hard to undo an apk and see the 
files inside, but if your stacks are passworded then no one can read them.


--
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: How to tell when a datagrid column has been resized

2011-12-22 Thread Pete
There's a mouseUp handler in the default header behavior script for a
datagrid that looks like this:

*on* mouseUp pMouseBtnNum

   *if* pMouseBtnNum is 1 and not the dgHeaderColumnIsBeingResized of
thedgHeader
of me *then*

  *## Change the sort of the column*

  *## _HeaderToggleSortOfColumn is a helper that resizes in the parent
group script.*

  *## It toggles the sort of the column based on current state of
column.*

  _HeaderToggleSortOfColumn the dgColumn of me

   *end* *if*

   *pass* mouseUp

*end* mouseUp


You might be able to figure something out from that.  For example , set the
default header behavior script to your own copy of it and then if
the dgHeaderColumnIsBeingResized property is true, do whatever it is you
need to do.


Pete

On Thu, Dec 22, 2011 at 5:11 PM, Bob Sneidar  wrote:

> > Hi all. I have read up on all the lessons that might help, as well as
> searched the datagrid library, and I cannot find anyplace where a message
> gets sent when a column has been resized. I would like to trap that message
> so the next time around I can set up the datagrid the way it was last. Any
> ideas?
> >
> > Bob
> >
> >
> Never mind. I figured out a way. I just put a handler for getprop
> dgColumnWidth [pColumn] in the script of the datagrid and then pass it when
> through. I think I was hoping for some kind of message to get sent when the
> resize was FINISHED. This gets sent when a column resize is in progress,
> even if the column is not changing in size at the time. As long as the
> mouse is down on the column divider, it keeps triggering. It feels dirty
> somehow, like I ought to be trying to be more efficient, and can't be.
>
> Oh well. I have CPU cycles to spare I guess...
>
> Bob
>
>
>
> ___
> 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
>
>


-- 
Pete
Molly's Revenge 
___
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


How to tell when a datagrid column has been resized

2011-12-22 Thread Bob Sneidar
> Hi all. I have read up on all the lessons that might help, as well as 
> searched the datagrid library, and I cannot find anyplace where a message 
> gets sent when a column has been resized. I would like to trap that message 
> so the next time around I can set up the datagrid the way it was last. Any 
> ideas?
> 
> Bob
> 
> 
Never mind. I figured out a way. I just put a handler for getprop dgColumnWidth 
[pColumn] in the script of the datagrid and then pass it when through. I think 
I was hoping for some kind of message to get sent when the resize was FINISHED. 
This gets sent when a column resize is in progress, even if the column is not 
changing in size at the time. As long as the mouse is down on the column 
divider, it keeps triggering. It feels dirty somehow, like I ought to be trying 
to be more efficient, and can't be. 

Oh well. I have CPU cycles to spare I guess...

Bob



___
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: Option Menu Question

2011-12-22 Thread Mark Schonewille
Hey, that works! Nice solution!

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553

Become our partner in sales http://qery.us/1bq Start selling Color Converter 
today. 20% commission!

On 23 dec 2011, at 01:37, Pete wrote:

> I think I have found a way to do this without using multiple controls.
> 
> I have a preOpenCard handler like this:
> 
> on preOpenCard
>   set the text of button "myMenu" to "Select an option..."
>   set the textColor of myMenu to "#66" --makes the text grey
> end preOpenCard
> 
> I put the following mouseDown handler into the option menu script.
> 
> *on* mouseDown
> 
>   *set* the text of me to the textOptions of me
> 
>   *set* the textColor of me to black
> 
> *end* mouseDown
> 
> 
> The textOption custom property contains the real options for the menu.
> I'll probably put the initial prompt text into a custom property too so
> it's more general purpose - will also make it easier to check if the user
> selected an option or not.
> 
> 
> That seems to work just fine but there may be some corner cases I haven't
> tested.


___
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: Option Menu Question

2011-12-22 Thread Pete
I think I have found a way to do this without using multiple controls.

I have a preOpenCard handler like this:

on preOpenCard
   set the text of button "myMenu" to "Select an option..."
   set the textColor of myMenu to "#66" --makes the text grey
end preOpenCard

I put the following mouseDown handler into the option menu script.

*on* mouseDown

   *set* the text of me to the textOptions of me

   *set* the textColor of me to black

*end* mouseDown


The textOption custom property contains the real options for the menu.
 I'll probably put the initial prompt text into a custom property too so
it's more general purpose - will also make it easier to check if the user
selected an option or not.


That seems to work just fine but there may be some corner cases I haven't
tested.

On Thu, Dec 22, 2011 at 2:49 PM, Mark Schonewille <
m.schonewi...@economy-x-talk.com> wrote:

> Hi Craig,
>
> I put a field on top of the option menu button and send the message to the
> underlying option menu button, which shows the popup menu button, or you
> can do it all directly from the field. The script in the popup menu button
> can put the picked item into the field.
>
> --
> Best regards,
>
> Mark Schonewille
>
> Economy-x-Talk Consulting and Software Engineering
> Homepage: http://economy-x-talk.com
> Twitter: http://twitter.com/xtalkprogrammer
> KvK: 50277553
>
> Become our partner in sales http://qery.us/1bq Start selling Color
> Converter today. 20% commission!
>
> On 22 dec 2011, at 23:44, dunb...@aol.com wrote:
>
> > Mark.
> >
> >
> > The same issue with a popup as with the option: you can grey out a
> pulled menuItem with a prepended "(", but it will not show such in the
> normal rest state. Did you mean that this style of button can have this
> feature?
> >
> >
> > Or did you mean that you can roll your own, with greyed text in an
> opaque field overlying the combo? Pete wanted the rest state of menuItem 1
> to be greyed. The options themselves can be managed directly once pulled.
> >
> >
> > Craig
> >
>
>
> ___
> 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
>
>


-- 
Pete
Molly's Revenge 
___
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


How to tell when a datagrid column has been resized

2011-12-22 Thread Bob Sneidar
Hi all. I have read up on all the lessons that might help, as well as searched 
the datagrid library, and I cannot find anyplace where a message gets sent when 
a column has been resized. I would like to trap that message so the next time 
around I can set up the datagrid the way it was last. Any ideas?

Bob



___
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: Library Stack and Mobile

2011-12-22 Thread Ralph DiMola
Jacqueline,

Thanks!

Even when I set it up as you suggested, the lib stack is not available
during the apps openCard script. The revopenstack message to the plug-in is
behind the stack and card open/preopen messages of the app. Interestingly
enough if I put an answer dialog in the openstack handler of the app the lib
is available after I hit OK. Take out the answer dialog and the lib is not
available until all the opens and propens are complete. Is this just the way
the messages path crumbles? Or am I missing something? I will just put a
"start using" in the apps preopen. That will fix it.

On the mobile front I trying to avoid putting MY_library.livecode as a copy
file because that exposes my code (and encryption method) to prying eyes.
The app stack seems to be buried and compressed somewhere in the apk and not
easy to expose. Any Ideas on this

Thanks!

Ralph DiMola
IT Director
Evergreen Information Services


-Original Message-
From: use-livecode-boun...@lists.runrev.com
[mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of J. Landman Gay
Sent: Thursday, December 22, 2011 3:21 PM
To: How to use LiveCode
Subject: Re: Library Stack and Mobile

On 12/22/11 1:09 PM, Ralph DiMola wrote:
> I know this have been visited and read the forums, but still can't get
> library stack to work on mobile. I am testing on Android but will also be
> deploying to iOS.
>
> I put the library stack into the plug-in folder with a
>
> on preOpenStack
> start using this stack
> end preOpenStack
>
> This makes it only available if you open LC first THEN open your app
stack.
> If LC is closed and you click on a app stack the library is not available.
> This was easily fixed by putting 'start using stack "EIS_Library"' in the
> preOpenStack in the app stack.

Instead, go the Plugins Settings in the Development->Plugins menu. 
Select your library stack from the popdown. Set it to open when 
"Revolution starts up". In the list at the right, select the line 
"revPreOpenStack".

Then in your library stack, change your preOpenStack handler to a 
"revPreOpenstack" handler.

LiveCode will now automatically open your stack at every launch, and 
send a "revPreOpenstack" message to it. The library will load whenever 
the IDE opens.

>
> I can't get the 'start using stack "EIS_Library"' to work on Android. I
> included the library stack in the standalone application setting in the
> stacks tab. This also makes it appear in the property inspector "stack
> files" when inspecting the main app stack.
 >
> I hit the test button to the test on the device and the "start using stack
> "EIS_Library" throws an error.

I'd think that should work, but mobile may not be interpreting the file 
locations the same way as the desktop apps do. On mobile, many of the 
file folders are virtual.

Instead of including it in the stacks pane, try including it in the Copy 
Files pane. The stack will be copied to the same folder as the engine in 
your mobile standalone. You can refer to it in your scripts with an 
engine-relative file path, and start using that:

   put specialFolderPath("engine") & "/EIS_Library.livecode" into tPath
   start using stack tPath

Untested, but should work.

-- 
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


___
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: Option Menu Question

2011-12-22 Thread Mark Schonewille
Hi Craig,

I put a field on top of the option menu button and send the message to the 
underlying option menu button, which shows the popup menu button, or you can do 
it all directly from the field. The script in the popup menu button can put the 
picked item into the field.

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553

Become our partner in sales http://qery.us/1bq Start selling Color Converter 
today. 20% commission!

On 22 dec 2011, at 23:44, dunb...@aol.com wrote:

> Mark.
> 
> 
> The same issue with a popup as with the option: you can grey out a pulled 
> menuItem with a prepended "(", but it will not show such in the normal rest 
> state. Did you mean that this style of button can have this feature?
> 
> 
> Or did you mean that you can roll your own, with greyed text in an opaque 
> field overlying the combo? Pete wanted the rest state of menuItem 1 to be 
> greyed. The options themselves can be managed directly once pulled.
> 
> 
> Craig
> 


___
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: Option Menu Question

2011-12-22 Thread dunbarx
Mark.


The same issue with a popup as with the option: you can grey out a pulled 
menuItem with a prepended "(", but it will not show such in the normal rest 
state. Did you mean that this style of button can have this feature?


Or did you mean that you can roll your own, with greyed text in an opaque field 
overlying the combo? Pete wanted the rest state of menuItem 1 to be greyed. The 
options themselves can be managed directly once pulled.


Craig



-Original Message-
From: Mark Schonewille 
To: How to use LiveCode 
Sent: Thu, Dec 22, 2011 12:32 pm
Subject: Re: Option Menu Question


Hi Pete,

You can't do that with the option menu, but you can make an empty option menu 
button and use the mouseDown button to show a popup menu button at the 
bottomleft of the option menu button. You can add a grayed-out menu item to the 
popup menu button with a left parenthesis as a prefix.

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553

Become our partner in sales http://qery.us/1bq Start selling Color Converter 
today. 20% commission!

On 22 dec 2011, at 23:20, Pete wrote:

> I often see menus on web pages that display an instruction as their default
> choice, something like "Select a color" for example. It's often greyed out
> and usually disappears when the user clicks on the menu.  I think I can
> figure out how to make it disappear but is there a way to have it be greyed
> out if the other menu choices are not?
> 
> Thanks,
> 
> 
> -- 
> Pete
> Molly's Revenge 



___
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: Option Menu Question

2011-12-22 Thread dunbarx
Pete.


I  prepended "(" to a menuItem in an option menu, but this only greys out that 
particular menuItem when they are all pulled. It does not display it as such in 
its rest state. It would have to be a property of the menuItem, then, no?


Craig



-Original Message-
From: Pete 
To: How to use LiveCode 
Sent: Thu, Dec 22, 2011 12:22 pm
Subject: Option Menu Question


I often see menus on web pages that display an instruction as their default
choice, something like "Select a color" for example. It's often greyed out
and usually disappears when the user clicks on the menu.  I think I can
figure out how to make it disappear but is there a way to have it be greyed
out if the other menu choices are not?

Thanks,


-- 
Pete
Molly's Revenge 
___
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: iPad screenrecording: how?

2011-12-22 Thread Chipp Walters
Here's a decent way of getting diffuse lighting, though you can't tap.
http://www.youtube.com/watch?v=-4pF1lW2-7w

There are other iPhone copy stands with built in diffusers as well.
http://obamapacman.com/2011/12/iphone-copy-stand-modahaus-steady-stand/

On Thu, Dec 22, 2011 at 12:18 PM, Mark Powell wrote:

> > The problem with any of these overhead solutions is that
> > it is really hard to get the lighting right. In fact it
> > is darn near impossible.
> > Todd
>
> Certainly very difficult but not impossible.  See the 'Touching the iPad'
> module here
>
> http://www.lynda.com/iPad-tutorials/tips-and-tricks/68383-2.html
>
> In my book, Lynda.com is the standard for setting up online training
> environments.  How they capture iPad demos with full practical gestures is
> flawless to the point of myth.
>
> Mark
>
>
>
> ___
> 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
>



-- 
Chipp Walters
CEO, Altuit, Inc.
___
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: Option Menu Question

2011-12-22 Thread Mark Schonewille
Hi Pete,

You can't do that with the option menu, but you can make an empty option menu 
button and use the mouseDown button to show a popup menu button at the 
bottomleft of the option menu button. You can add a grayed-out menu item to the 
popup menu button with a left parenthesis as a prefix.

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553

Become our partner in sales http://qery.us/1bq Start selling Color Converter 
today. 20% commission!

On 22 dec 2011, at 23:20, Pete wrote:

> I often see menus on web pages that display an instruction as their default
> choice, something like "Select a color" for example. It's often greyed out
> and usually disappears when the user clicks on the menu.  I think I can
> figure out how to make it disappear but is there a way to have it be greyed
> out if the other menu choices are not?
> 
> Thanks,
> 
> 
> -- 
> Pete
> Molly's Revenge 



___
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


Option Menu Question

2011-12-22 Thread Pete
I often see menus on web pages that display an instruction as their default
choice, something like "Select a color" for example. It's often greyed out
and usually disappears when the user clicks on the menu.  I think I can
figure out how to make it disappear but is there a way to have it be greyed
out if the other menu choices are not?

Thanks,


-- 
Pete
Molly's Revenge 
___
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: Function to Upper and Lower Case sentences

2011-12-22 Thread J. Landman Gay

On 12/21/11 7:00 PM, Sivakatirswami wrote:

well I got this far..


I tinkered with this a little bit last night because I thought a regex 
solution would work, but my skills aren't good enough. So I ended up 
with something similar to what you've already done.



#I think there is a better trim leading/trailing space function I saw
years ago...


I think you're looking for:

 put word 1 to -1 of aSentence into aSentence



replace "!" with "! " in aSentence

# doesn't help unless next word is in my dictionary.
# so I need something to "see" exclamation marks as delimiters, not sure
# how to tackle that if dot is already set as delimiter


I tried using tokens instead of words, which avoids a lot of the problem.



function capitalizeWords theWord
put "ganesha, pancha, gurudeva!,gurudev!,Satguru, ganapathi, ganapati,
yogaswami, siva, shiva, muruga, bodhinatha,lord, nataraja, aum" into
tCapsDictionary

set the itemdel to comma

if tCapsDictionary contains theWord then

--if theWord is among the items of tCapsDictionary
## doesn't work; dunno why...
# so I used "contains"


The reason it fails is due to the spaces in the comma-delimited 
dictionary string. "Among the items of" looks for exact matches, and so 
won't match a word without a leading space. Remove the spaces from the 
dictionary list and it works.


Here is what I ended up with, but there are still problems with it. It 
doesn't account for all possibilities, but it's a start:


on mouseUp
  local tNewSentence
  put the clipboarddata["text"] into tInput

  set the linedel to "."
  repeat for each line aSentence in tInput
put toLower(word 1 to -1 of aSentence) into aSentence -- the shortcut
put toUpper(char 1 of aSentence) into char 1 of aSentence
repeat for each token theWord in aSentence
  if len(theWord) = 1 and charToNum(theWord) < 65 then -- punctuation
if theWord is in "(<{[" then
  put space & theWord after tNewSentence
else
  put theWord & space into last char of tNewSentence
end if
  else -- real words
put capitalizeWords(theWord) into tWord
put tWord & space after tNewSentence
  end if
end repeat
delete char -1 of tNewSentence -- can incorrectly delete; probably 
should data-check it

put tNewSentence &". " after tOutPut
put empty into tNewSentence
  end repeat
  if char 1 of tOutput = "." then delete char 1 of tOutput
  set the clipboarddata["text"] to tOutput
  put tOutput
end mouseUp

function capitalizeWords theWord
  put 
"ganesha,pancha,gurudeva!,gurudev!,Satguru,ganapathi,ganapati,yogaswami,siva,shiva,muruga,bodhinatha,lord,nataraja,aum" 
into tCapsDictionary

  if theWord is among the items of tCapsDictionary then
put toUpper(char 1 of theWord) into char 1 of theWord
  end if
  return theWord
end capitalizeWords

I still think it could be done with regex in way fewer lines...

--
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: Is Control a DataGrid

2011-12-22 Thread Phil Davis

I like dgProps["control type"] too. I was unaware of it.
Phil


On 12/22/11 12:38 PM, Pete wrote:

Hi Todd,
If your code might go out into the wild, I think the dgProps["control
type"] property I mentioned might be slightly safer than using the
dgcontrol property, just because it's highly unlikely anyone would have a
dgProps custom property set outside of a datagrid whereas it's not
inconceivable that might have dgcontrol property in the default custom keys
property set.
Pete

On Thu, Dec 22, 2011 at 9:44 AM, Todd Geistwrote:


In this case I am making a Palette that pops up when groups are selected.
  I need to rule out groups that are inappropriate for the palette. The data
grid is one such group.  Since this code may make it into the wild someday
I can't rely on other people naming conventions to make this work.

While I applaud naming conventions for making things easier to read and
understand, I don't use them for logic. I think it introduces unnecessary
fragility, even if it is just for your own code.

Todd

On Thu, Dec 22, 2011 at 9:13 AM, Bob Sneidar  wrote:


I name all my datagrids starting with "dg", as I name fields with "fld",
labels with "lbl" buttons with "btn" etc. It's been discussed before,

but a

consistent naming convention comes in real handy at times, and makes
sorting by kind in a list of objects possible.

Bob



___
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






--
Phil Davis

PDS Labs
Professional Software Development
http://pdslabs.net


___
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: Is Control a DataGrid

2011-12-22 Thread Pete
Hi Todd,
If your code might go out into the wild, I think the dgProps["control
type"] property I mentioned might be slightly safer than using the
dgcontrol property, just because it's highly unlikely anyone would have a
dgProps custom property set outside of a datagrid whereas it's not
inconceivable that might have dgcontrol property in the default custom keys
property set.
Pete

On Thu, Dec 22, 2011 at 9:44 AM, Todd Geist wrote:

> In this case I am making a Palette that pops up when groups are selected.
>  I need to rule out groups that are inappropriate for the palette. The data
> grid is one such group.  Since this code may make it into the wild someday
> I can't rely on other people naming conventions to make this work.
>
> While I applaud naming conventions for making things easier to read and
> understand, I don't use them for logic. I think it introduces unnecessary
> fragility, even if it is just for your own code.
>
> Todd
>
> On Thu, Dec 22, 2011 at 9:13 AM, Bob Sneidar  wrote:
>
> > I name all my datagrids starting with "dg", as I name fields with "fld",
> > labels with "lbl" buttons with "btn" etc. It's been discussed before,
> but a
> > consistent naming convention comes in real handy at times, and makes
> > sorting by kind in a list of objects possible.
> >
> > Bob
> >
> >
> ___
> 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
>
>


-- 
Pete
Molly's Revenge 
___
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: File time off by an hour...

2011-12-22 Thread Keith (Gulf Breeze Ortho Lab)
Thanks Bernard. I put together some code that will work for practical 
purposes (i.e., utilizing internet time and time zone), but it's still not a 
perfect solution. For now, I will just list the file dates without times...


Cheers from Florida,

- Boo

-Original Message- 
From: Bernard Devlin

Sent: Thursday, December 22, 2011 3:12 AM
To: How to use LiveCode
Subject: Re: File time off by an hour...

Keith,

It seems this issue has come up with Windows and other programming
languages (included those supplied by Microsoft!)

http://stackoverflow.com/questions/4605983/io-file-getlastaccesstime-is-off-by-one-hour

http://stackoverflow.com/questions/6009902/different-timestamps-under-winxp-win7-and-vb-net

In one of the above examples, the user is on CST (maybe that is a factor).

There have been discussions on the list before about converting
date-times between seconds and e.g. internet time.  Instead of using
the short date & time, why don't you run through your file list, and
convert the file time into a list of values, e.g. short date and time,
internet date, etc.  You may find with one of them the difference
disappears.

Also, you could try setting the useSystemDate to true v. false, and
see what you get.

This is a tricky area (really we should all just be on GMT!), as
evinced by the two discussions above from Stack Overflow.

Bernard

On Thu, Dec 22, 2011 at 12:08 AM, Keith (Gulf Breeze Ortho Lab)
 wrote:

H. No responses to this.


___
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: Library Stack and Mobile

2011-12-22 Thread J. Landman Gay

On 12/22/11 1:09 PM, Ralph DiMola wrote:

I know this have been visited and read the forums, but still can't get
library stack to work on mobile. I am testing on Android but will also be
deploying to iOS.

I put the library stack into the plug-in folder with a

on preOpenStack
start using this stack
end preOpenStack

This makes it only available if you open LC first THEN open your app stack.
If LC is closed and you click on a app stack the library is not available.
This was easily fixed by putting 'start using stack "EIS_Library"' in the
preOpenStack in the app stack.


Instead, go the Plugins Settings in the Development->Plugins menu. 
Select your library stack from the popdown. Set it to open when 
"Revolution starts up". In the list at the right, select the line 
"revPreOpenStack".


Then in your library stack, change your preOpenStack handler to a 
"revPreOpenstack" handler.


LiveCode will now automatically open your stack at every launch, and 
send a "revPreOpenstack" message to it. The library will load whenever 
the IDE opens.




I can't get the 'start using stack "EIS_Library"' to work on Android. I
included the library stack in the standalone application setting in the
stacks tab. This also makes it appear in the property inspector "stack
files" when inspecting the main app stack.

>

I hit the test button to the test on the device and the "start using stack
"EIS_Library" throws an error.


I'd think that should work, but mobile may not be interpreting the file 
locations the same way as the desktop apps do. On mobile, many of the 
file folders are virtual.


Instead of including it in the stacks pane, try including it in the Copy 
Files pane. The stack will be copied to the same folder as the engine in 
your mobile standalone. You can refer to it in your scripts with an 
engine-relative file path, and start using that:


  put specialFolderPath("engine") & "/EIS_Library.livecode" into tPath
  start using stack tPath

Untested, but should work.

--
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: iOS: text styles

2011-12-22 Thread J. Landman Gay
Great! I was speculating, so thanks for posting. I'll try to remember 
that trick.


On 12/22/11 12:34 PM, Chris Sheffield wrote:

Yay, this worked! Thanks again for the suggestion. Don't think I would have 
thought of it on my own.

Chris


On Dec 21, 2011, at 8:27 PM, J. Landman Gay wrote:


On 12/21/11 4:42 PM, Chris Sheffield wrote:


Set the standalone settings for iPad, etc. Launch it in the
simulator. Does the word "are" appear in italics? It doesn't for me.
Should it? The same thing works fine in the IDE. But when run in the
simulator or on a device the text is not styled. I did just try using
Helvetica instead of Arial and that seems to work okay.
Unfortunately, I need Arial and not Helvetica.



I vaguely recall something similar happening to me. What I think is going on is 
that iOS won't generate fake styles like bold and italic; it will only use 
fonts that have separate style faces in the font family. I haven't tried it, 
but it might work to set the font name rather than the style:

Howdy! Howare  you today?


--
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: iOS and xml: I don't understand unicode...

2011-12-22 Thread Chris Sheffield
Mark,

Yes! That works. Thank you so much!

Chris


On Dec 22, 2011, at 12:13 PM, Mark Schonewille wrote:

> Hi Chris,
> 
> Read the file as binary, e.g. into variable myVar and then convert it with
> 
> put uniDecode(uniEncode(myVar,"UTF8")) into myVar
> 
> Now you can load the XML tree that's in myVar or parse it as standard ASCII 
> text.
> 
> --
> Best regards,
> 
> Mark Schonewille
> 
> Economy-x-Talk Consulting and Software Engineering
> Homepage: http://economy-x-talk.com
> Twitter: http://twitter.com/xtalkprogrammer
> KvK: 50277553
> 
> Become our partner in sales http://qery.us/1bq Start selling Color Converter 
> today. 20% commission!
> 
> On 22 dec 2011, at 19:47, Chris Sheffield wrote:
> 
>> I need help. In more ways than one, but that's beside the point...
>> 
>> I have a utf-8 encoded xml file that I'm reading data from for display in a 
>> text field. Everything seems to work just fine except for certain unicode 
>> characters, such as the em dash ("—"). When I read in the text and then set 
>> the htmlText property of the field, those characters are getting garbled. Am 
>> I just not understanding how unicode works? Do I need to do something 
>> special to make these characters appear correctly?
>> 
>> What's strange is I can get that same character by using numToChar(209) in 
>> the LiveCode message box, but the character that is in my file does not seem 
>> to be the same one, even though on screen it looks identical. If I test it 
>> with something like:
>> 
>>  if numToChar(209) is in myText then
>> 
>> it returns false. I'm stumped.
>> 
>> Any help would be greatly appreciated.
>> 
>> Thanks,
>> Chris
>> 
>> 
>> --
>> Chris Sheffield
>> Read Naturally, Inc.
>> www.readnaturally.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: iOS and xml: I don't understand unicode...

2011-12-22 Thread Mark Schonewille
Hi Chris,

Read the file as binary, e.g. into variable myVar and then convert it with

put uniDecode(uniEncode(myVar,"UTF8")) into myVar

Now you can load the XML tree that's in myVar or parse it as standard ASCII 
text.

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553

Become our partner in sales http://qery.us/1bq Start selling Color Converter 
today. 20% commission!

On 22 dec 2011, at 19:47, Chris Sheffield wrote:

> I need help. In more ways than one, but that's beside the point...
> 
> I have a utf-8 encoded xml file that I'm reading data from for display in a 
> text field. Everything seems to work just fine except for certain unicode 
> characters, such as the em dash ("—"). When I read in the text and then set 
> the htmlText property of the field, those characters are getting garbled. Am 
> I just not understanding how unicode works? Do I need to do something special 
> to make these characters appear correctly?
> 
> What's strange is I can get that same character by using numToChar(209) in 
> the LiveCode message box, but the character that is in my file does not seem 
> to be the same one, even though on screen it looks identical. If I test it 
> with something like:
> 
>   if numToChar(209) is in myText then
> 
> it returns false. I'm stumped.
> 
> Any help would be greatly appreciated.
> 
> Thanks,
> Chris
> 
> 
> --
> Chris Sheffield
> Read Naturally, Inc.
> www.readnaturally.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


Library Stack and Mobile

2011-12-22 Thread Ralph DiMola
I know this have been visited and read the forums, but still can't get
library stack to work on mobile. I am testing on Android but will also be
deploying to iOS.

I put the library stack into the plug-in folder with a 

on preOpenStack
   start using this stack
end preOpenStack

This makes it only available if you open LC first THEN open your app stack.
If LC is closed and you click on a app stack the library is not available.
This was easily fixed by putting 'start using stack "EIS_Library"' in the
preOpenStack in the app stack.

I can't get the 'start using stack "EIS_Library"' to work on Android. I
included the library stack in the standalone application setting in the
stacks tab. This also makes it appear in the property inspector "stack
files" when inspecting the main app stack.

I hit the test button to the test on the device and the "start using stack
"EIS_Library" throws an error.

Am I missing something?

Thanks!

Ralph DiMola
IT Director
Evergreen Information Services


___
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: is among the words AND find words

2011-12-22 Thread Bob Sneidar
Drat, I had a function that did this very thing, but I replaced it with the 
dbschema_getTable() function in sqlYoga which returns everything you would want 
to know about a table schema. I was not aware  that the CREATE TABLE command 
worked with sqLite. 

Bob


On Dec 22, 2011, at 9:34 AM, Pete wrote:

> Yes, I know about that but the project I'm working on requires me to parse
> out all the individual elements of the CREATE statement, not actually
> create the table.  The PRAGMA commands provide some information about the
> table but you have to parse the CREATE command to get the rest.


___
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


iOS and xml: I don't understand unicode...

2011-12-22 Thread Chris Sheffield
I need help. In more ways than one, but that's beside the point...

I have a utf-8 encoded xml file that I'm reading data from for display in a 
text field. Everything seems to work just fine except for certain unicode 
characters, such as the em dash ("—"). When I read in the text and then set the 
htmlText property of the field, those characters are getting garbled. Am I just 
not understanding how unicode works? Do I need to do something special to make 
these characters appear correctly?

What's strange is I can get that same character by using numToChar(209) in the 
LiveCode message box, but the character that is in my file does not seem to be 
the same one, even though on screen it looks identical. If I test it with 
something like:

if numToChar(209) is in myText then

it returns false. I'm stumped.

Any help would be greatly appreciated.

Thanks,
Chris


--
Chris Sheffield
Read Naturally, Inc.
www.readnaturally.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: iOS: text styles

2011-12-22 Thread Chris Sheffield
Yay, this worked! Thanks again for the suggestion. Don't think I would have 
thought of it on my own.

Chris


On Dec 21, 2011, at 8:27 PM, J. Landman Gay wrote:

> On 12/21/11 4:42 PM, Chris Sheffield wrote:
> 
>> Set the standalone settings for iPad, etc. Launch it in the
>> simulator. Does the word "are" appear in italics? It doesn't for me.
>> Should it? The same thing works fine in the IDE. But when run in the
>> simulator or on a device the text is not styled. I did just try using
>> Helvetica instead of Arial and that seems to work okay.
>> Unfortunately, I need Arial and not Helvetica.
> 
> 
> I vaguely recall something similar happening to me. What I think is going on 
> is that iOS won't generate fake styles like bold and italic; it will only use 
> fonts that have separate style faces in the font family. I haven't tried it, 
> but it might work to set the font name rather than the style:
> 
> Howdy! How are you today?
> 
> The font names for iOS 5 are here: . iOS 4 has all the 
> Arials too.
> 
> -- 
> 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


___
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: iPad screenrecording: how?

2011-12-22 Thread Mark Powell
> The problem with any of these overhead solutions is that 
> it is really hard to get the lighting right. In fact it 
> is darn near impossible.
> Todd

Certainly very difficult but not impossible.  See the 'Touching the iPad' 
module here

http://www.lynda.com/iPad-tutorials/tips-and-tricks/68383-2.html 

In my book, Lynda.com is the standard for setting up online training 
environments.  How they capture iPad demos with full practical gestures is 
flawless to the point of myth.

Mark



___
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


Thanks to Scott Rossi

2011-12-22 Thread Roger Guay
Hi All,

A special thanks to Scott Rossi who again gives us an elegant gift in the 
latest revUP. 

And a wish for a Happy Holiday to all of you on this great list!

Thanks and cheers,
Roger Guay

___
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: Is Control a DataGrid

2011-12-22 Thread Todd Geist
In this case I am making a Palette that pops up when groups are selected.
 I need to rule out groups that are inappropriate for the palette. The data
grid is one such group.  Since this code may make it into the wild someday
I can't rely on other people naming conventions to make this work.

While I applaud naming conventions for making things easier to read and
understand, I don't use them for logic. I think it introduces unnecessary
fragility, even if it is just for your own code.

Todd

On Thu, Dec 22, 2011 at 9:13 AM, Bob Sneidar  wrote:

> I name all my datagrids starting with "dg", as I name fields with "fld",
> labels with "lbl" buttons with "btn" etc. It's been discussed before, but a
> consistent naming convention comes in real handy at times, and makes
> sorting by kind in a list of objects possible.
>
> Bob
>
>
___
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: is among the words AND find words

2011-12-22 Thread Pete
Yes, I know about that but the project I'm working on requires me to parse
out all the individual elements of the CREATE statement, not actually
create the table.  The PRAGMA commands provide some information about the
table but you have to parse the CREATE command to get the rest.

On Thu, Dec 22, 2011 at 9:06 AM, Bob Sneidar  wrote:

> Open the sqLite_master table. In it you will find a column called SQL with
> entries for how to create each table.
>
> Bob
>
>
> On Dec 21, 2011, at 2:08 PM, Pete wrote:
>
> > I think I tried that but the arguments aren't always comma delimited
> > unfortunately.  Somewhat related,I wish SQLite provided more formatted
> > access to the table structures.  Some stuff is available via the PRAGMA
> > statements but for other information, there's no alternative but to parse
> > the CREATE TABLE statement.  I think I found a series of SQL statements
> > once that built the equivalent of mySQL Information tables for SQLite but
> > now I can't find it!
> >
> >
> > On Wed, Dec 21, 2011 at 1:49 PM, Bob Sneidar  wrote:
> >
> >> OIC good point. But wouldn't it be better simply isolate the comma
> >> delimited arguments (usually in parens) in an SQL statement and then
> deal
> >> with them as items? But I suppose there are all kinds of special
> >> circumstances that would make a general purpose word function very
> unwieldy.
> >>
> >> Bob
> >>
> >> On Dec 21, 2011, at 1:17 PM, Pete wrote:
> >>
> >>> Not really - try parsing out an SQL SELECT statement.  Granted that's
> not
> >>> really English text but if you want to make this a general purpose
> >>> function, you have to deal with that circumstance.  I needed to do that
> >> and
> >>> ended up going through the text and inserting a space after each comma
> if
> >>> there wasn't already one there.
> >>>
> >>> On Wed, Dec 21, 2011 at 12:54 PM, Bob Sneidar  wrote:
> >>>
>  I suppose it could be argued that everything would break down if the
> >> text
>  were "now,is,the,time,for,all,goo,men..." but at some point we have to
>  presume the absence of the absurd? to have 2 words split by a comma
> is a
>  problem with the data, not with the software.
> 
>  Bob
> 
> 
>  On Dec 21, 2011, at 12:09 PM, Mark Wieder wrote:
> 
> > Yes, but... if the phrase is "now is the time,for all good men" then
> a
> > search for "all" will return 5 instead of 6.
> >
> > --
> > -Mark Wieder
> > mwie...@ahsoftware.net
> 
> 
>  ___
>  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
> 
> 
> >>>
> >>>
> >>> --
> >>> Pete
> >>> Molly's Revenge 
> >>> ___
> >>> 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
> >>
> >>
> >
> >
> > --
> > Pete
> > Molly's Revenge 
> > ___
> > 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
>
>


-- 
Pete
Molly's Revenge 
___
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: Is Control a DataGrid

2011-12-22 Thread Bob Sneidar
I name all my datagrids starting with "dg", as I name fields with "fld", labels 
with "lbl" buttons with "btn" etc. It's been discussed before, but a consistent 
naming convention comes in real handy at times, and makes sorting by kind in a 
list of objects possible. 

Bob


On Dec 21, 2011, at 9:21 PM, Todd Geist wrote:

> Hello,
> 
> When Looping through controls on a card, how does one determine if the
> current control is a DataGrid?
> 
> Actually I want to know that it is NOT a DataGrid.
> 
> Thanks
> 
> Todd
> 
> -- 
> Todd Geist
> ___
> 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: is among the words AND find words

2011-12-22 Thread Bob Sneidar

On Dec 22, 2011, at 7:17 AM, Jim Hurley wrote:

> Dave,
> 
> Ah! Those mighty regular expressions. Sm day I'll have to study up on 
> them.

DO YOU VALUE YOUR SANITY??? DON'T DO IT
___
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: is among the words AND find words

2011-12-22 Thread Bob Sneidar
Open the sqLite_master table. In it you will find a column called SQL with 
entries for how to create each table. 

Bob


On Dec 21, 2011, at 2:08 PM, Pete wrote:

> I think I tried that but the arguments aren't always comma delimited
> unfortunately.  Somewhat related,I wish SQLite provided more formatted
> access to the table structures.  Some stuff is available via the PRAGMA
> statements but for other information, there's no alternative but to parse
> the CREATE TABLE statement.  I think I found a series of SQL statements
> once that built the equivalent of mySQL Information tables for SQLite but
> now I can't find it!
> 
> 
> On Wed, Dec 21, 2011 at 1:49 PM, Bob Sneidar  wrote:
> 
>> OIC good point. But wouldn't it be better simply isolate the comma
>> delimited arguments (usually in parens) in an SQL statement and then deal
>> with them as items? But I suppose there are all kinds of special
>> circumstances that would make a general purpose word function very unwieldy.
>> 
>> Bob
>> 
>> On Dec 21, 2011, at 1:17 PM, Pete wrote:
>> 
>>> Not really - try parsing out an SQL SELECT statement.  Granted that's not
>>> really English text but if you want to make this a general purpose
>>> function, you have to deal with that circumstance.  I needed to do that
>> and
>>> ended up going through the text and inserting a space after each comma if
>>> there wasn't already one there.
>>> 
>>> On Wed, Dec 21, 2011 at 12:54 PM, Bob Sneidar  wrote:
>>> 
 I suppose it could be argued that everything would break down if the
>> text
 were "now,is,the,time,for,all,goo,men..." but at some point we have to
 presume the absence of the absurd? to have 2 words split by a comma is a
 problem with the data, not with the software.
 
 Bob
 
 
 On Dec 21, 2011, at 12:09 PM, Mark Wieder wrote:
 
> Yes, but... if the phrase is "now is the time,for all good men" then a
> search for "all" will return 5 instead of 6.
> 
> --
> -Mark Wieder
> mwie...@ahsoftware.net
 
 
 ___
 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
 
 
>>> 
>>> 
>>> --
>>> Pete
>>> Molly's Revenge 
>>> ___
>>> 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
>> 
>> 
> 
> 
> -- 
> Pete
> Molly's Revenge 
> ___
> 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: revAndroidPlugin and the Android SDK

2011-12-22 Thread Ralph DiMola
Bernard,

All fixed. THANKS!!!  I knew there was an old issue but couldn't remember
the exact file whose existence was being verified.

Ralph DiMola
IT Director
Evergreen Information Services
Phone: 518-636-3998 Ex:11
Cell: 518-796-9332


-Original Message-
From: use-livecode-boun...@lists.runrev.com
[mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of Bernard Devlin
Sent: Thursday, December 22, 2011 10:40 AM
To: How to use LiveCode
Subject: Re: revAndroidPlugin and the Android SDK

It sounds familiar.  There was a discussion on the mailing list about
a missing aapt.exe before. Look for the thread "LiveCode for Android
under Windows"

Bernard

On Thu, Dec 22, 2011 at 2:42 PM, Ralph DiMola 
wrote:
> main prefs liked the plug-in tells me: "That is not a usable SDK root:
> missing aapt tool, make sure your SDK install has not been corrupted". Is
> this the same problem that LC proper had when the SDK upgraded to I think
> v12 and LC had to adjust their validation technique?

___
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: Is Control a DataGrid

2011-12-22 Thread Pete
You can also check the dgProps["control type"].  For datagrids, this is set
to "Data Grid".

On Thu, Dec 22, 2011 at 7:03 AM, Todd Geist wrote:

> Thanks!
>
> On Wed, Dec 21, 2011 at 10:45 PM, Phil Davis  wrote:
>
> > Hi Todd,
> >
> > This should work unless you use 'dgControl' as your own custom prop name
> > anywhere:
> >
> > if the dgControl of control x = empty then -- this is NOT a DG
> >-- do stuff here
> > end if
> >
> > Phil Davis
>
>
> Todd
> ___
> 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
>
>


-- 
Pete
Molly's Revenge 
___
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: revAndroidPlugin and the Android SDK

2011-12-22 Thread Bernard Devlin
It sounds familiar.  There was a discussion on the mailing list about
a missing aapt.exe before. Look for the thread "LiveCode for Android
under Windows"

Bernard

On Thu, Dec 22, 2011 at 2:42 PM, Ralph DiMola  wrote:
> main prefs liked the plug-in tells me: "That is not a usable SDK root:
> missing aapt tool, make sure your SDK install has not been corrupted". Is
> this the same problem that LC proper had when the SDK upgraded to I think
> v12 and LC had to adjust their validation technique?

___
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: iOS: text styles

2011-12-22 Thread Chris Sheffield
Thanks, Jacque. I'll give that a try. Kind of a pain, but if it keeps me going 
I'm happy.

Chris



On Dec 21, 2011, at 8:27 PM, J. Landman Gay wrote:

> On 12/21/11 4:42 PM, Chris Sheffield wrote:
> 
>> Set the standalone settings for iPad, etc. Launch it in the
>> simulator. Does the word "are" appear in italics? It doesn't for me.
>> Should it? The same thing works fine in the IDE. But when run in the
>> simulator or on a device the text is not styled. I did just try using
>> Helvetica instead of Arial and that seems to work okay.
>> Unfortunately, I need Arial and not Helvetica.
> 
> 
> I vaguely recall something similar happening to me. What I think is going on 
> is that iOS won't generate fake styles like bold and italic; it will only use 
> fonts that have separate style faces in the font family. I haven't tried it, 
> but it might work to set the font name rather than the style:
> 
> Howdy! How are you today?
> 
> The font names for iOS 5 are here: . iOS 4 has all the 
> Arials too.
> 
> -- 
> 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


___
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: iPad screenrecording: how?

2011-12-22 Thread Todd Geist
On Wed, Dec 21, 2011 at 11:06 PM, Chipp Walters  wrote:

> You could try this
>
> http://www.ponoko.com/design-your-own/products/scandock-2703
>
>
The problem with any of these overhead solutions is that it is really hard
to get the lighting right. In fact it is darn near impossible.

Todd
___
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: is among the words AND find words

2011-12-22 Thread Jim Hurley
Dave,

Ah! Those mighty regular expressions. Sm day I'll have to study up on them.

Yes that works very nicely. 

The other method (one that I understand ;) ) now boils down to this:

on mouseUp
   put field 1 into tText
   put containsWord("time", tText)
end mouseUp

function containsWord tWord, tList
   replace quote with "" in tList
   replace "." with "" in tList
   return tWord is among the tokens of tList
end containsWord

Jim



> Late to the thread.
> 
> If the purpose is just to see whether the word exists in a string, would this 
> work (using regular expressions)?
> 
> on mouseUp
>put "Some timely text with time, and more." into tString
>put "time" into tTarget
>put containsWord(tTarget, tString) 
> end mouseUp
> 
> function containsWord tWord, tString
>put "(?i)\b" & tWord & "\b" into tRE
>return matchText(tString, tRE)
> end containsWord
> 
> "\b" is the regular expression "word boundary" pattern. 
> "(?i)" makes the match case insensitive.
> 
> Cheers
> Dave

___
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: is among the words AND find words

2011-12-22 Thread Jim Hurley
Very good Hugh. This adds another level of versatility, first by the addition 
of a "rule" and then by returning a word count.

You are right about what constitutes a word. That is what is nice about having 
a "rule".

BTW: The previous "token" method can be changed into a count by replacing this 
code

repeat for each item tWordNum in tNums
 put word tWordNum of tList into tTestWord  
if tWord is among the tokens of tTestWord then return true   
end repeat
   --If all the tests fail, then return false
 return false

With the following:

put 0 into tCount
repeat for each item tWordNum in tNums
 put word tWordNum of tList into tTestWord  
if tWord is among the tokens of tTestWord then add 1 to tCount  
end repeat
return tCount

Jim



> Aha. So we are now only testing 'exist', and not the word number? Since I've
> already written this, I'll post it anyway...
> 
> The problem (as always when this topic is raised) is the definition of a
> 'word', as indicated by the additional inclusion of 'token' in the language,
> and thus the definition of 'punctuation'. I believe LC inherited the
> definition of a 'word' from HyperCard for compatibility.
> 
> Is $10 one word or two?
> Is my_Var one word or two?
> Is half-baked one word or two?
> Do the same rules apply across non-English languages? And unicode langauges?
> 
> Perhaps there is no single definition and some modifiers are needed such as
> 'strict'...
> 
> on mouseUp
>   put findWord(fld 1,"men","strict")
> end mouseUp
> 
> function findWord pContent,pStr,pRule
>   if pRule="strict" then
> put COMMA"E&TAB&CR&":;'." into tPunctuation
>   else
> --| Adjust according to requirements...
> put COMMA"E&TAB&CR&":;'.^&*()_-+={}[]@~#<>/|\!?" into tPunctuation
>   end if
>   repeat for each char L in tPunctuation
> replace L with SPACE in pContent
>   end repeat
>   if pStr is among the words of pContent then
> return num of words of char 1 to offset(pStr,pContent) of pContent
>   else return 0
> end findWord
> 
> 
> Hugh Senior
> FLCo
> 
> 
> Jim Hurley wrote:
> 
> Strike most of my last message. It appears that most of the function can be
> replaced with an examination of the entire text (dah)  as in:
> 
> put tWord is among the tokens of tList into tTest
> return tTest
> 
> This tests the whole text; it is not necessary to test each string
> containing  the word individually.
> 
> But remove the quotes and periods first.
> 
> Jim
> 
> 
> 
> > Thanks to all for their help with this. I learned a new key word in
> "token".
> >
> > So far the function below handles everything reasonable I have thrown at
> it, including finding "time" in the less than reasonable  text in field 1:
> >
> >   "Now is timely the timeless time.-for, all good."
> >
> > on mouseUp
> >   put field 1 into tText
> >   put theWordIsAmongTheWords("time", tText) into msg box --returns true
> > end mouseUp
> >
> > function theWordIsAmongTheWords tWord, tList
> >   --The quote and period are irrelevant to the test for the word, so
> delete them.
> >   replace quote with "" in tList
> >   replace "." with "" in tList
> >   put empty into tNums
> >
> >   --Collect all the strings that wordOffset would find.
> >   repeat
> >  put wordOffset(tWord,tList, last item of tNums) into tNum
> >  if tNum = 0 then exit repeat
> >  put the last item of tNums + tNum & comma after tNums
> >   end repeat
> >
> >   --Test each of these strings aginst the word being tested.
> >   --With the quotes and periods gone, the tokens of sting found work well.
> >   repeat for each item tWordNum in tNums
> >  put word tWordNum of tList into tTestWord
> >  if tWord is among the tokens of tTestWord then return true
> >   end repeat
> >
> >   --If all the tests fail, then return false
> >   return false
> > end theWordIsAmongTheWords

___
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: iPad screenrecording: how?

2011-12-22 Thread Todd Geist
On Thu, Dec 22, 2011 at 12:51 AM, Ben Rubinstein  wrote:
>
> If you can't work with the simulator, I think there is a theoretical route
> to a 'perfect' capture: if you have an iPad2 (I think, or perhaps iPad1)
> running iOS 5, then you can use AirPlay to send both image and sound to an
> AppleTV unit.  Unfortunately the AppleTV only outputs HDMI: there are HDMI
> digitisers but they are quite expensive.  AFAIK there is no current way to
> receive AirPlay video on anything other than an AppleTV unit.


Airplay/AppleTV doesn't get you much in this area.  You still need a way to
capture the HDMI coming off the AppleTV.  AppleTV is nothing more than an
expensive invisible HDMI cable.  You are still going to need something that
can capture HMDI video. This is something that is not built into any mac or
pc that I know about.  You are going to need some hardware.

Todd
___
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: Is Control a DataGrid

2011-12-22 Thread Todd Geist
Thanks!

On Wed, Dec 21, 2011 at 10:45 PM, Phil Davis  wrote:

> Hi Todd,
>
> This should work unless you use 'dgControl' as your own custom prop name
> anywhere:
>
> if the dgControl of control x = empty then -- this is NOT a DG
>-- do stuff here
> end if
>
> Phil Davis


Todd
___
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: revAndroidPlugin and the Android SDK

2011-12-22 Thread Ralph DiMola
Sorry, I did not mention that I can Build and test for Android with no
problems. I did Check my SDK prefs for both IOS and Android. And re-did the
Android prefs and LC did not complain when I pointed to the Android SDK
folder. When I open the revANdroidPlugin it immediately opens a dialog and
asks me for the Android SDK folder and when I point to the same one the LC
main prefs liked the plug-in tells me: "That is not a usable SDK root:
missing aapt tool, make sure your SDK install has not been corrupted". Is
this the same problem that LC proper had when the SDK upgraded to I think
v12 and LC had to adjust their validation technique?

Ralph DiMola
IT Director
Evergreen Information Services


-Original Message-
From: use-livecode-boun...@lists.runrev.com
[mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of Bernard Devlin
Sent: Thursday, December 22, 2011 4:15 AM
To: How to use LiveCode
Subject: Re: revAndroidPlugin and the Android SDK

Check in your Preferences, that right beneath the path to the Android
SDK, that it has not lost a path to the JDK.

Bernard

On Thu, Dec 22, 2011 at 12:13 AM, Ralph DiMola
 wrote:
> The revAndroidPlugin is not recognizing the Android SDK anymore. I still
use
> to view messages and the output of a LC "put" for debugging. Any Ideas?

___
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


Dates displayed for On-Rev Server files

2011-12-22 Thread Francis Nugent Dixon

Hi from Beautiful Brittany,

I upload files to my on-Rev server, and note a time
difference of - 7 hours against my French time.
I assume that this is a US East-Coast time zone.

This is only a very, very minor bitch, but is there a
way of getting the server to display my time-zone values ?

Can I read back the contents of my server ?

I would be interested in writing a LiveCode stack checking
out my site files on my computer against my files on my
server, to see if they are in sync.

Has anybody done anything like this ?

TIA

-Francis

"There is pleasure recognizing old things from a new viewpoint"
(Richard Feynmann)




___
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: Wanted: Neophytes ftp Client

2011-12-22 Thread Martin Honeywill
Sorry bit late to the party on this one.

Have you looked at OwnCloud? http://owncloud.org not used it myself but it
looks good

Cheers

Martin Honeywill
___
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: is among the words AND find words

2011-12-22 Thread Dave Cragg
Late to the thread.

If the purpose is just to see whether the word exists in a string, would this 
work (using regular expressions)?

on mouseUp
   put "Some timely text with time, and more." into tString
   put "time" into tTarget
   put containsWord(tTarget, tString) 
end mouseUp

function containsWord tWord, tString
   put "(?i)\b" & tWord & "\b" into tRE
   return matchText(tString, tRE)
end containsWord

"\b" is the regular expression "word boundary" pattern. 
"(?i)" makes the match case insensitive.

Cheers
Dave
___
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: revAndroidPlugin and the Android SDK

2011-12-22 Thread Bernard Devlin
Check in your Preferences, that right beneath the path to the Android
SDK, that it has not lost a path to the JDK.

Bernard

On Thu, Dec 22, 2011 at 12:13 AM, Ralph DiMola
 wrote:
> The revAndroidPlugin is not recognizing the Android SDK anymore. I still use
> to view messages and the output of a LC "put" for debugging. Any Ideas?

___
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: File time off by an hour...

2011-12-22 Thread Bernard Devlin
Keith,

It seems this issue has come up with Windows and other programming
languages (included those supplied by Microsoft!)

http://stackoverflow.com/questions/4605983/io-file-getlastaccesstime-is-off-by-one-hour

http://stackoverflow.com/questions/6009902/different-timestamps-under-winxp-win7-and-vb-net

In one of the above examples, the user is on CST (maybe that is a factor).

There have been discussions on the list before about converting
date-times between seconds and e.g. internet time.  Instead of using
the short date & time, why don't you run through your file list, and
convert the file time into a list of values, e.g. short date and time,
internet date, etc.  You may find with one of them the difference
disappears.

Also, you could try setting the useSystemDate to true v. false, and
see what you get.

This is a tricky area (really we should all just be on GMT!), as
evinced by the two discussions above from Stack Overflow.

Bernard

On Thu, Dec 22, 2011 at 12:08 AM, Keith (Gulf Breeze Ortho Lab)
 wrote:
> H. No responses to this.

___
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: iPad screenrecording: how?

2011-12-22 Thread Ben Rubinstein

On 21/12/2011 17:56, William de Smet wrote:

I want to make a screen recording of my new iPad app.
How do you people do this?
There are no iPad screen recording apps yet. Are there?


Screenflow does an excellent job of recording from the Mac screen, and can 
record internal or external audio at the same time.  So if your app produces 
reasonable quality audio through the simulator, this should be a very clean 
capture.


If you can't work with the simulator, I think there is a theoretical route to 
a 'perfect' capture: if you have an iPad2 (I think, or perhaps iPad1) running 
iOS 5, then you can use AirPlay to send both image and sound to an AppleTV 
unit.  Unfortunately the AppleTV only outputs HDMI: there are HDMI digitisers 
but they are quite expensive.  AFAIK there is no current way to receive 
AirPlay video on anything other than an AppleTV unit.


Ben

___
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: is among the words AND find words

2011-12-22 Thread FlexibleLearning
Aha. So we are now only testing 'exist', and not the word number? Since I've
already written this, I'll post it anyway...

The problem (as always when this topic is raised) is the definition of a
'word', as indicated by the additional inclusion of 'token' in the language,
and thus the definition of 'punctuation'. I believe LC inherited the
definition of a 'word' from HyperCard for compatibility.

Is $10 one word or two?
Is my_Var one word or two?
Is half-baked one word or two?
Do the same rules apply across non-English languages? And unicode langauges?

Perhaps there is no single definition and some modifiers are needed such as
'strict'...

on mouseUp
  put findWord(fld 1,"men","strict")
end mouseUp

function findWord pContent,pStr,pRule
  if pRule="strict" then
put COMMA"E&TAB&CR&":;'." into tPunctuation
  else
--| Adjust according to requirements...
put COMMA"E&TAB&CR&":;'.^&*()_-+={}[]@~#<>/|\!?" into tPunctuation
  end if
  repeat for each char L in tPunctuation
replace L with SPACE in pContent
  end repeat
  if pStr is among the words of pContent then
return num of words of char 1 to offset(pStr,pContent) of pContent
  else return 0
end findWord


Hugh Senior
FLCo


Jim Hurley wrote:

Strike most of my last message. It appears that most of the function can be
replaced with an examination of the entire text (dah)  as in:

put tWord is among the tokens of tList into tTest
return tTest

This tests the whole text; it is not necessary to test each string
containing  the word individually.

But remove the quotes and periods first.

Jim



> Thanks to all for their help with this. I learned a new key word in
"token".
>
> So far the function below handles everything reasonable I have thrown at
it, including finding "time" in the less than reasonable  text in field 1:
>
>   "Now is timely the timeless time.-for, all good."
>
> on mouseUp
>   put field 1 into tText
>   put theWordIsAmongTheWords("time", tText) into msg box --returns true
> end mouseUp
>
> function theWordIsAmongTheWords tWord, tList
>   --The quote and period are irrelevant to the test for the word, so
delete them.
>   replace quote with "" in tList
>   replace "." with "" in tList
>   put empty into tNums
>
>   --Collect all the strings that wordOffset would find.
>   repeat
>  put wordOffset(tWord,tList, last item of tNums) into tNum
>  if tNum = 0 then exit repeat
>  put the last item of tNums + tNum & comma after tNums
>   end repeat
>
>   --Test each of these strings aginst the word being tested.
>   --With the quotes and periods gone, the tokens of sting found work well.
>   repeat for each item tWordNum in tNums
>  put word tWordNum of tList into tTestWord
>  if tWord is among the tokens of tTestWord then return true
>   end repeat
>
>   --If all the tests fail, then return false
>   return false
> end theWordIsAmongTheWords
>


___
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