Re: Regex brain failure...

2024-02-03 Thread Kaveh Bazargan via use-livecode
For testing regex you might find it useful to use regex101. It's excellent
and you can save the page. I put your text here
 just for testing. pls note your tabs are
corrupted in the email and I put an "a" to make it work just for test.

On Sat, 3 Feb 2024 at 21:13, Paul Dupuis via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Never mind.
>
> The correct pattern is: ^\d+?\t.\tnontraditional
> field\tText\t2,319\tInterview 1\.txt$
>
> There is a column with a space in it between the number column (1st
> column) and the 3rd column (which I thought was the 2nd column) that has
> the code name in it (ie. nontradtional field). Now to figure out why
> that is!
>
> On 2/3/2024 1:36 PM, Paul Dupuis via use-livecode wrote:
> > I have a (reduced) example set of data in a variable "tCaseCodes" that
> > is tab delimited set of lines below:
> >
> > 1 I am making a high salaryText2,319Interview 1.txt
> > 2 nontraditional fieldText2,319Interview 1.txt
> > 3 gets married and stays marriedText453,561  Interview
> > 1.txt
> > 4 wants kidsText927,1009Interview 1.txt
> > 5 leaves work when kids born doesn't returnText
> >  1012,1609Interview 1.txt
> > 6 takes major responsibility for family workText
> >  1012,1609Interview 1.txt
> >
> > I have a Regex pattern in the variable "tCodeToMatch" shown below:
> >
> > ^\d+\tnontraditional field\tText\t2,319\tInterview 1.txt$
> >
> > I am executing the line of livecode script:
> >
> > filter lines of tCaseCodes with regex tCodeToMatch into tDuplicates
> >
> > The variable tDuplicates should then contain:
> >
> > 2 nontraditional fieldText2,319Interview 1.txt
> >
> > But is instead, empty.
> >
> > Clearly, I must have made a Regex pattern mistake, but I am not seeing
> > it. It is ^(start of line) \d+(any number of digits) \t(tab)
> > nontraditional field  \t(tab) Text  \t(tab) 2,319  \t(tab) Interview
> > 1.txt $(end of line)
> >
> > I thought that the period in the file name (Interview 1.txt) may have
> > been an issue as period is a reserved regex character to match a
> > single character. However, I get the same empty result if I escape the
> > period, so it must be something else. I believe \d+ gets me an integer
> > as the number in this column could be several digits long.
> >
> > A second set of regex eyes would be appreciated.
> >
> > ___
> > 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
>


-- 
Kaveh Bazargan PhD
Director
River Valley Technologies  ● Twitter
 ● LinkedIn
 ● ORCID
 ● @kaveh1000@mastodon.social

*Accelerating the Communication of Research*

*

 [image:
https://rivervalley.io/gigabyte-wins-the-alpsp-scholarly-publishing-innovation-award-using-river-valleys-publishing-technology/]
*
___
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: Some sad news

2020-12-04 Thread Kaveh Bazargan via use-livecode
Sad indeed. He made some great contributions in his own special way and I
learned a lot from him...

On Fri, 4 Dec 2020 at 15:44, Devin Asay via use-livecode <
use-livecode@lists.runrev.com> wrote:

> I think we all have been dazzled by what Hermann was able to do with LC
> HTML5. Our community has been enriched by Hermann and many others for whom
> LiveCode and the idea of “coding for everyone" is a passion. He will be
> missed. Condolences to his family.
>
> As others have noted, we also remember other LiveCode late-greats: Mark
> Smith and Eric Chatonet. I’m sure I am forgetting someone, but their legacy
> lives on in their generous contributions to the LiveCode developer
> community, Thanks to all who continue to keep their work available.
>
> Devin
>
>
> > On Dec 4, 2020, at 5:07 AM, Heather Laine via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> > Dear List Folks,
> >
> > I have today received some sad news. I am told that Hermann Hoch passed
> away in April this year, from a stroke. I know many of you knew him either
> remotely or having met him in person at a conference. He will be missed. I
> met him myself and found him to be a wonderfully warm and kind person. He
> could be volatile, but I always felt it was because he cared passionately
> about things.
> >
> > I will take what steps I can to preserve his legacy of HTML5 examples.
> As these are hosted on an on-rev account we should be able to maintain it
> in perpetuity for the benefit of the LiveCode Community.
> >
> > LiveCode HTML5 didn't always meet his expectations or progress as fast
> as he wanted it to and I do wish he could have seen our next planned
> release, where HTML5 support will be a focus. He was of great benefit to
> this community and shared his expertise freely.
> >
> > I'm not sure what else I can say. Rest in peace hh, you will be missed :(
> >
> > Heather
> >
> >
> > Heather Laine
> > Customer Services Manager
> > LiveCode Ltd
> > www.livecode.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
>
> Devin Asay
> Director
> Office of Digital Humanities
> Brigham Young University
>
> ___
> 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
>


-- 
Kaveh Bazargan PhD
Director
River Valley Technologies  ● Twitter
 ● LinkedIn
 ● ORCID

*Accelerating the Communication of Research*
___
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: Making my book free until the end of May

2020-03-18 Thread Kaveh Bazargan via use-livecode
disappointed the slider does not go below zero! Thanks André. Made the
purchase...

Regards
Kaveh

On Wed, 18 Mar 2020 at 12:44, Keith Clarke via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Hi Andre,
> I wasn’t aware that you’d written that book - but a spooky coincidence, as
> last weekend I’d just started revisiting RevIgniter for LiveCode server and
> as a hobbyist, was struggling to get my head around MVC & mapping to
> (limited knowledge of) LiveCode concepts.
>
> So, good timing and I was happy to pay the $20 - consider it a 'virtual
> beer' in these times of social isolation & lockdown! :-D
>
> Cheers Andre - and stay safe, all.
>
> Best,
> Keith
>
> > On 18 Mar 2020, at 11:51, Andre Garzia via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> > Hi Folks,
> >
> > Many of you are probably working from home right now and some might be
> > self-isolating or under lockdown. I understand that this poses many
> > challenges to many of you, most of which I can't help with at all, but I
> > can however make it easier for you to get more LC content. The current
> time
> > is stressing the ability of many of us to make a living, especially
> people
> > here who might be forced into unpaid leave. Because of that I decided to
> > make my book free until the end of May. You can get it at:
> >
> > https://leanpub.com/livecodeapparchitecture
> >
> > The way Leanpub works is that there is a price slider that lets you
> adjust
> > the price from the minimum value set by the author all the way to as much
> > as you want. I've adjusted the minimum price and the recommended price
> to 0
> > USD. You can still adjust that if you want. The book is usually 20 USD
> but
> > with that cut, you can use that cash for something else and improve your
> LC
> > skills.
> >
> > Best
> > Andre
> >
> > --
> > http://www.andregarzia.com -- All We Do Is Code.
> > http://fon.nu -- minimalist url shortening service.
> > ___
> > 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
>


-- 
Kaveh Bazargan PhD
Director
River Valley Technologies  • Twitter
 • LinkedIn

___
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: Stacks and Custom properties

2020-03-10 Thread Kaveh Bazargan via use-livecode
Bob, good point. In my case I am using several standalone stacks, so when
the standalone opens, it reads data from a remote location (database
or Google Sheets) and saves them as custom variables. In addition there are
variables that are created throughout a session that are saved in a similar
way. Then these values are available to all stacks throughout the session.
Glad to hear of any thoughts on this.

On Tue, 10 Mar 2020 at 14:54, Bob Sneidar via use-livecode <
use-livecode@lists.runrev.com> wrote:

> The downside to doing this is that you cannot have your properties persist
> between sessions unless you can save the stack containing the properties. A
> mainstack in a standalone cannot be saved, and other stacks may have issues
> saving if they are in a sandboxed or secured location.
>
> If you are using this just for runtime variables, that would work but it
> begs the question, why? Variables are easier to reference in your code.
>
> Bob S
>
>
> > On Mar 10, 2020, at 03:38 , Kaveh Bazargan via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> > Absolutely. I keep most of my variables in stack custom properties.
>
>
> ___
> 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
>


-- 
Kaveh Bazargan PhD
Director
River Valley Technologies <http://rivervalleytechnologies.com/> • Twitter
<https://twitter.com/kaveh1000> • LinkedIn
<https://www.linkedin.com/in/bazargankaveh/>
___
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: Stacks and Custom properties

2020-03-10 Thread Kaveh Bazargan via use-livecode
Absolutely. I keep most of my variables in stack custom properties.

On Tue, 10 Mar 2020 at 10:36, Richmond via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Can a stack have custom properties?
>
> 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
>


-- 
Kaveh Bazargan PhD
Director
River Valley Technologies  • Twitter
 • LinkedIn

___
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: google sheets - anybody doing anything besides mergGoogle

2020-03-05 Thread Kaveh Bazargan via use-livecode
I am only reading now, Richard. I would like to be able to write too, and
any hints appreciated. But currently people go to Google Sheets and update
data.

I realise Google Sheets is not a true database, but the attraction is that
everyone is familiar with them and are not intimidated.

On Thu, 5 Mar 2020 at 21:49, Richard Gaskin via use-livecode <
use-livecode@lists.runrev.com> wrote:

> And for writes?
> --
>   Richard Gaskin
>   Fourth World Systems
>
> Mike Kerner wrote:
> > ok, that's what i thought.
> >
> > On Thu, Mar 5, 2020 at 3:47 PM Kaveh Bazargan via use-livecode <
> > use-livecode at lists.runrev.com> wrote:
> >
> >> This is where I started, Mike:
> >>
> >>
> https://andregarzia.com/2018/11/reading-google-sheets-data-from-livecode.html
>
>
> ___
> 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
>


-- 
Kaveh Bazargan PhD
Director
River Valley Technologies <http://rivervalleytechnologies.com/> • Twitter
<https://twitter.com/kaveh1000> • LinkedIn
<https://www.linkedin.com/in/bazargankaveh/>
___
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: google sheets - anybody doing anything besides mergGoogle

2020-03-05 Thread Kaveh Bazargan via use-livecode
This is where I started, Mike:
https://andregarzia.com/2018/11/reading-google-sheets-data-from-livecode.html

Then I had to do a lot of work to get unicode imported properly. Somehow
got it to work. :-)

On Thu, 5 Mar 2020 at 19:58, Mike Kerner via use-livecode <
use-livecode@lists.runrev.com> wrote:

> @Kaveh
> what are you using to connect to it?  are you using the sheets api or
> something else?
>
> On Thu, Mar 5, 2020 at 2:34 PM Richard Gaskin via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
> > Bob Sneidar wrote:
> >  > And again, I must caution that any local folders set to sync with a
> >  > nextCloud device, if you then uncheck a subfolder, it will REMOVE THE
> >  > LOCAL SUBFOLDER! The NextCloud people figured that the NextCloud
> >  > device must become the master, and your own local files the slave.
> >
> > Ah, but there's the rub: the concepts of "master" and "slave" do not
> > apply to peer syncing systems.
> >
> > Whether the behavior is correct or not depends on the use-case.  Most
> > other sync systems avoid the question altogether by completely
> > disallowing subfolder control. So if you want the same, limit your use
> > of the options Nextcloud provides - just don't change the checkbox for
> > subfolders.
> >
> > If you do choose to fine-tune your settings for subfolders, for the last
> > several years the implications for the choice are described when you
> > click the checkbox, requiring confirmation. If that's not what you want
> > for your use case, the easiest solution (with any sync system) is to
> > just move the folder outside of the one you've designated for syncing.
> >
> > If this specific scenario is of interest, and simply moving the folder
> > isn't an option, these discussions will lend insight into the
> > seemingly-simple-but-really-quite-nuanced behavior:
> >
> >
> >
> https://help.nextcloud.com/t/unchecked-folders-will-be-removed-from-your-file-system/12335/18
> >
> > https://github.com/owncloud/client/issues/2502
> >
> > Sync is one of those things that seems simple on the surface, and
> > usually is for most users, but there are enough edge cases that good
> > sync is rare and good flexible sync even rarer.
> >
> > Having used Dropbox and Google Drive before moving my important stuff to
> > Nextcloud, I've found not only more control over what gets synced and
> > how, but also fewer conflict files than I used to see.
> >
> > All that said
> >
> >
> > The real point of my post was to draw attention to the very useful
> > WebDAV library bangkok posted from Matthias Rebbe:
> >
> > https://forums.livecode.com/viewtopic.php?f=11=32377=188319#p188099
> >
> >   You can :
> >   -upload a file
> >   -download a file
> >   -create a folder
> >   -delete a folder/file
> >   -list the content of a folder (method PROPFIND)
> >
> > You can use this to talk to ANY server using the popular WebDAV standard.
> >
> > You can make custom workgroup solutions for a wide range of services,
> > including PCloud and Google Drive, or with custom servers running the
> > WebDAV modules available for Apache, Lightttpd, NginX, and more.
> >
> > The nice thing about also considering Nextcloud in the mix of platforms
> > you might support with this library is that you have a ready audience of
> > an estimated 250,000 installs, including many governments, universities,
> > and both large and small businesses.  Extra bonus points that it has a
> > nice UI for user management right in the box, and a thriving community
> > of plugins extending it in new ways.
> >
> > I'm excited about what it's doing for my business today, and how I can
> > lend that experience to helping other businesses with custom tools made
> > in LiveCode tomorrow.
> >
> > WebDAV is kinda cool.  And thanks to Matthias' library, it's also fun.
> >
> > --
> > Richard Gaskin
> > Fourth World Systems
> >
> >
> >
> >  >> On Mar 4, 2020, at 22:58 , Richard Gaskin via use-livecode
> >  wrote:
> >  >>
> >  >> Useful for Anyone to Know:
> >  >> -
> >  >> I've raved about Nextcloud here enough that I'll bet Mark Wieder's
> > tired of it , so I'll try to not let me enthusiasm run away with me -
> > I could go on about Nextcloud for way more than anyone wants to read.
> >  >>
> >  >> It's like a blend of Dropbox, Google Docs, and more than a hundred
> > add-on apps for everything from a kanban tool to media streaming to
> > videoconferencing - all free and open source:
> >  >>
> >  >> https://nextcloud.com/
> >  >>
> >  >> I use one internallt, to sync my LiveCode plugins folder across my
> > machines, as well as some client projects. And I use another externally
> > as a client portal where we share files, a kanban board, etc.
> >  >>
> >  >> If you can set up an Apache Server under Ubuntu on a VPS, adding
> > Nextcloud is as easy as a one-line Snap call.
> >  >>
> >  >> If you're not yet comfortable wrangling servers, there are many
> > companies offering hosting listed at 

Re: google sheets - anybody doing anything besides mergGoogle

2020-03-04 Thread Kaveh Bazargan via use-livecode
I use GS as my database for a text processing app. Clearly not robust as a
database but most convenient to edit and add to BT multiple authorised
people. I keep all regex patterns etc

On Wed, 4 Mar 2020 at 20:39, Mike Kerner via use-livecode <
use-livecode@lists.runrev.com> wrote:

> is anyone using anything besides mergGoogle to work with google sheets?
> care to share, if you are?
>
> --
> 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
>
-- 
Sent from MetroMail
___
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: encrypting script-only stacks

2020-02-19 Thread Kaveh Bazargan via use-livecode
You are absolutely right Alex. Jacqueline had given me the correct handler
and I made the mistake, and Panos corrected me. I have now corrected it but
still same result. See forum post.

https://forums.livecode.com/viewtopic.php?f=9=33678=188122#p188122

-- 
Kaveh Bazargan PhD
Director
River Valley Technologies  • Twitter
 • LinkedIn

___
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: encrypting script-only stacks

2020-02-17 Thread Kaveh Bazargan via use-livecode
>
>
>>
>>
> Sounds great Jacqueline. I will give it a go. :-)
>

Hi Jacqueline

I tried but could not make it work. I have posted a minimal stack on the
forum in case you get time to comment.

https://forums.livecode.com/viewtopic.php?f=9=33678=188122#p188122

Thanks. I have learnt a lot already!

Kaveh


>
>
>>
>> --
>> 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
>>
>
>
> --
> Kaveh Bazargan PhD
> Director
> River Valley Technologies  • Twitter
>  • LinkedIn
> 
>


-- 
Kaveh Bazargan PhD
Director
River Valley Technologies  • Twitter
 • LinkedIn

___
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: encrypting script-only stacks

2020-01-15 Thread Kaveh Bazargan via use-livecode
On Wed, 15 Jan 2020 at 19:27, J. Landman Gay via use-livecode <
use-livecode@lists.runrev.com> wrote:

> On 1/15/20 10:56 AM, Kaveh Bazargan via use-livecode wrote:
> > I want to be able to build standalones often, and I cannot distribute the
> > code. So from what I understand I have to convert these back into
> standard
> > stacks every just before making a standalone, then load them thro the
> > Stacks tab (not Files tab). This is quite labour intensive. I do hope
> there
> > is an automated solution to be able to avoid this.
>
> This is off the top of my head and not tested at all, but here's the idea:
>
> on savingStandalone
>   put "stack1,stack2,stack3...stackn" into tStackList
>   repeat for each item i in tStackList
> set the mainstack of stack i to "myMainStack"
> set the password of stack i to "somePassword"
>   end repeat
> end savingStandalone
>
> Since the above doesn't change the original mainstack I don't think
> you'll need a standaloneSaved handler to undo the changes but see what
> happens. Make backups first.
>

Sounds great Jacqueline. I will give it a go. :-)


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


-- 
Kaveh Bazargan PhD
Director
River Valley Technologies <http://rivervalleytechnologies.com/> • Twitter
<https://twitter.com/kaveh1000> • LinkedIn
<https://www.linkedin.com/in/bazargankaveh/>
___
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: encrypting script-only stacks

2020-01-15 Thread Kaveh Bazargan via use-livecode
On Wed, 15 Jan 2020 at 16:49, Mark Wieder via use-livecode <
use-livecode@lists.runrev.com> wrote:

>
> [...]
>
>  I don't think the SB does that on its own, and I'm not sure it's
> something it should do automatically all the time. In the delivered app
> is there (or should there be) a difference between a substack and a
> stack file?
>
> But it's easy to do in the PI by changing the mainstack property of the
> script-only stack.
>
>
>
Mark, my problem is that I loved the idea of script only stacks so got them
working (7 or more SoS's) that are loaded through the  Files tab of
Standalone Application builder. Obvious advantages are allowing me to
use GitHub and to collaborate as discussed.

I want to be able to build standalones often, and I cannot distribute the
code. So from what I understand I have to convert these back into standard
stacks every just before making a standalone, then load them thro the
Stacks tab (not Files tab). This is quite labour intensive. I do hope there
is an automated solution to be able to avoid this.

I could use Levure and would love to, but it's one more thing to learn and
I feel an overkill for me as all my scripts are now in SoS files.

Kaveh


-- 
Kaveh Bazargan PhD
Director
River Valley Technologies  • Twitter
 • LinkedIn

___
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: Changing extention on script only stack

2020-01-14 Thread Kaveh Bazargan via use-livecode
The slow editing in LiveCode is a big drawback for me. It is slow, spacing
is usually off till you hit tab, and generally not efficient.

On Tue, 14 Jan 2020 at 20:06, Richard Gaskin via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Brian Milby wrote:
>  > I would offer a clarification for ScriptTracker...
>
> I didn't mean to imply your fine tool's only purpose was to help people
> get around a slow Script Editor.  It is indeed very useful for its
> intended purposes.
>
> But when we start using tools intended for all sorts of things to hobble
> together alternatives that allow us to avoid LC's Script Editor, I begin
> to wonder:
>
> Isn't it possible to build an efficient, enjoyable text editor in LC?
>
> I believe it is.
>
> I'd do it if someone would pay my bills for a month.
>
> --
>   Richard Gaskin
>   Fourth World Systems
>   Software Design and Development for the Desktop, Mobile, and the 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
>


-- 
Kaveh Bazargan PhD
Director
River Valley Technologies  • Twitter
 • LinkedIn

___
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: encrypting script-only stacks

2020-01-14 Thread Kaveh Bazargan via use-livecode
That’s a great idea. :-)

On Tue, 14 Jan 2020 at 18:30, J. Landman Gay via use-livecode <
use-livecode@lists.runrev.com> wrote:

> My thought was that you'd use the text files during development and then
> save them as binary with encryption for the final build.
>
> --
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software | http://www.hyperactivesw.com
> On January 14, 2020 11:38:06 AM Kaveh Bazargan via use-livecode
>  wrote:
>
> > The benefits of SoS are so important that I would hate to have to go back
> > to binary again. Nothing like having pure text files to version, back up
> > etc. so I am also hoping for an elegant solution to encode these in
> > standalone.
> >
> > On Tue, 14 Jan 2020 at 17:31, Richard Gaskin via use-livecode <
> > use-livecode@lists.runrev.com> wrote:
> >
> >> Sure, and with the extra benefit that you wouldn't have to expose your
> >> code to end-users.
> >>
> >> That is, unless there's a way to include SoS in a standalone that
> >> includes encryption, such as an automated method in the Standalone
> Builder.
> >>
> >> I couldn't find one, but it seems like such a pervasive issue for the
> >> class of devs most likely to use SoS (pros dependent on VCS) that I'm
> >> hoping I just missed something.
> >>
> >> --
> >>   Richard Gaskin
> >>   Fourth World Systems
> >>
> >>
> >> Jacque wrote:
> >>
> >>  > Wouldn't a binary script-only stack be the library stack we already
> >>  > have now?
> >>  > --
> >>  > Jacqueline Landman Gay | jacque at hyperactivesw.com
> >>  >
> >>  > On January 14, 2020 9:55:01 AM Richard Gaskin wrote:
> >>  >
> >>  >> Since script-only stacks contain only a script with no properties,
> >>  >> they have no password property, and thus cannot be encrypted.
> >>  >>
> >>  >> I had thought that including them in the Stacks pane of the
> >>  >> Standalone Builder might convert them to binary substacks, where
> >>  >> the password could apply.  No dice.
> >>  >>
> >>  >> Is it a bug that script-only stacks can't be imported into the
> >>  >> stackfile to become binary substacks?
> >>  >>
> >>  >> --
> >>  >>  Richard Gaskin
> >>  >>  Fourth World Systems
> >>
> >>
> >>
> >> ___
> >> 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
> >>
> >
> >
> > --
> > Kaveh Bazargan PhD
> > Director
> > River Valley Technologies <http://rivervalleytechnologies.com/> •
> Twitter
> > <https://twitter.com/kaveh1000> • LinkedIn
> > <https://www.linkedin.com/in/bazargankaveh/>
> > ___
> > 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
>
-- 
Sent from MetroMail
___
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: encrypting script-only stacks

2020-01-14 Thread Kaveh Bazargan via use-livecode
The benefits of SoS are so important that I would hate to have to go back
to binary again. Nothing like having pure text files to version, back up
etc. so I am also hoping for an elegant solution to encode these in
standalone.

On Tue, 14 Jan 2020 at 17:31, Richard Gaskin via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Sure, and with the extra benefit that you wouldn't have to expose your
> code to end-users.
>
> That is, unless there's a way to include SoS in a standalone that
> includes encryption, such as an automated method in the Standalone Builder.
>
> I couldn't find one, but it seems like such a pervasive issue for the
> class of devs most likely to use SoS (pros dependent on VCS) that I'm
> hoping I just missed something.
>
> --
>   Richard Gaskin
>   Fourth World Systems
>
>
> Jacque wrote:
>
>  > Wouldn't a binary script-only stack be the library stack we already
>  > have now?
>  > --
>  > Jacqueline Landman Gay | jacque at hyperactivesw.com
>  >
>  > On January 14, 2020 9:55:01 AM Richard Gaskin wrote:
>  >
>  >> Since script-only stacks contain only a script with no properties,
>  >> they have no password property, and thus cannot be encrypted.
>  >>
>  >> I had thought that including them in the Stacks pane of the
>  >> Standalone Builder might convert them to binary substacks, where
>  >> the password could apply.  No dice.
>  >>
>  >> Is it a bug that script-only stacks can't be imported into the
>  >> stackfile to become binary substacks?
>  >>
>  >> --
>  >>  Richard Gaskin
>  >>  Fourth World Systems
>
>
>
> ___
> 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
>


-- 
Kaveh Bazargan PhD
Director
River Valley Technologies  • Twitter
 • LinkedIn

___
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: Parent Group of the Target

2020-01-07 Thread Kaveh Bazargan via use-livecode
And for multiple groupings,

 the owner of the owner of the owner of

On Tue, 7 Jan 2020 at 15:26, Dan Friedman via use-livecode <
use-livecode@lists.runrev.com> wrote:

> BR,
>
> Try "the owner of the target".  Or, the long id of the owner of the
> target.  Hope that helps.
>
> -Dan
>
>
> On 1/7/20, 7:20 AM, "use-livecode on behalf of Sannyasin Brahmanathaswami
> via use-livecode"  use-livecode@lists.runrev.com> wrote:
>
> I could have sworn we passed way before, but I can't find it anywhere
> on the list
>
> what is the most efficient was to get the name of the "Parent Group"
> of the target?
>
> Do we really have to parse this?
>
> widget id 67388 of group id 67392 of card id 8169 of stack
> "/Users/brahmanathaswami/Documents/_Siva-Siva-App/Siva-Siva-Portal.livecode"
>
> To get the name of "group id 67392"
>
> ?
>
> BR
>
>
>
>
> ___
> 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
>


-- 
Kaveh Bazargan PhD
Director
River Valley Technologies  • Twitter
 • LinkedIn

___
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: Can I find out what handler I am in?

2019-10-25 Thread Kaveh Bazargan via use-livecode
So Tom, do you need

return item 2 of line -2 of the executioncontexts

to be in every possible handler?

On Fri, 25 Oct 2019 at 19:40, Tom Glod via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Its for error handling ...I want my error handler to know which handler the
> error was in.
>
> On Fri, Oct 25, 2019 at 2:37 PM Bob Sneidar via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
> > executionContexts is way more useful.
> >
> > Bob S
> >
> >
> > > On Oct 25, 2019, at 11:14 , Mark Wieder via use-livecode <
> > use-livecode@lists.runrev.com> wrote:
> > >
> > > On 10/25/19 11:00 AM, Richard Gaskin via use-livecode wrote:
> > >> Tom Glod wrote:
> > >> > But is there a function that I can call inside a handler that will
> > >> > tell me the name of the handler?
> > >> I'm curious: what are you doing that needs this?
> > >
> > > Not Tom, but...
> > >
> > > I do this all the time when I need to print a debugging message to the
> > messagebox. Sometimes handlers abort before getting to important
> statements
> > and by placing these statements at various points I can tell whether or
> not
> > a handler got triggered.
> > >
> > > put param(0) & cr after msg
> > >
> > > --
> > > Mark Wieder
> > > ahsoftw...@gmail.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
> >
>
>
> --
> Tom Glod
> Founder & Developer
> MakeShyft R.D.A (www.makeshyft.com)
> Office:226-706-9339
> Mobile:226-706-9793
> ___
> 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
>


-- 
Kaveh Bazargan PhD
Director
River Valley Technologies  • Twitter
 • LinkedIn

___
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: Hotel suggestion or recommendation for San Jose

2019-05-11 Thread Kaveh Bazargan via use-livecode
I'm in.

Email: ka...@rivervalleytechnologies.com
Phone: +44 7771 824111

On Sat, 11 May 2019 at 18:33, Alex Tweedly via use-livecode <
use-livecode@lists.runrev.com> wrote:

> I'll be in the area from Thursday onwards - but busy Friday evening.
>
> How about a group dinner Saturday ?
>
> Place : TBD, but somewhere near downtown SJ
>
> Time : Sat 18th May,  7:00 ?   or thereabouts.
>
> Let me know directly, or let Kaveh know, or the list, or 
>
> -- Alex.
>
> P.S. cell: +44 77 66 55 53 85 but I will have a US number once I get
> there :-)
>
>
> On 07/05/2019 09:38, Kaveh Bazargan via use-livecode wrote:
> > AirBnB for me too, close to venue.
> >
> > I will be there from Friday night, so be good to know of others who are
> > around over weekend too. :-)
> >
> >
> > On Tue, 7 May 2019 at 03:45, J. Landman Gay via use-livecode <
> > use-livecode@lists.runrev.com> wrote:
> >
> >> Me too, AirBnB. It wasn't as cheap as I'd like but it beat out all the
> >> hotels.
> >>
> >> --
> >> Jacqueline Landman Gay | jac...@hyperactivesw.com
> >> HyperActive Software | http://www.hyperactivesw.com
> >> On May 6, 2019 7:35:10 PM Mark Wieder via use-livecode
> >>  wrote:
> >>
> >>> On 5/6/19 5:08 PM, Alex Tweedly via use-livecode wrote:
> >>>> So, I finally figured out a way to be able to come to the Livecode
> >>>> conference in San Jose.
> >>> Yay.
> >>>
> >>>> Where is everyone else staying ?
> >>> I picked up an AirBnB slot a few blocks away.
> >>>
> >>> --
> >>>   Mark Wieder
> >>>   ahsoftw...@gmail.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



-- 
Kaveh Bazargan PhD
Director
River Valley Technologies <http://rivervalleytechnologies.com/> • Twitter
<https://twitter.com/kaveh1000> • LinkedIn
<https://www.linkedin.com/in/bazargankaveh/>
___
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: Hotel suggestion or recommendation for San Jose

2019-05-07 Thread Kaveh Bazargan via use-livecode
AirBnB for me too, close to venue.

I will be there from Friday night, so be good to know of others who are
around over weekend too. :-)


On Tue, 7 May 2019 at 03:45, J. Landman Gay via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Me too, AirBnB. It wasn't as cheap as I'd like but it beat out all the
> hotels.
>
> --
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software | http://www.hyperactivesw.com
> On May 6, 2019 7:35:10 PM Mark Wieder via use-livecode
>  wrote:
>
> > On 5/6/19 5:08 PM, Alex Tweedly via use-livecode wrote:
> >>
> >> So, I finally figured out a way to be able to come to the Livecode
> >> conference in San Jose.
> >
> > Yay.
> >
> >> Where is everyone else staying ?
> >
> > I picked up an AirBnB slot a few blocks away.
> >
> > --
> >  Mark Wieder
> >  ahsoftw...@gmail.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
>


-- 
Kaveh Bazargan PhD
Director
River Valley Technologies  • Twitter
 • LinkedIn

___
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: ANN: Script Editor Refactoring Support

2019-03-20 Thread Kaveh Bazargan via use-livecode
I'm beginning to like you Mark. ;-)

Extremely useful set of tools. Now to try and break them. :-)

On Wed, 20 Mar 2019 at 18:50, JJS via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Just reading the possibilities looks awesome already. Have to check it out.
>
> Op 20-3-2019 om 19:45 schreef Jacques Hausser via use-livecode:
> > I had a dream…now it’s real ! Thanks !
> >
> > Jacques
> >
> >> Le 20 mars 2019 à 19:40, Mark Wieder via use-livecode <
> use-livecode@lists.runrev.com> a écrit :
> >>
> >> On 3/20/19 11:31 AM, Matthias Rebbe via use-livecode wrote:
> >>> Thanks for this great enhancement.
> >>> The rename handler is something i would have needed yesterday... Took
> me some time, but with your enhancement i would have been just some clicks
> and some typing.
> >> Ah... sorry about that... I was going to release it yesterday, but the
> "Go Back" feature needed a bit more tweaking.
> >>
> >> --
> >> Mark Wieder
> >> ahsoftw...@gmail.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
> > **
> > Prof. Jacques Hausser
> > Department of Ecology and Evolution
> > Biophore / Sorge
> > University of Lausanne
> > CH 1015 Lausanne
> > please use my private address:
> > 6 route de Burtigny
> > CH-1269 Bassins
> > tel:  ++ 41 22 366 19 40
> > mobile:   ++ 41 79 757 05 24
> > E-Mail:   jacques.haus...@unil.ch
> > ***
> >
> > ___
> > 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



-- 
Kaveh Bazargan PhD
Director
River Valley Technologies  • Twitter
 • LinkedIn

___
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: Format text data records for processing in Livecode

2019-03-01 Thread Kaveh Bazargan via use-livecode
On Fri, 1 Mar 2019 at 03:44, Richard Gaskin via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Kaveh Bazargan wrote:
>
>
> If it's working and you're happy keep doing it.
>
> At some point you may find arrays very powerful. This circumstance seems
> a natural fit for them, as they keep data separated -- even binary data
> -- while remaining blindingly fast to get at the piece you want whenever
> you want it.
>
>
You are right Richard. It is a testament to LiveCode that I can do
sophisticated stuff (by my standards) and not use arrays, but you have now
rightly pushed me to get into arrays, especially the speed gain that is
important for me. Thanks for all the good advice you give on this list. :-)


> --
>   Richard Gaskin
>   Fourth World Systems
>   Software Design and Development for the Desktop, Mobile, and the 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
>


-- 
Kaveh Bazargan PhD
Director
River Valley Technologies  • Twitter
 • LinkedIn

___
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: Format text data records for processing in Livecode

2019-02-27 Thread Kaveh Bazargan via use-livecode
On Tue, 26 Feb 2019 at 23:12, Richard Gaskin via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Kaveh Bazargan wrote:
>
>  > My use case might be unusual in that I have several itemdelimiters in
>  > the same text. I need to record what each one is, but they must not be
>  > the same. I might be going off topic here, but I thought it is a
>  > simple way of generating a text that is guaranteed to be unique.
>
> The UUID function is ideal for getting a unique string.
>
> But maybe simpler, have you considered using an array?
>
>
Hi Richard

So far I have used arrays very rarely. Not sure why.

I did not know about UUID.

One advantage of using the milliseconds is that it gives me an automated
timeline and speed of events, just by comparing the itemdelimiter. But my
use case is probably very specific. But I feel it is a good example of the
flexibility of LiveCode. :-)


> --
>   Richard Gaskin
>   Fourth World Systems
>   Software Design and Development for the Desktop, Mobile, and the 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
>


-- 
Kaveh Bazargan
Director
River Valley Technologies  • Twitter
 • LinkedIn

___
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: Format text data records for processing in Livecode

2019-02-26 Thread Kaveh Bazargan via use-livecode
My use case might be unusual in that I have several itemdelimiters in the
same text. I need to record what each one is, but they must not be the
same. I might be going off topic here, but I thought it is a simple way of
generating a text that is guaranteed to be unique.

On Tue, 26 Feb 2019 at 21:51, dunbarxx via use-livecode <
use-livecode@lists.runrev.com> wrote:

> I am missing the point of using an ephemeral and unknown string as an
> itemDelimiter. The whole point of such a gadget is that it can be used at
> another time to undo, or redo, whatever data parsing was done earlier.
>
> Is it that the delimiter is stored somewhere, and just for security it is
> generated in an unpredictable way? But that it still can be recalled as
> needed? But then, as described, that several unique delimiters in quick
> succession may be created and used, are these stored as well for future
> use?
>
> In other words, if a delimiter is created somehow, and data is parsed into
> items defined by that delimiter, is there any purpose in NOT saving it
> somewhere?
>
> Craig Newman
>
>
>
> --
> Sent from:
> http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html
>
> ___
> 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
>


-- 
Kaveh Bazargan
Director
River Valley Technologies  • Twitter
 • LinkedIn

___
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: Format text data records for processing in Livecode

2019-02-26 Thread Kaveh Bazargan via use-livecode
I have an handler that needs the itemdelimiter to be unique every time I
call it, and that can be several times in quick succession. I use:

wait 1 millisecond
set the itemdelimiter to the milliseconds

The first line ensures that two successive loops do not have the same
itemdelimiter, and it is almost guaranteed to be unique every time.

On Tue, 26 Feb 2019 at 17:41, Ralph DiMola via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Option 2: The item delimiter can be multiple characters so you can set it
> to
> something that would never likely be in the text.
> Example: Set the itemdel to ""
>
> Ralph DiMola
> IT Director
> Evergreen Information Services
> rdim...@evergreeninfo.net
>
> -Original Message-
> From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On
> Behalf
> Of dunbarxx via use-livecode
> Sent: Tuesday, February 26, 2019 10:58 AM
> To: use-revolut...@lists.runrev.com
> Cc: dunbarxx
> Subject: Re: Format text data records for processing in Livecode
>
> Hi.
>
> Since you may have any number and kind of characters in any of the fields
> in
> each record, I would append a character that is unlikely ever to appear in
> any context. I like numToChar(202), but others like numToChar(3) or
> numtoChar(8).
>
> Then you can set the itemDelimiter to that char, and be sure that you are
> parsing the totality of each field within any record.
>
> Craig Newman
>
>
>
> --
> Sent from:
> http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html
>
> ___
> 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
>


-- 
Kaveh Bazargan
Director
River Valley Technologies  • Twitter
 • LinkedIn

___
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: Replacing GlobalNames with Global Values

2019-02-12 Thread Kaveh Bazargan via use-livecode
That's the beauty of LiveCode. We have all been taught that things are
hard, but LiveCode shows they need not be! I still haven't leaned!!!

On Tue, 12 Feb 2019 at 14:45, Roger Guay via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Of course!! I should have thought of this, but was making it too hard.
> Thanks, Herman!
>
> And thanks to Monte, Terry and  Mark for teaching me something new.
>
> Roger
>
> > On Feb 11, 2019, at 9:08 PM, hh via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> >> Roger G. wrote:
> >> Let’s say that I have 3 globals:
> >> gGlobal1 = 10.1, gGlobal2 = 20.2 and gGlobal3 = 30.3
> >> I have an expression like gGlobal1*gGlobal2/gGlobal3
> >> I want to transform this to the expression 10.1*20.2/30.3.
> >
> > As everything in LC is a string:
> >
> > put gGlobal1 &"*"& gGlobal2 &"/"& gGlobal3
> > ___
> > 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



-- 
Kaveh Bazargan
Director
River Valley Technologies  • Twitter
 • LinkedIn

___
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: Setting behaviors in 9.0.2

2019-02-02 Thread Kaveh Bazargan via use-livecode
I have have been using behaviours pointing from objects on the mainstack to
buttons on a substack. 9.0.2 on Mac Mojave.

On Sat, 2 Feb 2019 at 19:15, Matthias Rebbe via use-livecode <
use-livecode@lists.runrev.com> wrote:

> I´ve made a quick test and set the behaviour of a card to the script of a
> button.
> This works here on Mac OS X with LC 9.0.2 Business.
>
>
>
> Matthias Rebbe
>
> free tools for Livecoders:
> https://instamaker.dermattes.de 
> https://winsignhelper.dermattes.de 
> > Am 02.02.2019 um 20:01 schrieb J. Landman Gay via use-livecode <
> use-livecode@lists.runrev.com >:
> >
> > Is anyone else unable to set a behavior on an object in LC 9.0.2?
> Neither script, nor message box, nor property inspector will do it for me
> with the possible exception of a button on the same card. I'm not using
> script-only stacks, just buttons which are sometimes in another stack in
> use.
> >
> > This is such a basic requirement that I'm wondering if it's just me.
> > --
> > Jacqueline Landman Gay | jac...@hyperactivesw.com  jac...@hyperactivesw.com>
> > HyperActive Software   | http://www.hyperactivesw.com <
> 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



-- 
Kaveh Bazargan
Director
River Valley Technologies  • Twitter
 • LinkedIn

___
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: Shoutout to Bernd Niggeman

2019-01-31 Thread Kaveh Bazargan via use-livecode
I second that. Thank you Bernd. :-)

On Thu, 31 Jan 2019 at 17:44, Roger Guay via use-livecode <
use-livecode@lists.runrev.com> wrote:

> This is to praise Bernd for his TinyDictionary! Especially since I find
> the standard dictionary in LC V9 is next to useless!!
>
> Find it here: http://livecodeshare.runrev.com/stack/825/TinyDictionary
>
> Thank you, Bernd!
>
> Roger
> ___
> 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
>


-- 
Kaveh Bazargan
Director
River Valley Technologies  • Twitter
 • LinkedIn

___
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: Refactoring is your friend / moving from 6.x to 9.x

2018-12-30 Thread Kaveh Bazargan via use-livecode
I don't think LiveCode without Malte is really LiveCode, so glad you are
back. :-)

Could you pls elaborate on the lock screen strategy? You said we should not
nest, and you also said that screen will not immediately be unlocked after
a handler. I was under the impression that multiple locks were not a
problem (e.g. one handler locks, then calls another that also locks). Then
when the main handler is done, screen is released. Any more info on that
would be appreciated.

Regards
Kaveh

On Sun, 30 Dec 2018 at 19:58, Andre Alves Garzia via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Malte,
>
> So happy that you're back here my friend. I too spent some time away.
>
> So, refactoring and constantly trying to erase mistakes of my past
> coding self are a constant here. I wish we had better refactoring tools
> so that we could rename a handler and all code that called that handler
> was fixed, or stuff such as rename variable...
>
> Cheers
>
> andre
>
> On 30/12/2018 19:33, Malte Pfaff-Brill via use-livecode wrote:
> > Hi list,
> >
> > I finally found the time to test / move one of my old projects from the
> 6.x (started in 3.x) to the 9.x engine. At first I was very very
> disappointed about performance. The stack was somewhat between acceptable
> and snappy in the 6.x engine series, rather unusable on 8 and on 9. This
> basically led to so much frustration that I basically gave up on the
> project, coding and LiveCode as a whole.
> >
> > I had a bit of time on my own during the holidays, so I started to
> analyse where the slowdowns actually happened. It seems I do owe the 9.x
> engine an apology, expecting everything to work as it used to in 6 is not
> the way I should have gone. After a refactor of my scripts I am now sitting
> with a version of my stack that works faster as it did in 5.x / 6.x.
> >
> > General and fixable observations:
> >
> > The IDE spams a lot of IDE only messages when creating many objects by
> script -> remedy: Lock messages
> > Nested Lock screens are a big "NO-NO“ nowadays
> > You can not rely on the screen being unlocked immediately at the end of
> a handler
> >
> > Not yet fixable for me:
> > Array operations on larger data sets still slower than they were
> >
> > Non engine related:
> > My SQL-Fu has improved a bit ;-) Quite a bit of performance to gain
> there.
> >
> > Did anybody of you happen to refactor old code and if so, do you have
> any observations you might want to share?
> >
> > Cheers,
> >
> > 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
>
> ___
> 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



-- 
Kaveh Bazargan
Director
River Valley Technologies  • Twitter
 • LinkedIn

___
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: get offset of current selection

2018-12-14 Thread Kaveh Bazargan via use-livecode
Correct. Thank you. :-)

On Fri, 14 Dec 2018 at 14:30, Tore Nilsen via use-livecode <
use-livecode@lists.runrev.com> wrote:

> The selectedChunk is probably what you are looking for.
>
> Regards
> Tore Nilsen
>
>
>
>
>
>
> > 14. des. 2018 kl. 15:28 skrev Kaveh Bazargan via use-livecode <
> use-livecode@lists.runrev.com>:
> >
> > I am stuck on something that should be simple. User has selected a text,
> > say a word in a field. How do I get the offset of the start and end of
> > selection? (Not any matching text, but the particular chars selected.)
> >
> > I know I am going to be embarrassed at the reply. :-\
> >
> > --
> > Kaveh Bazargan
> > Director
> > River Valley Technologies <http://rivervalleytechnologies.com/> •
> Twitter
> > <https://twitter.com/kaveh1000> • LinkedIn
> > <https://www.linkedin.com/in/bazargankaveh/>
> > ___
> > 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



-- 
Kaveh Bazargan
Director
River Valley Technologies <http://rivervalleytechnologies.com/> • Twitter
<https://twitter.com/kaveh1000> • LinkedIn
<https://www.linkedin.com/in/bazargankaveh/>
___
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

get offset of current selection

2018-12-14 Thread Kaveh Bazargan via use-livecode
I am stuck on something that should be simple. User has selected a text,
say a word in a field. How do I get the offset of the start and end of
selection? (Not any matching text, but the particular chars selected.)

I know I am going to be embarrassed at the reply. :-\

-- 
Kaveh Bazargan
Director
River Valley Technologies  • Twitter
 • LinkedIn

___
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: Show invisible characters (tab, space, return) in field

2018-12-09 Thread Kaveh Bazargan via use-livecode
On Sat, 8 Dec 2018 at 21:26, hh via use-livecode <
use-livecode@lists.runrev.com> wrote:

> > Kaveh wrote:
> > There is a also a zero width character. :-) that is 200B.
> > So using a monospace font all chars line up.
>
> This works if and only if your field has dontWrap true, else your
> line will not (soft-)break at the new "spaces" between the words.
>
>
You are right. It's getting complicated :-) So why does 200A allow wrapping
and 200B does not?


> But then (if dontWrap is true) you don't need any additional word-break
> char, you could then simply use the middot numToCodePoint(0x00B7) instead
> of space.
>
> > hh wrote:
> > ... The zero width space is non word-breaking in LC and an opportunity
> of word
> > breaking elsewhere...
>
>
> ___
> 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
>


-- 
Kaveh Bazargan
Director
River Valley Technologies  • Twitter
 • LinkedIn

___
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: Setting hidden of lines very slow

2018-12-09 Thread Kaveh Bazargan via use-livecode
Hi Jim

Normally I want the text to be editable most of the time, so it needs to be
in the field, but just hidden. But i can definitely see uses for your
suggestion of having different "views" instantly available.

Regards
Kaveh

On Sat, 8 Dec 2018 at 20:42, Jim Lambert via use-livecode <
use-livecode@lists.runrev.com> wrote:

> >  So I am looking to hide any line that contains no textcolor anywhere.
>
> You might save into a variable the HTMLTEXT of all the lines that contain
> the textcolor.
> Also save the HTMLTEXT of the whole field into another variable.
> Then in a blink of an eye you can instantly switch between the entire text
> and just the lines with colored characters - and back again.
>
> Jim Lambert
>
>
> ___
> 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
>


-- 
Kaveh Bazargan
Director
River Valley Technologies  • Twitter
 • LinkedIn

___
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: Show invisible characters (tab, space, return) in field

2018-12-08 Thread Kaveh Bazargan via use-livecode
Hi Hermann

There is a also a zero width character. :-) that is 200B. So using a
monospace font all chars line up.

And even more interesting, when I press the backspace key, it generally
treats the composite pair as one character, so jumps back over both with
one backspace!!

On Sat, 8 Dec 2018 at 16:28, Kaveh Bazargan <
ka...@rivervalleytechnologies.com> wrote:

>
>
> On Sat, 8 Dec 2018 at 16:00, hh via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
>> You could moreover add the following to the field's script.
>>
>> on rawkeyup k
>>   switch k
>> case 65288 -- backspace
>>   put word 4 of the selectedChunk into cx
>>   if char cx of me is among the items of \
>>
>> (numToCodePoint(0x23CE),numToCodePoint(0x21E5),numToCodePoint(0x00B7))
>>   then delete char cx of me
>>   break
>> case 65535 -- forward delete
>>   put word 2 of the selectedChunk into cx
>>   if char cx of me is among the items of
>> (numToCodePoint(0x200A),cr,tab)
>>   then delete char cx of me
>>   break
>> default
>>   pass rawkeyup
>>   end switch
>> end rawkeyUp
>>
>> There is still more to do, e.g. when typing after a return symbol...
>> Hope you are (as I did) sharing your working edit code when done.
>>
>
> I have a long way to go before I have anything useful as I am still trying
> to grasp the excellent information. But of course I will share if I have
> anything to add to these.
>
> --
> Kaveh Bazargan
> Director
> River Valley Technologies  • Twitter
>  • LinkedIn
> 
>


-- 
Kaveh Bazargan
Director
River Valley Technologies  • Twitter
 • LinkedIn

___
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: Show invisible characters (tab, space, return) in field

2018-12-08 Thread Kaveh Bazargan via use-livecode
On Sat, 8 Dec 2018 at 16:00, hh via use-livecode <
use-livecode@lists.runrev.com> wrote:

> You could moreover add the following to the field's script.
>
> on rawkeyup k
>   switch k
> case 65288 -- backspace
>   put word 4 of the selectedChunk into cx
>   if char cx of me is among the items of \
>
> (numToCodePoint(0x23CE),numToCodePoint(0x21E5),numToCodePoint(0x00B7))
>   then delete char cx of me
>   break
> case 65535 -- forward delete
>   put word 2 of the selectedChunk into cx
>   if char cx of me is among the items of
> (numToCodePoint(0x200A),cr,tab)
>   then delete char cx of me
>   break
> default
>   pass rawkeyup
>   end switch
> end rawkeyUp
>
> There is still more to do, e.g. when typing after a return symbol...
> Hope you are (as I did) sharing your working edit code when done.
>

I have a long way to go before I have anything useful as I am still trying
to grasp the excellent information. But of course I will share if I have
anything to add to these.

-- 
Kaveh Bazargan
Director
River Valley Technologies  • Twitter
 • LinkedIn

___
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: Show invisible characters (tab, space, return) in field

2018-12-08 Thread Kaveh Bazargan via use-livecode
Thank you for spending the time on this. Like all your posts it is an
education! Great idea to convert just a visible part of text! I am going to
study well and work on this.

On the live conversion, you are adding a unicode character before a space,
say. That means two characters and therefore two character widths. Is there
a way of making spaces zero width, or the new characters overlapping the
space etc? Ideally I want the text widths of lines to be the same with and
without the visible chars.

On Sat, 8 Dec 2018 at 15:06, hh via use-livecode <
use-livecode@lists.runrev.com> wrote:

> > Kaveh wrote:
> > I need the user to edit as normal and with normal functionality but see
> the normally
> > invisible characters. So seems I would need a native solution. :-(
>
> This works for me (TMHO, this demonstrates the beauty of LC).
> Script your field with the following.
>
> on rawkeyDown k
>   switch k
>case 32 -- space
>   put numToCodePoint(0x00B7)(0x200A) into the selection
>   break
> case 65293 -- return
>   put numToCodePoint(0x23CE) into the selection
>   break
>  case 65289 -- tab
>   -- put tab(0x21E5) into the selection -- alternate
>   put numToCodePoint(0x21E5) into the selection
>   break
> default
>   pass rawkeydown
>   end switch
> end rawkeyDown
>
> For converting the whole field *or a visible part of it* (you could use a
> check button)
> use the replace-script of my last post. For a few lines (< 500), put into
> a temporary
> field, conversion preserving styles is still fast.
> ___
> 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
>


-- 
Kaveh Bazargan
Director
River Valley Technologies  • Twitter
 • LinkedIn

___
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: Show invisible characters (tab, space, return) in field

2018-12-08 Thread Kaveh Bazargan via use-livecode
Thank you. Did not know about that. It works, but seems for a specific char
or chars.

I have tried:

on mouseup
   lock screen
   repeat with i = 1 to the number of chars of fld "text"
  if char i of fld "text" is return then
 set the imagesource of char i of fld "text" to "myreturn"
  end if
   end repeat
end mouseup

but of course it is slow and would be slower if I want to replace spaces.

Additionally, if I cut and pasted in the field I need to replace the chars
in the pasted text again...

What I am looking for is a native replacement of a return, say, with a
visible characters wherever it appears.

On Sat, 8 Dec 2018 at 01:26, Paul Dupuis via use-livecode <
use-livecode@lists.runrev.com> wrote:

> You can set the imageSource of the non-printing characters. They will
> remain spaces, tabs, and returns, but can have a small image (you will
> have to make or find) displayed in their place. See imageSource in the
> Dictionary.
>
> set the imageSource of character to {imageID |imageName |imageURL |empty}
>
>
> On 12/7/2018 8:12 PM, Kaveh Bazargan via use-livecode wrote:
> > Thanks Bob. I did mean non-printing characters. I think just space, tab
> and
> > return.
> >
> > The problem with replacing with with a character is that of course it is
> > not a space any more, so text would not wrap as normal. I need the user
> to
> > edit as normal and with normal functionality but see the normally
> invisible
> > characters. So seems I would need a native solution. :-(
> >
> > On Sat, 8 Dec 2018 at 00:22, Bob Sneidar via use-livecode <
> > use-livecode@lists.runrev.com> wrote:
> >
> >> Not natively. You would have to replace every non-printing character
> >> (that's what you mean by invisible I suppose) with a square digbat or
> >> something. If you want to filter for only printable characters, I have a
> >> function that dies that, and also there are regex strings for that sort
> of
> >> thing.
> >>
> >> Bob S
> >>
> >>
> >>> On Dec 7, 2018, at 15:44 , Kaveh Bazargan via use-livecode <
> >> use-livecode@lists.runrev.com> wrote:
> >>> Is there any way of seeing invisible characters in a text field,
> similar
> >> to
> >>> the view in text editors and word processors?
> >>>
> >>> --
> >>> Kaveh Bazargan
> >>
> >> ___
> >> 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
>


-- 
Kaveh Bazargan
Director
River Valley Technologies <http://rivervalleytechnologies.com/> • Twitter
<https://twitter.com/kaveh1000> • LinkedIn
<https://www.linkedin.com/in/bazargankaveh/>
___
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: Show invisible characters (tab, space, return) in field

2018-12-07 Thread Kaveh Bazargan via use-livecode
Thanks Bob. I did mean non-printing characters. I think just space, tab and
return.

The problem with replacing with with a character is that of course it is
not a space any more, so text would not wrap as normal. I need the user to
edit as normal and with normal functionality but see the normally invisible
characters. So seems I would need a native solution. :-(

On Sat, 8 Dec 2018 at 00:22, Bob Sneidar via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Not natively. You would have to replace every non-printing character
> (that's what you mean by invisible I suppose) with a square digbat or
> something. If you want to filter for only printable characters, I have a
> function that dies that, and also there are regex strings for that sort of
> thing.
>
> Bob S
>
>
> > On Dec 7, 2018, at 15:44 , Kaveh Bazargan via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> > Is there any way of seeing invisible characters in a text field, similar
> to
> > the view in text editors and word processors?
> >
> > --
> > Kaveh Bazargan
>
>
> ___
> 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
>


-- 
Kaveh Bazargan
Director
River Valley Technologies <http://rivervalleytechnologies.com/> • Twitter
<https://twitter.com/kaveh1000> • LinkedIn
<https://www.linkedin.com/in/bazargankaveh/>
___
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

Show invisible characters (tab, space, return) in field

2018-12-07 Thread Kaveh Bazargan via use-livecode
Is there any way of seeing invisible characters in a text field, similar to
the view in text editors and word processors?

-- 
Kaveh Bazargan
Director
River Valley Technologies  • Twitter
 • LinkedIn

___
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: hhPDFViewer v0.8.0

2018-12-03 Thread Kaveh Bazargan via use-livecode
Hi Hermann

Thanks for this. Any way of selecting or copying text from the PDF file?

Any way of finding a particular text in the PDF?

On Wed, 28 Nov 2018 at 14:47, Lagi Pittas via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Brilliant stuff Hermann
>
> Thanks,
>
> Lagi
>
> On Mon, 26 Nov 2018 at 19:44, hh via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
> > Sometimes one wishes to have a unique PDF display, independent of the
> > user's current internet-plugin. Or one wishes to have a feature that
> > these plugins don't have (for example rotation). Then pdf.js comes in.
> >
> > hhPDFViewer is a basic GUI to the JavaScript pdf library "pdf.js"
> > ( https://mozilla.github.io/pdf.js/  (watch the license)).
> >
> > My current solution can display both local and remote pdfs.
> > And it does NOT need a (local) server.
> >
> > The widget uses pdf.js to display (and load) one single page of any
> > multipage pdf. It needs 2.3 MByte of space in the temporary folder
> > + 1.3*the size of the displayed pdf.
> >
> > You can
> > [*]Switch to prev/next/any page of the PDF.
> > [*]Zoom in, zoom out or fit the PDF to width or height of the browser
> > widget's width or height.
> > [*]Fit the browser widget's rect to the page container's rect
> > (hold down the shiftkey when using the controls for that).
> > [*]Rotate the PDF to 0, 90, 180, 270 degrees.
> > [*]Grab the PDF to scroll the PDF left/up/right/down.
> >
> > Download hhPDFViewer from "Sample Stacks" or
> > http://livecodeshare.runrev.com/stack/916/
> >
> > The library is included in the stack, so that also an offline usage
> > (with local PDFs) is possible.
> > I didn't already test it but the stack should run on any platform where
> > the browser widget works. For mobile you still have do some work for
> > resizing the browser widget and the controls group (and changing some
> > triggers). If there is enough interest I'll implement more features.
> >
> >
> > ___
> > 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
>


-- 
Kaveh Bazargan
Director
River Valley Technologies  • Twitter
 • LinkedIn

___
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: Setting hidden of lines very slow

2018-12-01 Thread Kaveh Bazargan via use-livecode
Apologies hh. I can confirm that the htmltext method works beautifully and
blindingly fast. I was going to try it to understand fully first. I now do
and am grateful for the amazing tricks I have learned here. :-)

On Sat, 1 Dec 2018 at 13:46, hh via use-livecode <
use-livecode@lists.runrev.com> wrote:

>
> > Kaveh wrote:
> > I am looking to hide any line that contains no textcolor anywhere.
>
> I already gave you one that hides *exactly* these lines
> (as you already wished in your first post).
>
> > Hermann wrote:
> > Here yet another fast method.
> >
> > on mouseUp
> >   put the millisecs into m1
> >   lock screen; lock messages
> >   put the htmltext of fld 1 into ht
> >   set linedelimiter to " >   put the htmltext of fld 1 into ht
> >   replace " hidden" with empty in ht
> >   repeat for each line L in ht
> > if offset("color=",L)>0 then put " > else put " >   end repeat
> >   set htmltext of fld 1 to  s
> >   put the millisecs-m1 into fld "timing"
> > end mouseUp
>
>
> ___
> 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
>


-- 
Kaveh Bazargan
Director
River Valley Technologies  • Twitter
 • LinkedIn

___
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: Setting hidden of lines very slow

2018-12-01 Thread Kaveh Bazargan via use-livecode
Hi all

I have learned a lot here, especially the hint of using styledText. But
there might be a misunderstanding. In my case, it is not necessarily the
whole line that is styled, but a line might *contain* a chunk of text that
is styled, e.g. one word in the middle of the line has textcolor set. So I
am looking to hide any line that contains no textcolor anywhere.

Trevors code contains:
...
 if tTextA[i]["runs"][1]["style"]["textcolor"] is not empty then
...

If I understand correctly the ['runs'][1] is looking at the first element
of that line. I need to check that no other elements in the line are styled
either. Before I write a loop that is slow again, any quick way of checking
for a line with no style anywhere?

Thanks all for the great contributions.

K


On Fri, 30 Nov 2018 at 20:17, Richard Gaskin via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Kaveh wrote:
>  > Now how many lines of JavaScript would that be? ;-)
>
> The equivalent of chunk expressions are ridiculously verbose in JS, but
> this one's not bad:
>
> getElementById("id").removeAttribute("style");
>
> --
>   Richard Gaskin
>   Fourth World Systems
>   Software Design and Development for the Desktop, Mobile, and the 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
>


-- 
Kaveh Bazargan
Director
River Valley Technologies  • Twitter
 • LinkedIn

___
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: Setting hidden of lines very slow

2018-11-30 Thread Kaveh Bazargan via use-livecode
On Fri, 30 Nov 2018 at 17:12, Dan Friedman  wrote:

> Kaveh,
>
> Well, you learn something every day!   I didn't know you could hide a line
> of text.  Pretty cool!
>
>
Really nice. Working on speeding it up which will be great.


> FWIW, the fastest way that I know to remove all text stylings from a field
> of text is this:
>
> put fld 1 into fld 1
>
>
That's poetically beautiful. Now how many lines of JavaScript would that
be? ;-)


>
> -Dan
>
>
> On 11/30/18, 8:37 AM, "use-livecode on behalf of Kaveh Bazargan via
> use-livecode"  use-livecode@lists.runrev.com> wrote:
>
> I am simulating a non-contiguous selection of text with a "Find all"
> button
> that sets the style of all found items of text.
>
> Then I want to inspect those "selections" only but showing the paras
> that
> contain them and hiding all other lines. So I have a full view and a
> "compact" view that the user can choose by clicking a button
>
> On Fri, 30 Nov 2018 at 16:31, Glen Bojsza via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
> > I was wondering at what stage or how the lines get chosen to be
> hidden or
> > not?
> > ___
> > 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
> >
>
>
> --
> Kaveh Bazargan
> Director
> River Valley Technologies <http://rivervalleytechnologies.com/> •
> Twitter
> <https://twitter.com/kaveh1000> • LinkedIn
> <https://www.linkedin.com/in/bazargankaveh/>
> ___
> 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
>
>

-- 
Kaveh Bazargan
Director
River Valley Technologies <http://rivervalleytechnologies.com/> • Twitter
<https://twitter.com/kaveh1000> • LinkedIn
<https://www.linkedin.com/in/bazargankaveh/>
___
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: Setting hidden of lines very slow

2018-11-30 Thread Kaveh Bazargan via use-livecode
I am simulating a non-contiguous selection of text with a "Find all" button
that sets the style of all found items of text.

Then I want to inspect those "selections" only but showing the paras that
contain them and hiding all other lines. So I have a full view and a
"compact" view that the user can choose by clicking a button

On Fri, 30 Nov 2018 at 16:31, Glen Bojsza via use-livecode <
use-livecode@lists.runrev.com> wrote:

> I was wondering at what stage or how the lines get chosen to be hidden or
> not?
> ___
> 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
>


-- 
Kaveh Bazargan
Director
River Valley Technologies  • Twitter
 • LinkedIn

___
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: Setting hidden of lines very slow

2018-11-30 Thread Kaveh Bazargan via use-livecode
Did not know about textStyle which has opened a whole new world! Thank you
so much for ruining my weekend Trevor. ;-)

hh, I love the first solution, which shows the beauty of LiveCode. But the
speed is the same as before...

i will try htmltext too. A while since I worked with it.

Thanks again.

On Fri, 30 Nov 2018 at 15:33, hh via use-livecode <
use-livecode@lists.runrev.com> wrote:

> If showing *only* lines with colored text means that all others
> are hidden then you could use:
>
> ...
> set hidden of line i of fld "text" to \
> (the textcolor of line i of fld "text" is empty)
> ...
>
> Trevor's script would then read:
> ...
> put (tTextA[i]["runs"][1]["style"]["textcolor"] is empty) \
>  into tTextA[i]["style"]["hidden"]
> ...
>
> Here yet another fast method:
>
> on mouseUp
>   put the millisecs into m1
>   lock screen; lock messages
>   put the htmltext of fld 1 into ht
>   set linedelimiter to "   put the htmltext of fld 1 into ht
>   replace " hidden" with empty in ht
>   repeat for each line L in ht
> if offset("color=",L)>0 then put " else put "   end repeat
>   set htmltext of fld 1 to  s
>   put the millisecs-m1 into fld "timing"
> end mouseUp
>
>
> > > Kaveh wrote:
> > > But here is a follow-up: Now I want to hide all lines that
> > > have no text style and only show lines with colored text.
> > > I use:
> > >
> > > repeat with i = 1 to the number of lines of fld 1
> > >   if the textcolor of line i of fld "text" is not empty then
> > > set the hidden of line i of fld "text" to false
> > >   end if
> > > end repeat
> > >
> > > This is taking time too. Any suggestions how to speed this up?
> > >
> >
> > Trevor wrote:
> > Try working with the styledText property.
> >
> > put the styledText of field "text" into tTextA
> >
> > # loop through paragraphs
> > repeat with i = 1 to the number of elements of tTextA
> >   # Check if first run has textcolor set
> >   if tTextA[i]["runs"][1]["style"]["textcolor"] is not empty then
> > # hide paragraph
> > put true into tTextA[i]["style"]["hidden"]
> >   end if
> > end repeat
> >
> > set the styledText of fld "text" to tTextA
>
> ___
> 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
>


-- 
Kaveh Bazargan
Director
River Valley Technologies  • Twitter
 • LinkedIn

___
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: Setting hidden of lines very slow

2018-11-30 Thread Kaveh Bazargan via use-livecode
Yes Andre, that is the line that fixed it, in a split second :-)

But here is a follow-up: Now I want to hide all lines that have no text
style and only show lines with colored text. I use:

repeat with i = 1 to the number of lines of fld 1
  if the textcolor of line i of fld "text" is not empty then
 set the hidden of line i of fld "text" to false
  end if
   end repeat

This is taking time too. Any suggestions how to speed this up?

On Fri, 30 Nov 2018 at 12:12, Andre Alves Garzia via use-livecode <
use-livecode@lists.runrev.com> wrote:

> There is another tip here in this thread about
>
> set the hidden of line 1 to -1 of field "the field" to false
>
> As a single command, it might be better.
>
> On 30/11/2018 12:07, Kaveh Bazargan via use-livecode wrote:
> > Thank you guys. I am always embarrassed to ask here as I know the answer
> is
> > a one liner!!
> >
> > And Andre the screen was locked already. :-)
> >
> > On Fri, 30 Nov 2018 at 11:56, Klaus major-k via use-livecode <
> > use-livecode@lists.runrev.com> wrote:
> >
> >> Hi Andre,
> >>
> >>> Am 30.11.2018 um 12:48 schrieb Andre Alves Garzia via use-livecode <
> >> use-livecode@lists.runrev.com>:
> >>> tied locking the screen first?
> >> tied AND locked?
> >> Andre, you are hardcore! :-D
> >>
> >>> On 30/11/2018 10:33, Kaveh Bazargan via use-livecode wrote:
> >>>> I have a text field with some 3500 lines of text. I want to ensure all
> >>>> lines are visible, as I have hidden some before. I use:
> >>>>
> >>>> repeat with i = 1 the number of lines of fld 1
> >>>>set the hidden of line i of fld 1 to false
> >>>> end repeat
> >>>>
> >>>> This is taking over 1 minute to complete. I have tried removing all
> >> styling
> >>>> from the text so e.g. backgroundcolor is empty, etc. Same result.
> >>>>
> >>>> Any suggestions pls?
> >> Best
> >>
> >> Klaus
> >>
> >> --
> >> Klaus Major
> >> http://www.major-k.de
> >> kl...@major-k.de
> >>
> >>
> >> ___
> >> 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
>


-- 
Kaveh Bazargan
Director
River Valley Technologies <http://rivervalleytechnologies.com/> • Twitter
<https://twitter.com/kaveh1000> • LinkedIn
<https://www.linkedin.com/in/bazargankaveh/>
___
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: Setting hidden of lines very slow

2018-11-30 Thread Kaveh Bazargan via use-livecode
Thank you guys. I am always embarrassed to ask here as I know the answer is
a one liner!!

And Andre the screen was locked already. :-)

On Fri, 30 Nov 2018 at 11:56, Klaus major-k via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Hi Andre,
>
> > Am 30.11.2018 um 12:48 schrieb Andre Alves Garzia via use-livecode <
> use-livecode@lists.runrev.com>:
> >
> > tied locking the screen first?
>
> tied AND locked?
> Andre, you are hardcore! :-D
>
> > On 30/11/2018 10:33, Kaveh Bazargan via use-livecode wrote:
> >> I have a text field with some 3500 lines of text. I want to ensure all
> >> lines are visible, as I have hidden some before. I use:
> >>
> >> repeat with i = 1 the number of lines of fld 1
> >>   set the hidden of line i of fld 1 to false
> >> end repeat
> >>
> >> This is taking over 1 minute to complete. I have tried removing all
> styling
> >> from the text so e.g. backgroundcolor is empty, etc. Same result.
> >>
> >> Any suggestions pls?
>
> Best
>
> Klaus
>
> --
> Klaus Major
> http://www.major-k.de
> kl...@major-k.de
>
>
> ___
> 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
>


-- 
Kaveh Bazargan
Director
River Valley Technologies <http://rivervalleytechnologies.com/> • Twitter
<https://twitter.com/kaveh1000> • LinkedIn
<https://www.linkedin.com/in/bazargankaveh/>
___
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

Setting hidden of lines very slow

2018-11-30 Thread Kaveh Bazargan via use-livecode
I have a text field with some 3500 lines of text. I want to ensure all
lines are visible, as I have hidden some before. I use:

repeat with i = 1 the number of lines of fld 1
  set the hidden of line i of fld 1 to false
end repeat

This is taking over 1 minute to complete. I have tried removing all styling
from the text so e.g. backgroundcolor is empty, etc. Same result.

Any suggestions pls?

-- 
Kaveh Bazargan
Director
River Valley Technologies  • Twitter
 • LinkedIn

___
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 get physical coordinates of cursor in field

2018-11-24 Thread Kaveh Bazargan via use-livecode
I knew there was a simple answer! And it works so beautifully. :-) Thanks.

On Sat, 24 Nov 2018 at 16:39, J. Landman Gay via use-livecode <
use-livecode@lists.runrev.com> wrote:

> SelectedLoc.
> --
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software | http://www.hyperactivesw.com
> On November 24, 2018 8:08:36 AM Kaveh Bazargan via use-livecode
>  wrote:
>
> > I want to place a button at a position relative to the text cursor in a
> > field. How can I get the coordinates? Something like ClickLoc but for
> text
> > cursor.
> >
> > --
> > Kaveh Bazargan
> > Director
> > River Valley Technologies <http://rivervalleytechnologies.com/> •
> Twitter
> > <https://twitter.com/kaveh1000> • LinkedIn
> > <https://www.linkedin.com/in/bazargankaveh/>
> > ___
> > 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



-- 
Kaveh Bazargan
Director
River Valley Technologies <http://rivervalleytechnologies.com/> • Twitter
<https://twitter.com/kaveh1000> • LinkedIn
<https://www.linkedin.com/in/bazargankaveh/>
___
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 get physical coordinates of cursor in field

2018-11-24 Thread Kaveh Bazargan via use-livecode
I want to place a button at a position relative to the text cursor in a
field. How can I get the coordinates? Something like ClickLoc but for text
cursor.

-- 
Kaveh Bazargan
Director
River Valley Technologies  • Twitter
 • LinkedIn

___
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: Selecting text in non-focused field

2018-11-19 Thread Kaveh Bazargan via use-livecode
Thanks Brian. I want to have a flexible search capability and that is
indeed one of the things that would be good to have. I have a feeling it is
going to be a bit slow so will need some tricks or compromise. For
instance, only search if no key pressed for .5 seconds, so it not
interrupting typing..

On Mon, 19 Nov 2018 at 21:57, Brian Milby via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Are you meaning that you need to highlight text found in another field?
> Easiest way to describe what I’m referring to is the LC dictionary.  If you
> type a term in the search box, the matches are highlighted yellow where
> they are found (syntax and synonym fields).  Implementation would be
> completely different since the dictionary is coded in JavaScript.
>
> But, if that is what you are needing, then setting the style of the found
> chunks should give what you need (subject to the potential issue of
> performance).
>
> Thanks,
> Brian
> On Nov 19, 2018, 4:31 PM -0500, Kaveh Bazargan via use-livecode <
> use-livecode@lists.runrev.com>, wrote:
> > Didn't know about foundChunk. Useful, thanks. :-)
> >
> > It is just one text field I am working on.
> >
> > On Mon, 19 Nov 2018 at 21:12, dunbarxx via use-livecode <
> > use-livecode@lists.runrev.com> wrote:
> >
> > > Have you tried selecting the foundChunk?
> > >
> > > If you are going to write a routine that checks all the fields on a
> card
> > > and
> > > catalog them, you can avoid the standard "find" command, and roll your
> own.
> > >
> > > Craig
> > >
> > >
> > >
> > > --
> > > Sent from:
> > >
> http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html
> > >
> > > ___
> > > 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
> > >
> >
> >
> > --
> > Kaveh Bazargan
> > Director
> > River Valley Technologies <http://rivervalleytechnologies.com/> •
> Twitter
> > <https://twitter.com/kaveh1000> • LinkedIn
> > <https://www.linkedin.com/in/bazargankaveh/>
> > ___
> > 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



-- 
Kaveh Bazargan
Director
River Valley Technologies <http://rivervalleytechnologies.com/> • Twitter
<https://twitter.com/kaveh1000> • LinkedIn
<https://www.linkedin.com/in/bazargankaveh/>
___
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: Selecting text in non-focused field

2018-11-19 Thread Kaveh Bazargan via use-livecode
Didn't know about foundChunk. Useful, thanks. :-)

It is just one text field I am working on.

On Mon, 19 Nov 2018 at 21:12, dunbarxx via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Have you tried selecting the foundChunk?
>
> If you are going to write a routine that checks all the fields on a card
> and
> catalog them, you can avoid the standard "find" command, and roll your own.
>
> Craig
>
>
>
> --
> Sent from:
> http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html
>
> ___
> 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
>


-- 
Kaveh Bazargan
Director
River Valley Technologies  • Twitter
 • LinkedIn

___
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: Selecting text in non-focused field

2018-11-19 Thread Kaveh Bazargan via use-livecode
Hi Craig

Thanks for your time. I should have given more details...

i am indeed using enterInField (actually returnInField), and the focus
remains the search box

I started with the Find command, but then changed to using matchChunk,
because:

   - The Find command shows a thin black border that is hard to see (any
   way of controlling this?
   - I want to do more complex stuff, e.g.
  - regex searches
  - Find all (extract lines containing the text)
  - Live search, so highlight item or items found as I type
  - Perhaps using different highlight colors for different types of
  finds

Looking again, I have to reinvent some aspects that Find already has, e.g.

   - Searching from last item found
   - Options for whole word etc

So thanks for that reminder! My questions now:

   - When I use matchChunk and select some text that is found (as if
   selecting manually), that selection disappears when the text field is not
   focussed. Any way around that? I am thinking I might use backgroundcolor,
   depending on speed
   - What control do I have on the style of the item found – other than
   thin black line?
   - Has anyone written a full text editing or word processing program I
   can get ideas from?

Thanks again Craig. :-)

On Mon, 19 Nov 2018 at 18:59, dunbarxx via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Ah.  Maybe the point is that you can continue typing, finding other strings
> as you go. OK.
>
> But my search field, with its "enterInField" handler:
> on enterinField
>find me
> end enterinField
>
> will find any text in any field, and continue to find as you either
> continue
> typing or delete what you already have. The search field retains focus.
>
> Craig
>
>
>
> --
> Sent from:
> http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html
>
> ___
> 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
>


-- 
Kaveh Bazargan
Director
River Valley Technologies  • Twitter
 • LinkedIn

___
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

Selecting text in non-focused field

2018-11-19 Thread Kaveh Bazargan via use-livecode
Am I right that if a field is not focused on in a card, then the text in it
cannot be selected?

I have a search field that I type in and when I press enter, it finds the
string in another text field. But when the search box is focused on again
the selection goes.

I want to be able to have the search box focused all the time so I can vary
the search. Any ideas pls?

-- 
Kaveh Bazargan
Director
River Valley Technologies  • Twitter
 • LinkedIn

___
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

Stack and Standalone hogging memory on Mac

2018-11-16 Thread Kaveh Bazargan via use-livecode
I have been working on a stack that has been behaving well. It is now
hogging all CPU memory when I open it and is unresponsive. There is no idle
handler. When I click Command–dot repeatedly the script pops up and
activity stops temporarily. I think this means something is running in
the background.

I have opened message watcher, but no activity when I don't interact.

I have saved as Standalone for Mac, and same problem exists in Standalone,
but of course I can't stop any execution there.

Any suggestions as to how I can pin down what is going on in the background?

-- 
Kaveh Bazargan
Director
River Valley Technologies  • Twitter
 • LinkedIn

___
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

regex problem

2018-11-15 Thread Kaveh Bazargan via use-livecode
The following line returns true as expected:

*put* matchtext("abc", "^[ ]*")
(zero or more spaces at start of string)

But the following:

*put* replacetext("abc", "^[ ]*", "~")
returns

"abc", not "~abc" as expected.

Any ideas?
-- 
Kaveh Bazargan
Director
River Valley Technologies  • Twitter
 • LinkedIn

___
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: Reading data from Google Sheets

2018-11-13 Thread Kaveh Bazargan via use-livecode
Thank you so much to both. And Andre, if you could write a blog post for
every question I have it would help me a lot. ;-)

Actually I think I had looked at the very helpful StackExchange page before
for reading Google Sheets directly in R. I will try it and report back with
any follow ups.

Regards
Kaveh

On Wed, 14 Nov 2018 at 02:12, Andre Alves Garzia 
wrote:

> Kaveh,
>
> There is a much easier way. I've just posted about it since it can be of
> interest for others (there is a demo stack included):
>
>
> http://andregarzia.com/2018/11/reading-google-sheets-data-from-livecode.html
>
> Basically, there are special URLs for retrieving a Google Sheet as a CSV
> or a JSON. Much easier than parsing HTML or visible text.
>
> Cheers
>
> andre
>
> On 11/14/2018 12:46 AM, dunbarxx via use-livecode wrote:
> > Hi.
> >
> > well the (very) short answer is that you can:
> >
> > put url "yourWebpageAddressHere" into temp
> >
> > What you get is the entirety of the html contents of a page. Others will
> > tell both of us how to get the "visible" text, that is, the tab and
> return
> > delimited data, buried in all those tags.
> >
> > Craig Newman
> >
> >
> >
> > --
> > Sent from:
> http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html
> >
> > ___
> > 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
>


-- 
Kaveh Bazargan
Director
River Valley Technologies  • Twitter
 • LinkedIn

___
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

Reading data from Google Sheets

2018-11-13 Thread Kaveh Bazargan via use-livecode
Can someone point me to how I can read data from Google Sheets
into LiveCode? For now I just need to read, not write.

Thanks.

-- 
Kaveh Bazargan
Director
River Valley Technologies  • Twitter
 • LinkedIn

___
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: Regex replacements (\1, \2) not matching

2018-11-12 Thread Kaveh Bazargan via use-livecode
Thanks James

I am using the community edition of LiveCode, but I remember that Thierry
has been v helpful in the past. I just found a similar question I asked 4
years ago and he put lots of time in explaining:

https://forums.livecode.com/viewtopic.php?t=21157

I will review that because I have a feeling it has the answers I need. :-)


On Mon, 12 Nov 2018 at 05:19, James Hale via use-livecode <
use-livecode@lists.runrev.com> wrote:

>
> You can do quite a lot with LC's chunk expressions as well as with the
> matchtext and matchchunk functions.
>
> If you are willing to put a bit of time using these functions and arrays
> you can pretty much make up for LC's shortcomings in this area.
>
> If you have an Indy or Business license of LC then you might also want to
> look at Thierry's "SunnYrex" .
> even if you choose not to use that Thierry himself (who is on the list) is
> extremely generous with his time in answering questions about regex and how
> to use it in LC.
>
> James
>
>
>
>
>
>
> ___
> 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
>


-- 
Kaveh Bazargan
Director
River Valley Technologies  • Twitter
 • LinkedIn

___
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: Regex replacements (\1, \2) not matching

2018-11-11 Thread Kaveh Bazargan via use-livecode
Thank you both for your comments. My jaw dropped that I had not noticed
that before!! I need to do a lot of text manipulation, so hopefully I can
do that with LiveCode's friendly and powerful text chunk features.

On Sun, 11 Nov 2018 at 14:22, Sean Cole (Pi) via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Hey Kaveh,
>
> To break down your request you are searching if the string "one two"
> matches the pattern "(.+) (.+)" which it does as there are two word with a
> space between that can have at least 2 characters per word (. = any
> character, + = and extra character of that type, in this case 'any'). As it
> does match that pattern, replaceText simply swaps out the "one two" for
> exactly the string you have asked it to replace it with, namely "\2 \1"
> verbatim.
>
> The replacement string cannot itself be a regex pattern which is what I
> think you are trying to do here. The regEx part in the middle of the
> function is just a pattern to match to and not a method to reorganise the
> content of the search string, which is unfortunate. You would need a
> slightly longer script to achieve this. A repeat loop using 'put "2,1" into
> tSortOrder'; put trueword (item x of tSortOrder) of tOldString into word x
> of tNewString' would do what you want in simple terms.
>
> Sean
>
>
> On Sun, 11 Nov 2018 at 09:40, Kaveh Bazargan via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
> > What am I missing? I put in message box:
> >
> > put replacetext("one two", "(.+) (.+)", "\2 \1")
> >
> > I get result:
> >
> > "\2 \1"
> >
> > rather than:
> >
> > "two one"
> >
> >
> >
> > --
> > Kaveh Bazargan
> > Director
> > River Valley Technologies <http://rivervalleytechnologies.com/> •
> Twitter
> > <https://twitter.com/kaveh1000> • LinkedIn
> > <https://www.linkedin.com/in/bazargankaveh/>
> > ___
> > 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



-- 
Kaveh Bazargan
Director
River Valley Technologies <http://rivervalleytechnologies.com/> • Twitter
<https://twitter.com/kaveh1000> • LinkedIn
<https://www.linkedin.com/in/bazargankaveh/>
___
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

Regex replacements (\1, \2) not matching

2018-11-11 Thread Kaveh Bazargan via use-livecode
What am I missing? I put in message box:

put replacetext("one two", "(.+) (.+)", "\2 \1")

I get result:

"\2 \1"

rather than:

"two one"



-- 
Kaveh Bazargan
Director
River Valley Technologies  • Twitter
 • LinkedIn

___
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: LiveCoders from London, lets meet!

2018-11-09 Thread Kaveh Bazargan via use-livecode
Hi Andre

I had no idea you were in London. I'm game :-)

Kaveh

On Fri, 9 Nov 2018 at 17:04, Andre Alves Garzia via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Hey Friends,
>
> Who here is from London or nearby and would be interested in regular
> meetups? We could meet once a month or so in a pub or quieter setting. I
> am thinking of informal meet & drink, chatting.
>
> Cheers
>
> andre
>
>
> ___
> 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
>


-- 
Kaveh Bazargan
Director
River Valley Technologies  • Twitter
 • LinkedIn

___
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

Accessible Apps

2018-10-14 Thread Kaveh Bazargan via use-livecode
I am interested in creating an App in LiveCode, for iOS and Android,
primarily for reading html content (live or local). It needs
functionalities such as bookmarking, searching and commenting.

I want the App to be "accessible" if possible, so allowing say visually
impaired to use it. Any pointers pls? I cannot find much literature
on LiveCode and accessibility.

-- 
Kaveh Bazargan
Director
River Valley Technologies  • Twitter
 • LinkedIn

___
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

Sync with Google Contacts, iCloud or Apple Contacts

2018-02-08 Thread Kaveh Bazargan via use-livecode
I am using Mac OS X. I have my contacts synced between different
applications:

   - Google Contacts
   - Apple Contacts
   - FullContact
   - iCloud
   - BusyContacts

All works nicely and as far as I can see all changes are saved and synced,
including thumbnail photos.

Now I am looking for the following solutions:

**Ideal solution**

A fully synced contact manager in LiveCode where I can make modifications.
I have not been able to find an easy way to sync two way. If I can have a
way of syncing Google Contacts etc to MySQL. Then I can just read and write
to the database.

**Acceptable solution**

When I start up my LiveCode app, I read in the up to date contacts,
including thumbnails. No edits are made in LiveCode to contacts.

Grateful for any hints...

Regards
Kaveh


-- 
Kaveh Bazargan
Director
River Valley Technologies  • Twitter
 • LinkedIn

Phone +44 7771 824 111
___
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: Trapping multiple keystrokes

2017-12-01 Thread Kaveh Bazargan via use-livecode
Hi Paul

It looks like just what I need and thanks for that, but it does not do the
job in my stack and in the single field stack with one line added:


on arrowKey theKey
   put 1 into increment
   put me into current_value
   if theKey is "up" then
  put current_value + increment into the target
  repeat with i = 1 to 100
 put 1+i into temp
  end repeat
   end if -- up
   if theKey is "down" then
  put current_value - increment into the target
   end if -- down
   flushEvents("autoKey")
   pass arrowKey
end arrowKey

(note flushEvents near end)

The stack moves from the front so it no longer sees the arrows. This is a
separate problem I have had. (sorry to bring up this second issue.) Cannot
work out how to bring forward the main stack

On 1 December 2017 at 21:45, Paul Dupuis via use-livecode <
use-livecode@lists.runrev.com> wrote:

> On 12/1/2017 1:00 PM, Paul Dupuis via use-livecode wrote:
> > On 12/1/2017 12:52 PM, Kaveh Bazargan via use-livecode wrote:
> >> I have a field with a number in it. when focused, I want the value to
> go up
> >> and down with the up/down arrow keys. The trouble is that if I keep the
> key
> >> down, it traps multiple keydown messages that continue after the key is
> >> released.
> >>
> >> How can I ensure that message are terminated as soon as arrow key is
> >> released?
> >>
> > look at the dictionary entries for 'the pendingMessages' and the
> > 'cancel' command
> >
> >
> > ___
> > 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
> >
> what you actually want is flushEvents(eventType) -- see dictionary
>
>
> just execute flushEvents("autoKey") when you handler is done to clear
> extraneous arrowkey messages
>
>
> ___
> 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
>



-- 
Kaveh Bazargan
Director
River Valley Technologies <http://rivervalleytechnologies.com/> • Twitter
<https://twitter.com/kaveh1000> • LinkedIn
<https://www.linkedin.com/in/bazargankaveh/>
Phone +44 7771 824 111
___
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: Trapping multiple keystrokes

2017-12-01 Thread Kaveh Bazargan via use-livecode
On 1 December 2017 at 21:29, J. Landman Gay via use-livecode <
use-livecode@lists.runrev.com> wrote:

> On 12/1/17 3:16 PM, Kaveh Bazargan via use-livecode wrote:
>
>> It is the final action I have a problem with, as dozens of arrow key
>> actions are held in the buffer. The number keeps increasing or decreasing
>> and background actions are triggered.
>>
>> Here is a minimal version of the handler I have:
>>
>> on arrowKey theKey
>> if theKey is "up" then
>>put current_value + increment into the target
>> end if -- up
>> if theKey is "down" then
>>put current_value - increment into the target
>> end if -- down
>> pass arrowKey
>> end arrowKey
>>
>
> Works okay here using only the simplified handler you posted (after I
> added values to the variables increment and current_value.) I'm testing in
> LC 9 dp 10. My test handler, located in a field script:
>
> on arrowKey theKey
>   put 1 into increment
>   put me into current_value
>   if theKey is "up" then
> put current_value + increment into the target
>   end if -- up
>   if theKey is "down" then
> put current_value - increment into the target
>   end if -- down
>   pass arrowKey
> end arrowKey
>
> Does this simplified handler work for you? If so, then something farther
> along the message path is duplicating the messages. Unless you need it, try
> removing the "pass" statement.


Thank you so much Jacqueline

This indeed works. But if something is done in the background then the
problem starts. (I am using the same version of LiveCode.)

I tried this:


on arrowKey theKey
   put 1 into increment
   put me into current_value
   if theKey is "up" then
  put current_value + increment into the target
  repeat with i = 1 to 100
 put 1+i into temp
  end repeat
   end if -- up
   if theKey is "down" then
  put current_value - increment into the target
   end if -- down
   pass arrowKey
end arrowKey

The down arrow works but up arrow has the problem I have mentioned.


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



-- 
Kaveh Bazargan
Director
River Valley Technologies <http://rivervalleytechnologies.com/> • Twitter
<https://twitter.com/kaveh1000> • LinkedIn
<https://www.linkedin.com/in/bazargankaveh/>
Phone +44 7771 824 111
___
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: Trapping multiple keystrokes

2017-12-01 Thread Kaveh Bazargan via use-livecode
Thanks for the replies guys.

Richmond, sorry I was not clear. It is simpler:

   - I click in a field that has a value
   - I press arrow key (up or down)
   - I want the value to change up or down in that field
  - After the value is changed, other actions are triggered, e.g.
  setting the value of a scrollbar to the same value
   - The process continues while I have the arrowkey pressed
   - As soon as I release the system is idle (except for the last arrow
   action that continues)

It is the final action I have a problem with, as dozens of arrow key
actions are held in the buffer. The number keeps increasing or decreasing
and background actions are triggered.

Here is a minimal version of the handler I have:

on arrowKey theKey
   if theKey is "up" then
  put current_value + increment into the target
   end if -- up
   if theKey is "down" then
  put current_value - increment into the target
   end if -- down
   pass arrowKey
end arrowKey



On 1 December 2017 at 20:27, Richmond Mathewson via use-livecode <
use-livecode@lists.runrev.com> wrote:

> I may be a bit stupid, but as far as I understand you are trying to do
> this:
>
> 1. You keep an arrow key pressed down,
>
> 2. You do other things with other keys while the arrow key is pressed down.
>
> I cannot begin to try to answer your question until you either
> confirm what I have written or say that I am wrong and then
> explain, clearly, what you want to do.
>
> Richmond.
>
> On 1/12/17 10:03 pm, J. Landman Gay via use-livecode wrote:
>
>> On 12/1/17 11:52 AM, Kaveh Bazargan via use-livecode wrote:
>>
>>> I have a field with a number in it. when focused, I want the value to go
>>> up
>>> and down with the up/down arrow keys. The trouble is that if I keep the
>>> key
>>> down, it traps multiple keydown messages that continue after the key is
>>> released.
>>>
>>> How can I ensure that message are terminated as soon as arrow key is
>>> released?
>>>
>>>
>> What handler are you using? I just did a test with rawKeyDown and
>> arrowKey and they all stop when I release the key. (Though arrowkey seems
>> to be ignoring left and right keys in LC 9 for some reason.)
>>
>>
> ___
> 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
>



-- 
Kaveh Bazargan
Director
River Valley Technologies <http://rivervalleytechnologies.com/> • Twitter
<https://twitter.com/kaveh1000> • LinkedIn
<https://www.linkedin.com/in/bazargankaveh/>
Phone +44 7771 824 111
___
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

Trapping multiple keystrokes

2017-12-01 Thread Kaveh Bazargan via use-livecode
I have a field with a number in it. when focused, I want the value to go up
and down with the up/down arrow keys. The trouble is that if I keep the key
down, it traps multiple keydown messages that continue after the key is
released.

How can I ensure that message are terminated as soon as arrow key is
released?

-- 
Kaveh Bazargan
Director
River Valley Technologies  • Twitter
 • LinkedIn

Phone +44 7771 824 111
___
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: Simple tutorial on scrollbars?

2017-11-20 Thread Kaveh Bazargan via use-livecode
Hi all

I have had some great tips for rolling my own scrollbars from Roger, but a
simple question. What do the following do in the scrollbar inspector:

- Foreground fill
- Background fill
- Border fill
- etc

None seem to affect the colors of the components of a scrollbar.

On 19 November 2017 at 21:18, Roger Guay via use-livecode <
use-livecode@lists.runrev.com> wrote:

> I recommend rolling your own. If you need help with that, I can share what
> I’ve done.
>
> Roger
>
> > On Nov 19, 2017, at 12:23 PM, Kaveh Bazargan via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> > I am trying to change the look of a simple scrollbar on a Mac. But
> changing
> > "foreground fill", "background fill" etc. has no effect. I have not been
> > able to locate a tutorial for this. Any suggestions pls?
> >
> > --
> > Kaveh Bazargan
> > Director
> > River Valley Technologies <http://rivervalleytechnologies.com/> •
> Twitter
> > <https://twitter.com/kaveh1000> • LinkedIn
> > <https://www.linkedin.com/in/bazargankaveh/>
> > Phone +44 7771 824 111
> > ___
> > 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




-- 
Kaveh Bazargan
Director
River Valley Technologies <http://rivervalleytechnologies.com/> • Twitter
<https://twitter.com/kaveh1000> • LinkedIn
<https://www.linkedin.com/in/bazargankaveh/>
Phone +44 7771 824 111
___
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: Simple tutorial on scrollbars?

2017-11-19 Thread Kaveh Bazargan via use-livecode
Love to see some examples Roger. Best way to learn.

On Sun, 19 Nov 2017 at 21:19, Roger Guay via use-livecode <
use-livecode@lists.runrev.com> wrote:

> I recommend rolling your own. If you need help with that, I can share what
> I’ve done.
>
> Roger
>
> > On Nov 19, 2017, at 12:23 PM, Kaveh Bazargan via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> > I am trying to change the look of a simple scrollbar on a Mac. But
> changing
> > "foreground fill", "background fill" etc. has no effect. I have not been
> > able to locate a tutorial for this. Any suggestions pls?
> >
> > --
> > Kaveh Bazargan
> > Director
> > River Valley Technologies <http://rivervalleytechnologies.com/> •
> Twitter
> > <https://twitter.com/kaveh1000> • LinkedIn
> > <https://www.linkedin.com/in/bazargankaveh/>
> > Phone +44 7771 824 111
> > ___
> > 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

-- 
Sent from MetroMail
___
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

Simple tutorial on scrollbars?

2017-11-19 Thread Kaveh Bazargan via use-livecode
I am trying to change the look of a simple scrollbar on a Mac. But changing
"foreground fill", "background fill" etc. has no effect. I have not been
able to locate a tutorial for this. Any suggestions pls?

-- 
Kaveh Bazargan
Director
River Valley Technologies  • Twitter
 • LinkedIn

Phone +44 7771 824 111
___
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: mouseWithin and mouseLeave problem

2017-11-17 Thread Kaveh Bazargan via use-livecode
Hi Bob

Guess what. MouseRelease works if you click either side of the
thumbposition, but not if you click the thumb itself. Looking for another
handler for that.

Could there be a more elegant solution? Something like a property  or
behavior that resets a scrollbar to its normal size if it is not a focus?

On 15 November 2017 at 18:46, Kaveh Bazargan <
ka...@rivervalleytechnologies.com> wrote:

> Thanks bob. I replied to your first response. Mouserelease sounds good. I
> didn't know if it and will try later.
>
> On Wed, 15 Nov 2017 at 17:53, Kaveh Bazargan <kaveh@
> rivervalleytechnologies.com> wrote:
>
>> No :-(
>>
>> On 15 November 2017 at 17:48, Bob Sneidar via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>>
>>> Does mouseUp get sent to the control when you release the thumb pointer?
>>>
>>> Bob S
>>>
>>>
>>> > On Nov 15, 2017, at 09:36 , Kaveh Bazargan via use-livecode <
>>> use-livecode@lists.runrev.com> wrote:
>>> >
>>> > I have a set of scrollbars that are normally small, to preserve screen
>>> > space. But I want them to expand when mouse enters, so give finer
>>> control,
>>> > then to shrink again when mouse leaves. I have managed to do this with
>>> > mouseEnter and mouseLeave.
>>> >
>>> > Problem is that if I drag the thumb pointer with mouse down, by the
>>> time I
>>> > release the mouse it is still down and outside the bounds of the target
>>> > scrollbar, so no mouseLeave is sent.
>>> >
>>> > I could use "on idle" to test if the mouse is within, but that would
>>> not be
>>> > efficient.
>>> >
>>> > Suggestion please?
>>> >
>>> > Regards
>>> > Kaveh
>>> >
>>> > --
>>> > Kaveh Bazargan
>>>
>>>
>>> ___
>>> 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
>>>
>>
>>
>>
>> --
>> Kaveh Bazargan
>> Director
>> River Valley Technologies <http://rivervalleytechnologies.com/> • Twitter
>> <https://twitter.com/kaveh1000> • LinkedIn
>> <https://www.linkedin.com/in/bazargankaveh/>
>> Phone +44 7771 824 111 <07771%20824111>
>>
> --
> Sent from MetroMail
>



-- 
Kaveh Bazargan
Director
River Valley Technologies <http://rivervalleytechnologies.com/> • Twitter
<https://twitter.com/kaveh1000> • LinkedIn
<https://www.linkedin.com/in/bazargankaveh/>
Phone +44 7771 824 111
___
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: mouseWithin and mouseLeave problem

2017-11-15 Thread Kaveh Bazargan via use-livecode
Thanks bob. I replied to your first response. Mouserelease sounds good. I
didn't know if it and will try later.

On Wed, 15 Nov 2017 at 17:53, Kaveh Bazargan <
ka...@rivervalleytechnologies.com> wrote:

> No :-(
>
> On 15 November 2017 at 17:48, Bob Sneidar via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
>> Does mouseUp get sent to the control when you release the thumb pointer?
>>
>> Bob S
>>
>>
>> > On Nov 15, 2017, at 09:36 , Kaveh Bazargan via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>> >
>> > I have a set of scrollbars that are normally small, to preserve screen
>> > space. But I want them to expand when mouse enters, so give finer
>> control,
>> > then to shrink again when mouse leaves. I have managed to do this with
>> > mouseEnter and mouseLeave.
>> >
>> > Problem is that if I drag the thumb pointer with mouse down, by the
>> time I
>> > release the mouse it is still down and outside the bounds of the target
>> > scrollbar, so no mouseLeave is sent.
>> >
>> > I could use "on idle" to test if the mouse is within, but that would
>> not be
>> > efficient.
>> >
>> > Suggestion please?
>> >
>> > Regards
>> > Kaveh
>> >
>> > --
>> > Kaveh Bazargan
>>
>>
>> ___
>> 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
>>
>
>
>
> --
> Kaveh Bazargan
> Director
> River Valley Technologies <http://rivervalleytechnologies.com/> • Twitter
> <https://twitter.com/kaveh1000> • LinkedIn
> <https://www.linkedin.com/in/bazargankaveh/>
> Phone +44 7771 824 111
>
-- 
Sent from MetroMail
___
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: mouseWithin and mouseLeave problem

2017-11-15 Thread Kaveh Bazargan via use-livecode
No :-(

On 15 November 2017 at 17:48, Bob Sneidar via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Does mouseUp get sent to the control when you release the thumb pointer?
>
> Bob S
>
>
> > On Nov 15, 2017, at 09:36 , Kaveh Bazargan via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> > I have a set of scrollbars that are normally small, to preserve screen
> > space. But I want them to expand when mouse enters, so give finer
> control,
> > then to shrink again when mouse leaves. I have managed to do this with
> > mouseEnter and mouseLeave.
> >
> > Problem is that if I drag the thumb pointer with mouse down, by the time
> I
> > release the mouse it is still down and outside the bounds of the target
> > scrollbar, so no mouseLeave is sent.
> >
> > I could use "on idle" to test if the mouse is within, but that would not
> be
> > efficient.
> >
> > Suggestion please?
> >
> > Regards
> > Kaveh
> >
> > --
> > Kaveh Bazargan
>
>
> ___
> 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
>



-- 
Kaveh Bazargan
Director
River Valley Technologies <http://rivervalleytechnologies.com/> • Twitter
<https://twitter.com/kaveh1000> • LinkedIn
<https://www.linkedin.com/in/bazargankaveh/>
Phone +44 7771 824 111
___
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

mouseWithin and mouseLeave problem

2017-11-15 Thread Kaveh Bazargan via use-livecode
I have a set of scrollbars that are normally small, to preserve screen
space. But I want them to expand when mouse enters, so give finer control,
then to shrink again when mouse leaves. I have managed to do this with
mouseEnter and mouseLeave.

Problem is that if I drag the thumb pointer with mouse down, by the time I
release the mouse it is still down and outside the bounds of the target
scrollbar, so no mouseLeave is sent.

I could use "on idle" to test if the mouse is within, but that would not be
efficient.

Suggestion please?

Regards
Kaveh

-- 
Kaveh Bazargan
Director
River Valley Technologies  • Twitter
 • LinkedIn

Phone +44 7771 824 111
___
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: ...and everybody hates Perl...

2017-10-31 Thread Kaveh Bazargan via use-livecode
And nobody's heard of livecode. :-(

On Wed, 1 Nov 2017 at 04:26, Mark Wieder via use-livecode <
use-livecode@lists.runrev.com> wrote:

> https://boingboing.net/2017/10/31/perl-is-the-most-hated-program.html
> https://stackoverflow.blog/2017/10/31/disliked-programming-languages/?cb=1
>
> --
>   Mark Wieder
>   ahsoftw...@gmail.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
>
-- 
Sent from MetroMail
___
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 remove from a group

2017-08-03 Thread Kaveh Bazargan via use-livecode
Sorry Randy. And how do I put an an object into a group? I tried

relayer before group "..."

but it just sends object to the back, not inside the group.

On 3 August 2017 at 18:46, Kaveh Bazargan <ka...@rivervalleytechnologies.com
> wrote:

> Astounding. Works. Thank you. Never had seen relayer!!!
>
> On 3 August 2017 at 18:30, Randy Hengst via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
>> How about something like this in the button you want to remove from a
>> group…
>> if the first word the owner of me is "Group" then
>>
>> relayer me after the owner of me
>>
>> end if
>>
>>
>>
>> > On Aug 3, 2017, at 11:52 AM, Kaveh Bazargan via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>> >
>> > Can't find how to remove a button from a group of buttons. Tried this in
>> > stack script:
>> >
>> > on mouseup
>> >  remove the target from group "presentations"
>> >  grab the target
>> >   end if
>> > end mouseup
>> >
>> > but says object is not in group. Checked it is.
>> >
>> > --
>> > Kaveh Bazargan
>> > Director
>> > River Valley Technologies
>> > @kaveh1000
>> > +44 7771 824 111
>> > www.rivervalleytechnologies.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
>
>
>
>
> --
> Kaveh Bazargan
> Director
> River Valley Technologies
> @kaveh1000
> +44 7771 824 111 <07771%20824111>
> www.rivervalleytechnologies.com
>



-- 
Kaveh Bazargan
Director
River Valley Technologies
@kaveh1000
+44 7771 824 111
www.rivervalleytechnologies.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 remove from a group

2017-08-03 Thread Kaveh Bazargan via use-livecode
Astounding. Works. Thank you. Never had seen relayer!!!

On 3 August 2017 at 18:30, Randy Hengst via use-livecode <
use-livecode@lists.runrev.com> wrote:

> How about something like this in the button you want to remove from a
> group…
> if the first word the owner of me is "Group" then
>
> relayer me after the owner of me
>
> end if
>
>
>
> > On Aug 3, 2017, at 11:52 AM, Kaveh Bazargan via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> > Can't find how to remove a button from a group of buttons. Tried this in
> > stack script:
> >
> > on mouseup
> >  remove the target from group "presentations"
> >  grab the target
> >   end if
> > end mouseup
> >
> > but says object is not in group. Checked it is.
> >
> > --
> > Kaveh Bazargan
> > Director
> > River Valley Technologies
> > @kaveh1000
> > +44 7771 824 111
> > www.rivervalleytechnologies.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




-- 
Kaveh Bazargan
Director
River Valley Technologies
@kaveh1000
+44 7771 824 111
www.rivervalleytechnologies.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

How to remove from a group

2017-08-03 Thread Kaveh Bazargan via use-livecode
Can't find how to remove a button from a group of buttons. Tried this in
stack script:

on mouseup
  remove the target from group "presentations"
  grab the target
   end if
end mouseup

but says object is not in group. Checked it is.

-- 
Kaveh Bazargan
Director
River Valley Technologies
@kaveh1000
+44 7771 824 111
www.rivervalleytechnologies.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: MouseDown sent to button in group, but MouseUp sent to card

2017-08-03 Thread Kaveh Bazargan via use-livecode
On 3 August 2017 at 14:47, dunbarx via use-livecode <
use-livecode@lists.runrev.com> wrote:

> I feel a bit dumb. yes, there was an empty mouseup handler in the buttons.
> So that is fixed.
>
>
> Be careful in that a newly created button will, by default, have an
> uncompiled mouseUp handler pre-installed. It is not "applied" as of yet,
> but
> its "text' appears in the script of the button. Such a construct is
> included
> as a head start for the most common handler in button scripts.
>
>
yes, that was the problem craig. So need to remove that manually...


> Craig Newman
>
>
>
> --
> View this message in context: http://runtime-revolution.
> 278305.n4.nabble.com/MouseDown-sent-to-button-in-
> group-but-MouseUp-sent-to-card-tp4717935p4717949.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
>



-- 
Kaveh Bazargan
Director
River Valley Technologies
@kaveh1000
+44 7771 824 111
www.rivervalleytechnologies.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: MouseDown sent to button in group, but MouseUp sent to card

2017-08-03 Thread Kaveh Bazargan via use-livecode
I feel a bit dumb. yes, there was an empty mouseup handler in the buttons.
So that is fixed.

Now for mousewithin...

Having mousewithin in the stack script does not work unless I put:

on mousewithin
  pass mousewithin
end mousewithin

in the button.

What is the explanation for that?

On 3 August 2017 at 12:55, Randy Hengst via use-livecode <
use-livecode@lists.runrev.com> wrote:

> I’d start by double-checking that there is a mouseUp handler in the
> button. If there isn’t, then the mouseUp will move to the group… if no
> mouseUp in the group it will move to the card.
>
> be well,
> randy
>
> > On Aug 3, 2017, at 5:10 AM, Kaveh Bazargan via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> > I have buttons in a group. When I click any button, the mousedown message
> > is received by the button correctly but mouseup is received by card.
> Also I
> > believe mousewithin.
> >
> > How can I get the button to be the target for all?
> >
> > My script is in the stack
> >
> > Thanks.
> >
> >
> >
> > --
> > Kaveh Bazargan
> > Director
> > River Valley Technologies
> > @kaveh1000
> > +44 7771 824 111
> > www.rivervalleytechnologies.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




-- 
Kaveh Bazargan
Director
River Valley Technologies
@kaveh1000
+44 7771 824 111
www.rivervalleytechnologies.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

MouseDown sent to button in group, but MouseUp sent to card

2017-08-03 Thread Kaveh Bazargan via use-livecode
I have buttons in a group. When I click any button, the mousedown message
is received by the button correctly but mouseup is received by card. Also I
believe mousewithin.

How can I get the button to be the target for all?

My script is in the stack

Thanks.



-- 
Kaveh Bazargan
Director
River Valley Technologies
@kaveh1000
+44 7771 824 111
www.rivervalleytechnologies.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: Can't use double finger scroll on mac for grouped controls

2017-08-02 Thread Kaveh Bazargan via use-livecode
Genius. Thank you :-)

On 2 August 2017 at 01:35, Monte Goulding via use-livecode <
use-livecode@lists.runrev.com> wrote:

> This is something you need to script for groups. Something like this:
>
> on rawKeyDown pKeyCode
>if pKeyCode is 65308 then
>   get the scroll of me
>   add 10 to it
>   set the scroll of me to it
>else if pKeyCode is 65309 then
>   get the scroll of me
>   subtract 10 from it
>   set the scroll of me to it
>end if
> end rawKeyDown
>
> > On 2 Aug 2017, at 8:21 am, Kaveh Bazargan via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> > Using LiveCode 9 on Mac OSX
> >
> > I have some controls that are grouped and the group has been made
> smaller,
> > so have a vertical scroll bar – very nice feature.
> >
> > On one stack I can use two finger scroll on mac trackpad, but on another
> I
> > can't. But mouse on scroll bar works ok.
> >
> > I have checked and all settings are the same. Is there a particular
> setting
> > that allows two finger scrolling?
> >
> > --
> > Kaveh Bazargan
> > Director
> > River Valley Technologies
> > @kaveh1000
> > +44 7771 824 111
> > www.rivervalleytechnologies.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




-- 
Kaveh Bazargan
Director
River Valley Technologies
@kaveh1000
+44 7771 824 111
www.rivervalleytechnologies.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

Can't use double finger scroll on mac for grouped controls

2017-08-01 Thread Kaveh Bazargan via use-livecode
Using LiveCode 9 on Mac OSX

I have some controls that are grouped and the group has been made smaller,
so have a vertical scroll bar – very nice feature.

On one stack I can use two finger scroll on mac trackpad, but on another I
can't. But mouse on scroll bar works ok.

I have checked and all settings are the same. Is there a particular setting
that allows two finger scrolling?

-- 
Kaveh Bazargan
Director
River Valley Technologies
@kaveh1000
+44 7771 824 111
www.rivervalleytechnologies.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: Importing Unicode from MySQL

2017-07-26 Thread Kaveh Bazargan via use-livecode
Hi Andy

That seems to work!! Boy what a journey. And thank you Devin for your help.

Regards
Kaveh

On 26 July 2017 at 08:03, AndyP via use-livecode <
use-livecode@lists.runrev.com> wrote:

> I had the same problems a while ago, but got it sorted with the following.
>
> *Before* you do any interactions with the db, add this line.
>
> *revExecuteSQL MyConnectionID, "SET NAMES 'utf8'"*
>
>  "SET NAMES 'utf8'" is needed whenever you want to send/retrieve data
> to/from the server having characters that cannot be represented in pure
> ASCII, like 'ñ' or 'ö'.
>
> Then retrieve the data
>
> *put textDecode("SELECT * FROM MyTable","UTF-8")  into fld "MyField"*
>
>
>
>
>
>
>
>
> -
> Andy Piddock
>
>
> My software never has bugs. It just develops random features.
>
> TinyIDE a Free alternative minimalist IDE Plugin for LiveCode
> TinyIDE
>
>
> Script editor Themer for LC http://2108.co.uk
>
> PointandSee is a FREE simple but full featured under cursor colour picker
> / finder.
> http://www.pointandsee.co.uk  - made with LiveCode
> --
> View this message in context: http://runtime-revolution.
> 278305.n4.nabble.com/Importing-Unicode-from-MySQL-tp4717480p4717487.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
>



-- 
Kaveh Bazargan
Director
River Valley Technologies
@kaveh1000
+44 7771 824 111
www.rivervalleytechnologies.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: Importing Unicode from MySQL

2017-07-25 Thread Kaveh Bazargan via use-livecode
Hi Devin

Thanks for that. I just tried it and

*Bodø River*

becomes

*Bod River*

I was wondering at what point the Unicode is lost. So is it still intact
when it is saved as a variable? and is it then lost when the variable is
put into a field?

By the way the BYU documentation is the best on LiveCode. ;-)


On 25 July 2017 at 23:28, Devin Asay via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Kaveh,
>
> The unicodeText property and uniEncode function are deprecated. Instead
> use textDecode as follows:
>
> Download your database data into a variable like tStringFromDatabase. Then,
>
> put textDecode(tStringFromDatabase,”UTF8”) into field “myDBText”
>
> HTH
>
> Devin
>
>
> On Jul 25, 2017, at 4:24 PM, Kaveh Bazargan via use-livecode <
> use-livecode@lists.runrev.com<mailto:use-livecode@lists.runrev.com>>
> wrote:
>
> I know this has been discussed before and I have tried to search for the
> answer, but no success.
>
> I am using LiveCode Community, 9.0.0 DP5 on Mac
>
> I have a MySQL database where all fields are formatted as UTF8. I do a
> query from LiveCode, and put the result in a field and I lose the non ascii
> characters.
>
> I am reading the result into whole_table.
>
> I then tried this:
>
> set the unicodeText of field "whole table" to uniEncode(whole_table,"UTF8")
>
> but the non-ascii characters disappear.
>
> any ideas pls
>
> --
> Kaveh Bazargan
> Director
> River Valley Technologies
> @kaveh1000
> +44 7771 824 111
> www.rivervalleytechnologies.com<http://www.rivervalleytechnologies.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
>
> Devin Asay
> Director
> Office of Digital Humanities
> Brigham Young University
>
> ___
> 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




-- 
Kaveh Bazargan
Director
River Valley Technologies
@kaveh1000
+44 7771 824 111
www.rivervalleytechnologies.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

Importing Unicode from MySQL

2017-07-25 Thread Kaveh Bazargan via use-livecode
I know this has been discussed before and I have tried to search for the
answer, but no success.

I am using LiveCode Community, 9.0.0 DP5 on Mac

I have a MySQL database where all fields are formatted as UTF8. I do a
query from LiveCode, and put the result in a field and I lose the non ascii
characters.

I am reading the result into whole_table.

I then tried this:

set the unicodeText of field "whole table" to uniEncode(whole_table,"UTF8")

but the non-ascii characters disappear.

any ideas pls

-- 
Kaveh Bazargan
Director
River Valley Technologies
@kaveh1000
+44 7771 824 111
www.rivervalleytechnologies.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: "For Young Coders"

2017-06-13 Thread Kaveh Bazargan via use-livecode
Could it be the company who shamefully strangled HyperCard to death? ;-)

On 13 June 2017 at 21:35, Roger Eller via use-livecode <
use-livecode@lists.runrev.com> wrote:

> I have to assume you are referring to the app store of that fruit company
> since no platform was specified.  :)
>
>
> On Tue, Jun 13, 2017 at 4:30 PM, Mike Kerner via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
> > Check out the app store.  There is a new section right at the top, called
> > "for young coders", with a variety of tools...
> >
> >
> ___
> 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
>



-- 
Kaveh Bazargan
Director
River Valley Technologies
@kaveh1000
+44 7771 824 111
www.rivervalleytechnologies.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: Price of LiveCode Global

2017-06-09 Thread Kaveh Bazargan via use-livecode
Oops, yes, VAT. It wasn't broken down on the page so not obvious. I had to
check how far the pound had dropped after election!!

I'll hold you to the 1.20, Alex. ;-)

Regards
Kaveh

On 9 June 2017 at 15:40, Alex Tweedly via use-livecode <
use-livecode@lists.runrev.com> wrote:

> $299 -> £234 + VAT = £280.80
>
> I'll pay the other £1.20 for you :-)
>
> -- Alex.
>
>
> On 09/06/2017 15:37, Kaveh Bazargan via use-livecode wrote:
>
>> How does $299 convert to £282?
>>
>>
>
> ___
> 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




-- 
Kaveh Bazargan
Director
River Valley Technologies
@kaveh1000
+44 7771 824 111
www.rivervalleytechnologies.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

Price of LiveCode Global

2017-06-09 Thread Kaveh Bazargan via use-livecode
How does $299 convert to £282?

-- 
Kaveh Bazargan
Director
River Valley Technologies
@kaveh1000
+44 7771 824 111
www.rivervalleytechnologies.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: Sort so that "Hello" is always before "hello"

2017-05-18 Thread Kaveh Bazargan via use-livecode
Brilliant, thank you. I have tried to fall out of love with LiveCode but it
is hard!

I used HyperCard since pre-release version ;-)

On 18 May 2017 at 22:28, hh via use-livecode 
wrote:

> You want a sort with co-sort:
>
> set the casesensitive to true -- secondary sort:
> sort myContainer
> set the casesensitive to false -- primary sort:
> sort myContainer
>
> ___
> 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
>



-- 
Kaveh Bazargan
Director
River Valley Technologies
@kaveh1000
+44 7771 824 111
www.rivervalleytechnologies.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: Sort so that "Hello" is always before "hello"

2017-05-18 Thread Kaveh Bazargan via use-livecode
Thanks Phil

That works in the case I mentioned, but with different letters, All upper
case chars come to top, so I get:

Goodbye
Hello
goodbye
hello

What I need is

Goodbye
goodbye
Hello
hello


On 18 May 2017 at 18:19, Phil Davis via use-livecode <
use-livecode@lists.runrev.com> wrote:

> "set the caseSensitive to true" before sorting.
>
> Phil Davis
>
>
>
> On 5/18/17 10:10 AM, Kaveh Bazargan via use-livecode wrote:
>
>> I have the following lines when a list of words is sorted:
>>
>> Hello
>> hello
>> Hello
>> hello
>> hello
>>
>> so there is no hierarchy between upper and lower case chars. I want caps
>> to
>> go first. How do i do that pls?
>>
>>
> --
> Phil Davis
>
>
> ___
> 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
>



-- 
Kaveh Bazargan
Director
River Valley Technologies
@kaveh1000
+44 7771 824 111
www.rivervalleytechnologies.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


Sort so that "Hello" is always before "hello"

2017-05-18 Thread Kaveh Bazargan via use-livecode
I have the following lines when a list of words is sorted:

Hello
hello
Hello
hello
hello

so there is no hierarchy between upper and lower case chars. I want caps to
go first. How do i do that pls?

-- 
Kaveh Bazargan
Director
River Valley Technologies
@kaveh1000
+44 7771 824 111
www.rivervalleytechnologies.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: User friendly functions to replace MySQL queries?

2017-05-08 Thread Kaveh Bazargan via use-livecode
Sounds great. Yes please Bob...

On 8 May 2017 at 16:21, Bob Sneidar via use-livecode <
use-livecode@lists.runrev.com> wrote:

> sqlYoga is awesome. The learning curve is a bit steep at first, but once
> you get it, it's great. I wrote functions and a database setup interface
> that makes it all fairly transparent to use. I can share if you like.
>
> Bob S
>
>
> > On May 7, 2017, at 13:55 , Kaveh Bazargan via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> > Hi all
> >
> > Writing MySQL queries using LiveCode is a bit painful, so I thought of
> > writing some higher level functions to produce the queries, a bit like
> > these from Ken Ray:
> >
> > http://www.sonsothunder.com/devres/livecode/tips/data005.htm
> >
> > But before I start I wonder if anyone else has done these.
> >
> > I know André Garcia wrote a big package, but his site seems down:
> >
> > http://www.andregarzia.com/page/revspark
> >
> > Any pointers please?
> >
> > --
> > Kaveh Bazargan
> > Director
> > River Valley Technologies
> > @kaveh1000
> > +44 7771 824 111
> > www.rivervalleytechnologies.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
>



-- 
Kaveh Bazargan
Director
River Valley Technologies
@kaveh1000
+44 7771 824 111
www.rivervalleytechnologies.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: User friendly functions to replace MySQL queries?

2017-05-07 Thread Kaveh Bazargan via use-livecode
That's the one. :-) Sorry for the confusion and thanks...

On 7 May 2017 at 22:57, Alex Tweedly via use-livecode <
use-livecode@lists.runrev.com> wrote:

> If it's a user-friendly way to call SQL, I don't think you want revSpark,
> you want his DBLib.
>
> I think the current / latest is at
>
> https://github.com/Himalayan-Academy/Siva-Siva-App/wiki/aagDBLib
>
> -- Alex.
>
> On 07/05/2017 21:55, Kaveh Bazargan via use-livecode wrote:
>
>> Hi all
>>
>> Writing MySQL queries using LiveCode is a bit painful, so I thought of
>> writing some higher level functions to produce the queries, a bit like
>> these from Ken Ray:
>>
>> http://www.sonsothunder.com/devres/livecode/tips/data005.htm
>>
>> But before I start I wonder if anyone else has done these.
>>
>> I know André Garcia wrote a big package, but his site seems down:
>>
>> http://www.andregarzia.com/page/revspark
>>
>> Any pointers please?
>>
>>
>
> ___
> 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
>



-- 
Kaveh Bazargan
Director
River Valley Technologies
@kaveh1000
+44 7771 824 111
www.rivervalleytechnologies.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

User friendly functions to replace MySQL queries?

2017-05-07 Thread Kaveh Bazargan via use-livecode
Hi all

Writing MySQL queries using LiveCode is a bit painful, so I thought of
writing some higher level functions to produce the queries, a bit like
these from Ken Ray:

http://www.sonsothunder.com/devres/livecode/tips/data005.htm

But before I start I wonder if anyone else has done these.

I know André Garcia wrote a big package, but his site seems down:

http://www.andregarzia.com/page/revspark

Any pointers please?

-- 
Kaveh Bazargan
Director
River Valley Technologies
@kaveh1000
+44 7771 824 111
www.rivervalleytechnologies.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: mySQL connection fine in LiveCode but error in standalone

2017-05-07 Thread Kaveh Bazargan via use-livecode
It worked!!!

Thank you so much Matthias and Mike. :-)

On 7 May 2017 at 17:57, Matthias Rebbe via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Hi Kaveh,
>
> by any chance, are you using LC9 DP6?
> I noticed exactly this in DP6 and went back to DP5.
>
> It seems to be a regression bug in DP6. See http://quality.livecode.com/
> show_bug.cgi?id=19429 <http://quality.livecode.com/show_bug.cgi?id=19429>
>
> Regards,
>
> Matthias
>
>
>
> Matthias Rebbe
> Bramkampsieke 13
> 32312 Lübbecke
> Tel +49 5741 31
> +49 160 5504462
> Fax: +49 5741 310002
> eMail: matth...@m-r-d.de <mailto:matth...@m-r-d.de>
>
> BR5 Konverter - BR5 -> MP3 <http://matthiasrebbe.eu/
> portfolio/produkte/brx/>
> > Am 07.05.2017 um 01:19 schrieb Kaveh Bazargan via use-livecode <
> use-livecode@lists.runrev.com <mailto:use-livecode@lists.runrev.com>>:
> >
> > Hi folks
> >
> > I am a definite newbie to databases, but I have been reading from a mysql
> > database on the Mac running LC 9. The command is:
> >
> > revOpenDatabase("MySQL", DatabaseAddress, DatabaseName, DatabaseUser,
> > DatabasePassword)
> >
> > When I export to standalone I get the "revdberr, invalid database" type
> > error.
> >
> > Sorry not much more info but I wonder if there is a simple thing I am
> > missing. Is it perhaps that the password cannot  be saved in the stack?
> >
> > --
> > Kaveh Bazargan
> > Director
> > River Valley Technologies
> > @kaveh1000
> > +44 7771 824 111
> > www.rivervalleytechnologies.com <http://www.rivervalleytechnologies.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
>



-- 
Kaveh Bazargan
Director
River Valley Technologies
@kaveh1000
+44 7771 824 111
www.rivervalleytechnologies.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: mySQL connection fine in LiveCode but error in standalone

2017-05-07 Thread Kaveh Bazargan via use-livecode
Hi Mike

Thanks for the reply there is indeed a dbmysql.bundle included in the
package. should that not be there?

The database should be connecting on openstack. But there is also a
separate button that should connect, but that is giving the same error.



On 7 May 2017 at 00:56, Mike Bonner via use-livecode <
use-livecode@lists.runrev.com> wrote:

> I'm wondering if the mySql db driver is being included. If you view the
> package contents then drill down to
> Contents/MacOS/Externals/database_drivers  is there a dbmysql.bundle
> folder?
>
> Another thing to check would be WHEN do you try to open the database?  If
> you do it in preopenstack, you might be trying to open the db before the
> drivers are completely loaded.
>
> Other than that, not sure.
>
>
> On Sat, May 6, 2017 at 5:19 PM, Kaveh Bazargan via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
> > Hi folks
> >
> > I am a definite newbie to databases, but I have been reading from a mysql
> > database on the Mac running LC 9. The command is:
> >
> > revOpenDatabase("MySQL", DatabaseAddress, DatabaseName, DatabaseUser,
> > DatabasePassword)
> >
> > When I export to standalone I get the "revdberr, invalid database" type
> > error.
> >
> > Sorry not much more info but I wonder if there is a simple thing I am
> > missing. Is it perhaps that the password cannot  be saved in the stack?
> >
> > --
> > Kaveh Bazargan
> > Director
> > River Valley Technologies
> > @kaveh1000
> > +44 7771 824 111
> > www.rivervalleytechnologies.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
>



-- 
Kaveh Bazargan
Director
River Valley Technologies
@kaveh1000
+44 7771 824 111
www.rivervalleytechnologies.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


mySQL connection fine in LiveCode but error in standalone

2017-05-06 Thread Kaveh Bazargan via use-livecode
Hi folks

I am a definite newbie to databases, but I have been reading from a mysql
database on the Mac running LC 9. The command is:

revOpenDatabase("MySQL", DatabaseAddress, DatabaseName, DatabaseUser,
DatabasePassword)

When I export to standalone I get the "revdberr, invalid database" type
error.

Sorry not much more info but I wonder if there is a simple thing I am
missing. Is it perhaps that the password cannot  be saved in the stack?

-- 
Kaveh Bazargan
Director
River Valley Technologies
@kaveh1000
+44 7771 824 111
www.rivervalleytechnologies.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 many words from start of text to my selection

2017-04-22 Thread Kaveh Bazargan via use-livecode
Wonderful :-)

Can you give me a hint of this line please:

send "select word" && myChunk && "of fld 1" to me in 0 millisecs

Why not just

select word" && myChunk && "of fld 1"

On 22 April 2017 at 12:33, Mark Schonewille via use-livecode <
use-livecode@lists.runrev.com> wrote:

> This tells you the number of the selected word:
>
> on mouseUp
>put the selectedChunk into myChunk
>put word 4 of myChunk into myChunk
>put the number of words of char 1 to myChunk of fld 1
>send "select word" && myChunk && "of fld 1" to me in 0 millisecs
> end mouseUp
>
> Kind regards,
>
> Mark Schonewille
> http://economy-x-talk.com
> https://www.facebook.com/marksch
>
> Buy the most extensive book on the
> LiveCode language:
> http://livecodebeginner.economy-x-talk.com
>
> Op 22-Apr-17 om 13:18 schreef Kaveh Bazargan via use-livecode:
>
>> I have selected some text in a field. I want to convert that to "word xxx
>> of fld yyy". Any hints on how I do that?
>>
>>
> ___
> 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
>



-- 
Kaveh Bazargan
Director
River Valley Technologies
@kaveh1000
+44 7771 824 111
www.rivervalleytechnologies.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


How many words from start of text to my selection

2017-04-22 Thread Kaveh Bazargan via use-livecode
I have selected some text in a field. I want to convert that to "word xxx
of fld yyy". Any hints on how I do that?

-- 
Kaveh Bazargan
Director
River Valley Technologies
@kaveh1000
+44 7771 824 111
www.rivervalleytechnologies.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


  1   2   >