Re: I need to write an external for LiveCode in C++, but I doubt my ability to do it.

2016-03-07 Thread JB
When you mention LCB is that the widget builder they
imported Foundation for?  If it is and his main goal is
speed wouldn’t he be better off using a external since
they have better performance?

John Balgenorth


> On Mar 7, 2016, at 2:47 AM, Monte Goulding  wrote:
> 
> 
>> On 7 Mar 2016, at 9:37 PM, Jonathan Lynch  wrote:
>> 
>> I am trying to figure out how to link it to LiveCode, now. Thanks for this
>> pointer.
> 
> You might be able to just compile the library and then hook what you need up 
> via LCB which would be nice. There does look to be rather heavy use of 
> structs which would probably make a LCB implementation more complicated than 
> an external implementation at this stage.
> 
> Cheers
> 
> Monte
> ___
> use-livecode mailing list
> use-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

File exists

2016-04-02 Thread JB
If I open a file for read or write and the file does
not exist it will be created.  Is there a way to see
if the file exists before opening it?  I do not want
a file to be created if it does not exist.  I guess I
could check the creation date and if it was just
created then delete it but I was wondering if there
is a better way.

JB

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


Re: File exists

2016-04-02 Thread -=&gt;JB<=-
Files will do it;
I forget so easily.

JB



> On Apr 2, 2016, at 1:48 AM, JB  wrote:
> 
> If I open a file for read or write and the file does
> not exist it will be created.  Is there a way to see
> if the file exists before opening it?  I do not want
> a file to be created if it does not exist.  I guess I
> could check the creation date and if it was just
> created then delete it but I was wondering if there
> is a better way.
> 
> JB
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 


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


Re: File exists

2016-04-02 Thread JB
I LIKE THAT!

thank you very much.

JB



> On Apr 2, 2016, at 2:00 AM, Thierry Douez  wrote:
> 
> Hi,
> 
> there is a file ".."
> 
> HTH,
> 
> Thierry
> 
> 
> 2016-04-02 10:48 GMT+02:00 JB :
> 
>> If I open a file for read or write and the file does
>> not exist it will be created.  Is there a way to see
>> if the file exists before opening it?  I do not want
>> a file to be created if it does not exist.  I guess I
>> could check the creation date and if it was just
>> created then delete it but I was wondering if there
>> is a better way.
>> 
>> JB
>> 
> -- 
> 
> Thierry Douez - http://sunny-tdz.com
> sunnYrex - sunnYtext2speech - sunnYperl - sunnYmidi - sunnYmage
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 


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


Re: File exists

2016-04-02 Thread JB
Thank you, Richmond!
Your help is always appreciated.

JB



> On Apr 2, 2016, at 2:03 AM, RM  wrote:
> 
> Richmond.

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


Re: File exists

2016-04-02 Thread JB
Thanks for the code and info, Kay.

JB



> On Apr 2, 2016, at 10:53 AM, Kay C Lan  wrote:
> 
> On Sat, Apr 2, 2016 at 4:48 PM, JB  wrote:
>> If I open a file for read or write and the file does
>> not exist it will be created.
> 
> Just to clarify, that statement is incorrect.
> 
> If you open a file for 'write' and the file does not exist, it will be 
> created.
> 
> if you open a file for 'read' and the file does not exist 'the result'
> will be "can't open that file" and NO file is created.
> 
> on mouseUp
>   set the defaultFolder to specialFolderPath("documents")
>   open file "this is a test.lcdoc" for read
>   if  (the result is "can't open that file") then
>  --check if a file was created
>  if (there is a file "this is a test.lcdoc") then
> answer "A file was created!"
>  else
> answer "The file was NOT created."
>  end if
>   else
>  answer "You can read from it now!"
>   end if
> end mouseUp
> 
> Please also note that Richmond's example is misleading. If you use
> 'read from file' without first using  'open file' then regardless of
> whether the file exists or not, 'it' will always be empty.
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 


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


Re: Indy Licensing

2016-04-13 Thread JB
You can use the FREE VERSION.

But I have read you are not allowed
to develop for the Indy with it.

I guess you can discuss the licensing
of the free version and hw it relates.

JB





> On Apr 13, 2016, at 10:36 AM, Warren Samples  wrote:
> 
> On 04/13/2016 12:26 PM, John Dixon wrote:
>> I am surprised that this list has not been flooded with questions and 
>> complaints...
> 
> 
> Have you been away?
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 


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


Re: specialfolderpaths on Windows >=8

2016-04-14 Thread JB
Will you ever give them the option to write
certain files to the desktop or is that becoming
a bad idea too?


JB


> On Apr 14, 2016, at 12:24 PM, Paul Dupuis  wrote:
> 
> On 4/14/2016 1:33 PM, Klaus major-k wrote:
>> Hi firends,
>> 
>> on Wndows XP and 7, I usually to store user preferences in
>> ->  specialFolderPath(35) 
>> ### For all users!
>> resp.
>> -> specialfolderpath(26) 
>> ## for the current user only!
>> 
>> Is this still valid for Windows 8, 9 and 10?
>> Thanks a lot in advance!
>> 
> 
> We have a lot of Windows users  of our cross-platform product. Many in
> setting where their computers are on university of company networks,
> some with remote home directory, and many with various parts of Windows
> "locked" down for security. Increasing, I am realizing where Windows or
> OSX, desktop OSes are going the way of Mobile OSes with Sandboxing,and
> they want  you to place everything in the User's Library, typically the
> Documents which is becoming the only place you are still guaranteed to
> have access to. Baring having to reduce scope to make deadlines, our
> next release will test write access to a list of windows file locations
> for an app's files and the last on the list will be Documents. We'll
> just create a subfolder with our app name and place prefs and licensing
> files and so in there. Eventually I think, we'll just use the Documents
> folder.
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 


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


Re: Revenue and the Open Source edition

2016-05-02 Thread JB
If I remember correctly we paid around
one million dollars for it.

I agree with Richmond about renting
software.  A business needs to worry
Livecode could quit offering them the
rental of the software and then they
are not allowed to develope at all.  A
minor bug they could have fixed with
their latest version will destroy them;

JB


> On May 2, 2016, at 8:06 AM, Peter TB Brett  wrote:
> 
> On 02/05/2016 14:31, RM wrote:
> 
>> 2. The enormous differential between the FREE version and the Commercial
>> version: this seems almost an unbridgeable
>> gap.
> 
> Do you think that people underestimate the value that they get from the Open 
> Source edition of LiveCode because they get it at no cost?
> 
> Peter
> 
> -- 
> Dr Peter Brett 
> LiveCode Open Source Team
> 
> LiveCode 2016 Conference: https://livecode.com/edinburgh-2016/
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 


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


Re: Revenue and the Open Source edition

2016-05-03 Thread JB
We paid for the code and we were given
a link to download the code to be used as
open source code.  We did not make any
agreement to fund its development.

JB



> On May 2, 2016, at 3:35 PM, Monte Goulding  wrote:
> 
> Aha... Was the Kickstarter for open source or for the refactor? When you 
> consider that the vast majority of Kickstarter funding came from discounted 
> licenses were we finding development or taking advantage of discounts? I 
> personally made one of the highest contributions of everyone to the 
> Kickstarter (US$5000) and believe that has been repaid many times over. It is 
> an incredibly generous thing to release your hard earned intellectual 
> property under an open source licence and I don't think that should be taken 
> for granted.
> 
> Sent from my iPhone
> 
>> On 3 May 2016, at 8:15 AM, JB  wrote:
>> 
>> If I remember correctly we paid around
>> one million dollars for it.
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 


___
use-livecode mailing list
use-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: Revenue and the Open Source edition

2016-05-03 Thread JB
You are correct!

I helped fund the open source and never
made any complaints about it and am not
complaining now.

JB



> On May 3, 2016, at 5:13 AM, Monte Goulding  wrote:
> 
> 
>> On 3 May 2016, at 10:07 PM, JB  wrote:
>> 
>> We paid for the code and we were given
>> a link to download the code to be used as
>> open source code.  We did not make any
>> agreement to fund its development.
> 
> My point was different people may have contributed to the Kickstarter for 
> different reasons as the open source version wasn’t the only thing on offer. 
> Either way it sounds like you are happy you got what you paid for so that’s 
> great!
> 
> Cheers
> 
> Monte
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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

Re: Revenue and the Open Source edition

2016-05-03 Thread JB
I think the community version would have
more community involvement if they gave
people more externals to show them how
to create externals.

I get the feeling tje mothership does not
want community advancement externals.

And so it is obvious everyone cannot be
involved in programming the open source
version for many different reasons.  That
leaves people little chance to participate
by adding code.  Use it, point out bugs
and pay money.  That is not what I was
hoping for.

JB





> On May 3, 2016, at 7:56 PM, Robert Mann  wrote:
> 
> I goes one of the central issue of a community version.. is.. community!?
> 
> How to make people feel member of the community? get them involved?
> 
> One way of doing that is to let people buy something maybe not much, but
> something. That was the idea of the pay once upgrade when you feel which was
> tried before. 
> 
> Paradoxically, with the community version, the more we move ahead from the
> great community foundation kickstart, the less there may be a feel of
> community!!?? what do you think?
> 
> So maybe the question about Open source Edition and revenue? could be
> rephrased to something different like :: Open source edition and BENEFITS
> (of all kinds to the livecode ecosystem) ???
> 
> As an example, I'm pretty sure that many of us really like that
> language/tool and would take some time to promote it e.g. at schools. That
> would need organization and incentives, like.. the benefit of more
> affordable  commercial license schemes that could even be traded to help out
> people start up something. And that would cost nothing and could be an
> important medium term benefit.
> 
> On the whole, i feel mothership is kind of into  shyzophrenic situation ::
> the move to open source certainly was a generous move, event though at that
> time it may just have been death and exit otherwise. And the other hand we
> feel a commercial pressure with prices going up and up for the little rock
> of commercial folks.
> 
> I was surprised to see that the "community" developments fundings were not
> so successful. it was a way of carrying forward the initial kickstart move.
> Maybe that should be tried agin, possibly with a different organization :
> would it change the results if the community participated to selection of
> developments proposed? or even.. drove them!? well hum, that would be
> revolution that would imp lie seeing up some kind of representation of that
> community.
> 
> Livecode Community could be well used for a lot of "community" actions in
> our societies. I though personally of attending the "units debuts comity of
> computing" in Paris just to talk to them about livecode because they need to
> build a set of tools and livecode community would be just right. and that
> would greatly expose livecode (they gather 250 geeks from Paris..
> imagine..). 
> 
> Now that mothership has embarked on the community track, the next step could
> well be to get together some kind of representation of the group to
> exchange, meet, discuss and relay etc with the objective to establish such a
> community feeling??
> 
> And that could have a huge potential to motivate, generate many actions that
> bring those many benefits, that are hard to see yet with a close view to
> revenues.
> My cents!
> 
> 
> 
> --
> View this message in context: 
> http://runtime-revolution.278305.n4.nabble.com/Revenue-and-the-Open-Source-edition-tp4704079p4704180.html
> Sent from the Revolution - User mailing list archive at Nabble.com.
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 


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


Re: Community PDF Project (was Revenue and the Open Source edition)

2016-05-04 Thread JB
What about the code Money has from Adobe?
Can that be put in a external?  It would be nice
to start adding externals and something like
that as open source might be the thing to show
people how to write externals.

I know a little Xcode, C and objective-C and
am willing to learn by helping but a person
who can do it probably does not need help.

JB

















'



> On May 4, 2016, at 9:13 AM, RM  wrote:
> 
> I would suppose the ideal thing would be both something that allows one to 
> render a PDF document,
> and extract all or part of an embedded text layer (if one exists in the 
> original PDF).
> 
> Richmond.
> 
> On 4.05.2016 17:22, Richard Gaskin wrote:
>> Tim Bleiler wrote:
>> 
>> > The Livecode PDF viewer is an example of something that might do
>> > well as a separate option.
>> 
>> It might.
>> 
>> It would be helpful if more folks read the specs for the PDF external 
>> LiveCode is including with their Business Edition.  It's very specialized, 
>> with extensive features for getting and setting selections far beyond the 
>> needs of most projects.
>> 
>> What I'm hearing from most Indy and Community devs is that they merely want 
>> to render a PDF within LiveCode.
>> 
>> Given the PDFium library available for that, and that LiveCode Builder 
>> supports binary APIs such as those in that library, if this is a lucrative 
>> opportunity it would seem worth pursuing for those who want it.
>> 
>> The developer could sell it as proprietary, or even dual-license it with a 
>> GPL version.
>> 
>> Anyone sufficiently convinced of the business opportunity here to take this 
>> on?
>> 
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 


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


Re: min() and array

2016-05-04 Thread JB
It returns 0 in Revolution.

JB


> On May 4, 2016, at 11:47 AM, Ludovic THEBAULT  
> wrote:
> 
> Hello,
> 
> With the new 8.0.
> 
> It is normal that script return 0 ?
> 
> repeat with i=1 to 5
>   put 10 + i into tarray[i][v]
> end repeat
> put min(tarray[v])
> 
> not tested in any other version.
> 
> Thanks.
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 


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


Re: Community PDF Project (was Revenue and the Open Source edition)

2016-05-04 Thread JB
I just downloaded the mac version of
XPDF as binaries.  It looks like they
would be easier to install than code
files but I have never embedded any
binaries before and do not know the
correct method to call them.  It would
be nice to make at least a basic pdf
reader external and then it can be
improved.  It would be a good lesson.

JB



> On May 4, 2016, at 10:28 AM, Paul Dupuis  wrote:
> 
> On 5/4/2016 12:13 PM, RM wrote:
>> I would suppose the ideal thing would be both something that allows
>> one to render a PDF document,
>> and extract all or part of an embedded text layer (if one exists in
>> the original PDF).
> 
> The XPDF external from LiveCode for OSX and Win is based on Google's
> PDFium library. I can say this because I know something about the
> details of XPDF. Researchware (my company) development XPDF and recently
> transferred the rights to LiveCode.
> 
> Richard is correct in that the XPDF external not only opens and displays
> a PDF, but allows zooming, navigation, layout, hyperlinks, selection of
> text (for PDFs with editable text) or any potion of any page as an image
> selection, and allows you to extract text or images. It also supports
> password protected PDFs and more. Therefore, if ALL you want is just to
> display pages from a PDF it is certainly more than you may need. The
> same could be said about the feature set of LiveCode itself.
> 
> Richmond just showed that some people want more - in his case,
> extraction of all of part of the text. If you ONLY want to do that under
> script control, then that would be an incremental effort over just
> displaying a PDF.
> 
> If you want the USER to be able to select text (or images), then that is
> a significant chunk of work beyond just displaying a PDF as the PDFium
> library contains NO APIs for user selection and that must be original
> code added by the external. A large amount of effort went into making
> sure user selection of text was as good as Adobe or Preview or Foxit's
> PDF viewers, which was definitely not as easy as one might expect (or hope)!
> 
> I can tell you that a LOT of developer time (i.e money) went into the
> creation, QA testing, and refinement of XPDF.
> 
> Obviously, since Google PDFium is open source, anyone can create an
> alternative to XPDF, perhaps an even better version. If people want to
> build one, I encourage it. A competitive market of LiveCode PDF widgets
> just gives me more choice for my company's PDF needs ;-) However,  I
> offer the caution of experience that there are a lot more little
> "gotchas" in working with PDFium that anyone may realize, even after
> reading the APIs, and making another from scratch may be much more work
> than people might expect.
> 
> I think those interested in PDF might be better off continuing to lobby
> for LiveCode to offer XPDF as an add-on (like so many other excellent LC
> add-ons from Chartmaker to Wordlib to RRP Spell) for a appropriate
> price. It seems only logical that eventually they would convert it to an
> LC8 Widget as well.
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 


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


Re: Community PDF Project (was Revenue and the Open Source edition)

2016-05-04 Thread JB
Thank you.

JB


> On May 4, 2016, at 12:42 PM, Paul Dupuis  wrote:
> 
> On 5/4/2016 3:38 PM, JB wrote:
>> I just downloaded the mac version of
>> XPDF as binaries.  It looks like they
>> would be easier to install than code
>> files but I have never embedded any
>> binaries before and do not know the
>> correct method to call them.  It would
>> be nice to make at least a basic pdf
>> reader external and then it can be
>> improved.  It would be a good lesson.
>> 
>> JB
>> 
> http://lessons.livecode.com/m/4071/l/6347-how-to-install-3rd-party-externals-for-use-in-the-ide-and-standalone-builder
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 


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


Re: Community PDF Project (was Revenue and the Open Source edition)

2016-05-04 Thread JB
A number of years ago I installed a external
using Trevor’s info but this is good too.
proper code to access the embeded binary;
I downloaded some info from Apple on how
to install binaries but if I do install them right
I need to know how to call them.  If I figure
how to call a few of the binaries it would open
the door for the others.

JB



What I really meant was installing binaries
in the xCode project and then writing the

> On May 4, 2016, at 12:42 PM, Paul Dupuis  wrote:
> 
> On 5/4/2016 3:38 PM, JB wrote:
>> I just downloaded the mac version of
>> XPDF as binaries.  It looks like they
>> would be easier to install than code
>> files but I have never embedded any
>> binaries before and do not know the
>> correct method to call them.  It would
>> be nice to make at least a basic pdf
>> reader external and then it can be
>> improved.  It would be a good lesson.
>> 
>> JB
>> 
> http://lessons.livecode.com/m/4071/l/6347-how-to-install-3rd-party-externals-for-use-in-the-ide-and-standalone-builder
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 


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

Re: Community PDF Project (was Revenue and the Open Source edition)

2016-05-04 Thread JB
That sounds like exactly
what I need.

Thank you!

JB



> On May 4, 2016, at 1:37 PM, Paul Dupuis  wrote:
> 
> On 5/4/2016 4:12 PM, JB wrote:
>> A number of years ago I installed a external
>> using Trevor’s info but this is good too.
>> proper code to access the embeded binary;
>> I downloaded some info from Apple on how
>> to install binaries but if I do install them right
>> I need to know how to call them.  If I figure
>> how to call a few of the binaries it would open
>> the door for the others.
> 
> Once you have installed XPDF per:
> http://lessons.livecode.com/m/4071/l/6347-how-to-install-3rd-party-externals-for-use-in-the-ide-and-standalone-builder
> 
> The documentation on how to use it is at a button at the bottom of this
> page: https://livecode.com/products/livecode-platform/pdf-viewer/
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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

Re: Community PDF Project (was Revenue and the Open Source edition)

2016-05-04 Thread JB
Anyone know how to make xCode 7 externals work
with Revolution?  The latest version of xCode it will
take is 2.4 and I do not have that on my current Mac.
Or is there a way to install the older version on a mac
with El Capitan?


JB



> On May 4, 2016, at 1:37 PM, Paul Dupuis  wrote:
> 
> On 5/4/2016 4:12 PM, JB wrote:
>> A number of years ago I installed a external
>> using Trevor’s info but this is good too.
>> proper code to access the embeded binary;
>> I downloaded some info from Apple on how
>> to install binaries but if I do install them right
>> I need to know how to call them.  If I figure
>> how to call a few of the binaries it would open
>> the door for the others.
> 
> Once you have installed XPDF per:
> http://lessons.livecode.com/m/4071/l/6347-how-to-install-3rd-party-externals-for-use-in-the-ide-and-standalone-builder
> 
> The documentation on how to use it is at a button at the bottom of this
> page: https://livecode.com/products/livecode-platform/pdf-viewer/
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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

Re: Community PDF Project (was Revenue and the Open Source edition)

2016-05-04 Thread JB
What I am trying to do is compile a external
for Revolution.  Is there a way to compile a
external for Revolution on Mac that is using
El Capitan?  A patch or anything to make it
work?

JB

> On May 4, 2016, at 2:47 PM, Monte Goulding  wrote:
> 
> 
>> On 5 May 2016, at 7:23 AM, JB  wrote:
>> 
>> Anyone know how to make xCode 7 externals work
>> with Revolution? The latest version of xCode it will
>> take is 2.4 and I do not have that on my current Mac.
>> Or is there a way to install the older version on a mac
>> with El Capitan?
> 
> I think you need to clarify what you are trying to do with which versions of 
> what in order for someone to help you here. Xcode 2.4 definitely won’t work 
> on El Capitan.
> 
> Cheers
> 
> Monte
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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

Re: Community PDF Project (was Revenue and the Open Source edition)

2016-05-04 Thread JB
I am trying to compile a external using xCode 7.  Is it possible in anyway to
make that external work or a way to use any version of Xcode on El Capitan
and make the external work?  Do you compile externals on a Mac with new
OS X systems like El Capitan and if you do what are you doing to make it
work?  So I am looking for anyway to make the external work.

JB



> On May 4, 2016, at 3:21 PM, Monte Goulding  wrote:
> 
> A patch for what precisely?
> 
> Sent from my iPhone
> 
>> On 5 May 2016, at 8:12 AM, JB  wrote:
>> 
>> What I am trying to do is compile a external
>> for Revolution.  Is there a way to compile a
>> external for Revolution on Mac that is using
>> El Capitan?  A patch or anything to make it
>> work?
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 


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


Re: Community PDF Project (was Revenue and the Open Source edition)

2016-05-04 Thread JB
Do you know of a good emulator that will work or is it possible
to make it work by compiling from the commond line tools or
another way?

thank you,
JB


> On May 4, 2016, at 3:21 PM, Monte Goulding  wrote:
> 
> A patch for what precisely?
> 
> Sent from my iPhone
> 
>> On 5 May 2016, at 8:12 AM, JB  wrote:
>> 
>> What I am trying to do is compile a external
>> for Revolution.  Is there a way to compile a
>> external for Revolution on Mac that is using
>> El Capitan?  A patch or anything to make it
>> work?
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 


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


Re: Community PDF Project (was Revenue and the Open Source edition)

2016-05-04 Thread JB
Thank you,  I won’t use XPDF for older
versions.  That is good to know.


q

JB


> On May 4, 2016, at 4:04 PM, Paul Dupuis  wrote:
> 
> On 5/4/2016 6:39 PM, JB wrote:
>> I am trying to compile a external using xCode 7.  Is it possible in anyway to
>> make that external work or a way to use any version of Xcode on El Capitan
>> and make the external work?  Do you compile externals on a Mac with new
>> OS X systems like El Capitan and if you do what are you doing to make it
>> work?  So I am looking for anyway to make the external work.
>> 
>> JB
> 
> I am confused. If the 'external' you are referring to is XPDF, you do
> not need Xcode or anything like that. However XPDF will not work on any
> version of LiveCode below LC 6.7.x, so if you are trying to use XPDF
> with an ancient version of "Revolution" (like 2.x or something) you are
> out of luck.
> 
> If you have some 'external' you are trying to build, what is it? And
> what version of "Revolution" (vs LiveCode" are you trying to build it
> for? I am surprised any version of Revolution even runs under El Capitan
> - I think you need at least LiveCode 4.5 or maybe 4.6.4 or higher to run
> on El Capitan
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 


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

Re: Community PDF Project (was Revenue and the Open Source edition)

2016-05-04 Thread JB
Thanks Monty.
I will give it a try.

JB


> On May 4, 2016, at 4:09 PM, Monte Goulding  wrote:
> 
> 
>> On 5 May 2016, at 8:39 AM, JB  wrote:
>> 
>> I am trying to compile a external using xCode 7.  Is it possible in anyway to
>> make that external work or a way to use any version of Xcode on El Capitan
>> and make the external work?
> 
> Yes
>> Do you compile externals on a Mac with new
>> OS X systems like El Capitan and if you do what are you doing to make it
>> work?  
> 
> Yes I use El Capitan and the latest Xcode.
>> So I am looking for anyway to make the external work.
> 
> Ok so where exactly are you getting stuck? Perhaps it would help you to look 
> at one of my externals on GitHub like mergJson? 
> https://github.com/montegoulding/mergJSON
>> 
>> JB
>> 
>> 
>> 
>>> On May 4, 2016, at 3:21 PM, Monte Goulding  wrote:
>>> 
>>> A patch for what precisely?
>>> 
>>> Sent from my iPhone
>>> 
>>>> On 5 May 2016, at 8:12 AM, JB  wrote:
>>>> 
>>>> What I am trying to do is compile a external
>>>> for Revolution.  Is there a way to compile a
>>>> external for Revolution on Mac that is using
>>>> El Capitan?  A patch or anything to make it
>>>> work?
>>> 
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your 
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 


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


Re: Community PDF Project (was Revenue and the Open Source edition)

2016-05-04 Thread JB
That will help tremendously!

Thank you, Monty

JB

1
> On May 4, 2016, at 5:19 PM, Monte Goulding  wrote:
> 
> BTW I have a some Xcode templates that can help make things easier available 
> at https://github.com/montegoulding/livecode-external-templates
> 
>> On 5 May 2016, at 9:25 AM, JB  wrote:
>> 
>> Thanks Monty.
>> I will give it a try.
>> 
>> JB
>> 
>> 
>>> On May 4, 2016, at 4:09 PM, Monte Goulding  wrote:
>>> 
>>> 
>>>> On 5 May 2016, at 8:39 AM, JB  wrote:
>>>> 
>>>> I am trying to compile a external using xCode 7.  Is it possible in anyway 
>>>> to
>>>> make that external work or a way to use any version of Xcode on El Capitan
>>>> and make the external work?
>>> 
>>> Yes
>>>> Do you compile externals on a Mac with new
>>>> OS X systems like El Capitan and if you do what are you doing to make it
>>>> work?  
>>> 
>>> Yes I use El Capitan and the latest Xcode.
>>>> So I am looking for anyway to make the external work.
>>> 
>>> Ok so where exactly are you getting stuck? Perhaps it would help you to 
>>> look at one of my externals on GitHub like mergJson? 
>>> https://github.com/montegoulding/mergJSON
>>>> 
>>>> JB
>>>> 
>>>> 
>>>> 
>>>>> On May 4, 2016, at 3:21 PM, Monte Goulding  wrote:
>>>>> 
>>>>> A patch for what precisely?
>>>>> 
>>>>> Sent from my iPhone
>>>>> 
>>>>>> On 5 May 2016, at 8:12 AM, JB  wrote:
>>>>>> 
>>>>>> What I am trying to do is compile a external
>>>>>> for Revolution.  Is there a way to compile a
>>>>>> external for Revolution on Mac that is using
>>>>>> El Capitan?  A patch or anything to make it
>>>>>> work?
>>>>> 
>>>>> ___
>>>>> use-livecode mailing list
>>>>> use-livecode@lists.runrev.com
>>>>> Please visit this url to subscribe, unsubscribe and manage your 
>>>>> subscription preferences:
>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>>> 
>>>> 
>>>> ___
>>>> use-livecode mailing list
>>>> use-livecode@lists.runrev.com
>>>> Please visit this url to subscribe, unsubscribe and manage your 
>>>> subscription preferences:
>>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>> 
>>> 
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your 
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>> 
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 


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


read volume

2016-05-10 Thread JB
I thought I had read you could read
a volume like you read a file but it
can not be the startup volume.

I tried to read using the volume name shown
from the volumes function and open file and
it did not work so I used open driver and it
did not return any data either.

Is there a way to read a disk drive like you
read a file?  If I want to read all of the data
on a drive do I need to list all of the files and
then read from each file instead of reading
the drive or volume to end of file?

JB

___
use-livecode mailing list
use-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: read volume

2016-05-11 Thread JB
Thanks for the info.
I will read it.

JB


> On May 10, 2016, at 7:16 PM, Scott Rossi  wrote:
> 
> I think what you're looking for is directory walking (files & folders, not
> file contents).
> 
> You're part of a fairly recent thread that explains this:
> http://runtime-revolution.278305.n4.nabble.com/recursion-limit-when-creatin
> g-file-list-of-harddrive-td4697952i20.html
> 
> 
> Regards,
> 
> Scott Rossi
> Creative Director
> Tactile Media, UX/UI Design
> 
> 
> 
> 
> On 5/10/16, 12:29 PM, "use-livecode on behalf of JB"
> 
> wrote:
> 
>> I thought I had read you could read
>> a volume like you read a file but it
>> can not be the startup volume.
>> 
>> I tried to read using the volume name shown
>> from the volumes function and open file and
>> it did not work so I used open driver and it
>> did not return any data either.
>> 
>> Is there a way to read a disk drive like you
>> read a file?  If I want to read all of the data
>> on a drive do I need to list all of the files and
>> then read from each file instead of reading
>> the drive or volume to end of file?
>> 
>> JB
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 


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


Re: read volume

2016-05-11 Thread JB
When I read your reply it said there
was a recent thread opened
about that and gave a link.

Now it does not say that
and talks about walking
a directory.

Walking a directory for a large volume
is too slow.  I already tried it and I was
happy with the time it takes.

What I want to do is read the volume as
a file is read.  I am currently reading files
in 5kb sections and do this to EOF.

I guess when I read about volumes it was
in the C programming language.  I know it
it can be done with C and I might need to
write a external to do it.  I can read and
write files in C.  If there is a way to do it
without writing a external it would be nice
to give it a try.

JB




> On May 10, 2016, at 7:16 PM, Scott Rossi  wrote:
> 
> I think what you're looking for is directory walking (files & folders, not
> file contents).
> 
> You're part of a fairly recent thread that explains this:
> http://runtime-revolution.278305.n4.nabble.com/recursion-limit-when-creatin
> g-file-list-of-harddrive-td4697952i20.html
> 
> 
> Regards,
> 
> Scott Rossi
> Creative Director
> Tactile Media, UX/UI Design
> 
> 
> 
> 
> On 5/10/16, 12:29 PM, "use-livecode on behalf of JB"
> 
> wrote:
> 
>> I thought I had read you could read
>> a volume like you read a file but it
>> can not be the startup volume.
>> 
>> I tried to read using the volume name shown
>> from the volumes function and open file and
>> it did not work so I used open driver and it
>> did not return any data either.
>> 
>> Is there a way to read a disk drive like you
>> read a file?  If I want to read all of the data
>> on a drive do I need to list all of the files and
>> then read from each file instead of reading
>> the drive or volume to end of file?
>> 
>> JB
>> 
>> ___
>> use-livecode mailing list
>> use-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


Availabe diskspace

2016-05-11 Thread JB
If you want to ge the available diskspace
you can use the following function.

on mouseUp
   answer info "Show diskspace" with "GB" or "MB" or "KB"
   put it into theUnits
   get humanReadableDiskSpace (theUnits)
   ask info "Availabe diskspace" with it
end mouseUp

function humanReadableDiskSpace theUnits
   beep
   set the caseSensitive to false
   switch char 1 of theUnits
  case "k"
 return the diskSpace div 1024 & " kb"
 break
  case "m"
 return the diskSpace div (1024^2) & " mb"
 break
  case "g"
 return the diskSpace div (1024^3) & " gb"
 break
  default
 return the diskSpace
 break
   end switch
end humanReadableDiskSpace theUnits


What is the proper way to get the diskspace
from a external drive?

JB

___
use-livecode mailing list
use-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: Availabe diskspace

2016-05-11 Thread JB
Thank you very much.
I looked and missed it.

JB


> On May 11, 2016, at 8:59 AM, Mike Bonner  wrote:
> 
> From the dictionary: Returns the amount of free space on the disk that
> holds the defaultFolder.
> 
> So, set the defaultfolder to the root (or a folder) on the drive where you
> want to get the diskspace.
> 
> On Wed, May 11, 2016 at 9:34 AM, JB  wrote:
> 
>> If you want to ge the available diskspace
>> you can use the following function.
>> 
>> on mouseUp
>>   answer info "Show diskspace" with "GB" or "MB" or "KB"
>>   put it into theUnits
>>   get humanReadableDiskSpace (theUnits)
>>   ask info "Availabe diskspace" with it
>> end mouseUp
>> 
>> function humanReadableDiskSpace theUnits
>>   beep
>>   set the caseSensitive to false
>>   switch char 1 of theUnits
>>  case "k"
>> return the diskSpace div 1024 & " kb"
>> break
>>  case "m"
>> return the diskSpace div (1024^2) & " mb"
>> break
>>  case "g"
>>     return the diskSpace div (1024^3) & " gb"
>> break
>>  default
>> return the diskSpace
>> break
>>   end switch
>> end humanReadableDiskSpace theUnits
>> 
>> 
>> What is the proper way to get the diskspace
>> from a external drive?
>> 
>> JB
>> 
>> ___
>> use-livecode mailing list
>> use-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


Reading Files

2016-05-16 Thread JB
What programming language does
the engine use to read files?

JB

___
use-livecode mailing list
use-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 Files

2016-05-16 Thread JB
Hi Richard,

Thanks for the info.

The reason why is because I
am reading a lot of files and
was wondering if it would be
faster to write a external to read
them.

I have no complaints and I think
it reads them very fast already
but I was doing what I could to
learn if it could be speeded up.

I am now thinking it is as fast as
I can make it so your answer will
save me a lot of wasted time.

Thanks again!

JB



> On May 16, 2016, at 3:32 PM, Richard Gaskin  
> wrote:
> 
> JB wrote:
>> What programming language does
>> the engine use to read files?
> 
> Most of the LiveCode engine is written in C++.  Why?
> 
> -- 
> 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
> 


___
use-livecode mailing list
use-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 Files

2016-05-16 Thread JB
Thank you!

I will definitely read it.

Right now I am reading files in
5kb sections to EOF and I am
reading 350 average size jpg’s
in around 4 seconds.  I will be
doing some processing on the
files but that will be done after
everything else is as fast as I
can get it.

JB




> On May 16, 2016, at 4:01 PM, Richard Gaskin  
> wrote:
> 
> JB wrote:
> 
> > The reason why is because I
> > am reading a lot of files and
> > was wondering if it would be
> > faster to write a external to read
> > them.
> 
> LiveCode does offer a few different ways to read and write files, which vary 
> according by speed and features.  And of course there are many ways to work 
> with the data once it's read in, where usually more time is spent.
> 
> If you find something you're working on that seems like it might be optimized 
> feel free to post the code and we'll see what we can do.
> 
> FWIW this thread is long but worth reading - the OP had a process that 
> originally took more than 9 minutes and by the time several forum regulars 
> helped out with various optimizations the final form took only a few 
> milliseconds:
> <http://forums.livecode.com/viewtopic.php?f=8&t=24945>
> 
> -- 
> 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
> 


___
use-livecode mailing list
use-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: Problems with Xcode

2016-06-02 Thread JB
Thank you very much for
the info!

JB


> On Jun 2, 2016, at 10:55 AM, martin meili  wrote:
> 
> Hi 
> Some days ago I posted a message that LiveCode had problems finding the 
> correct Xcode-version on my iMac. Some people from the list told me, the 
> problem could be fixed with Terminal. Now, I’ve got the answer from Apple 
> support, as follows:
> 
> "There is actually UI in Xcode that can help you achieve the same goal. 
> Choose Xcode > Preferences, and click Locations.
> Select a version from the Command Line Tools pop-up menu.
> When you get to step 2, and select the Command Line Tools drop down menu, you 
> should see a list of the different versions of Xcode installed on your 
> machine. Make the appropriate selection from the drop down. 
> 
> FYI, if you don’t need to maintain separate versions of Xcode it may be 
> easier for you if you remove the old versions of Xcode.“
> 
> This piece of advice from Apple helped me to fix my problem.
> 
> Cheers
> Martin
> 
> 
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 


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


Re: [OT] building hpkg packages for Haiku OS

2016-06-12 Thread JB
I was reading a little about it and it said it is
a open source OS built using JAM.  Then I
read a little about JAM and it said JAM has
Efficient C bindings*
Since LiveCode is written in C++ it might mean
it could be incorporated easily.

JB




> On Jun 12, 2016, at 1:00 PM, Richmond  wrote:
> 
> I cannot find adequate documentation on this.
> 
> Supposedly (!), one can build from source code, fully functional Haiku OS apps
> such as (!) Livecode (?).
> 
> Richmond.
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 

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


Re: [OT] building hpkg packages for Haiku OS

2016-06-12 Thread JB
Thanks Richard.

Don’t worry you won’t be stopping me frorm
adding LiveCode to a new version of BeOS.
I do have some old BeOS ROMS & software
but I have not used them in years.

Efficient bindings would suggest to me you
could easily use C libraries and if LiveCode
is written with libraries it might be reasonably
easy for someone to add them but I am not the
person for that job, plus I am busy trying to finish
the program you gave me advice to speed up.

Someone posted on here the first 90% of a program
takes 90% of the time and the last 10% takes the other
90% of the time.  I still have a few percent to finish so I
do not have the time even if it is easy.

JB




> On Jun 12, 2016, at 2:51 PM, Richard Gaskin  
> wrote:
> 
> JB wrote:
> 
> > I was reading a little about it and it said it is a open source
> > OS built using JAM.  Then I read a little about JAM and it said
> > JAM has Efficient C bindings*
> > Since LiveCode is written in C++ it might mean it could be
> > incorporated easily.
> 
> "Easily" is relative.
> 
> LiveCode is not an island.  It's a system that carefully factors our common 
> LiveCode Script to provide seven different sets of interfaces to underlying 
> OS calls.
> 
> I suppose there are some things that are truly generic across platforms, but 
> anything touching GUI elements, file systems, or other OS-controlled things 
> are likely not so "easy" to write all over again for another OS.
> 
> Haiku was originally BeOS, a wonderful system with many interesting and 
> somewhat advanced features.
> 
> But after Apple passed on it in favor of the much-more-expensive NeXT, Be 
> languished, eventually becoming open source under a new trademark as HaikuOS.
> 
> BeOS was an unusual system.  I would imagine porting the LC engine to it 
> would be at least as expensive as porting the Mac build from Carbon to Cocoa, 
> but without any of Apple's tools or libraries to help.
> 
> But then again I've never done C programming for BeOS.  If it seems easy to 
> port LC to it don't let me stop you. :)
> 
> -- 
> 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
> 


___
use-livecode mailing list
use-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: Licensing AGAIN [was: Sharing FontLab Plugin]

2016-07-22 Thread JB
Around a year or so ago I read Apple was thinking
of making xCode open source.  If they do then it
seems like they could incorporate Livecode open
source to develope similar features in xCode.  With
their money, attorneys, and laws in different countries
they can pretty much use what they want.  They need
to simplify their interface whatever path they take.

John Balgenorth


> On Jul 22, 2016, at 10:32 AM, Kevin Miller  wrote:
> 
> Hi folks,
> 
> We do review our licensing from time to time and I will at some point look
> again at whether we can clarify this further or introduce changes that
> make it clearer to our end users. Iąm not a lawyer and until this stuff
> gets tested in court it seems hard to say what will and wonąt stand up.
> 
> A few comments on the statements below though. Firstly, the article Mark
> helpfully references is based on USA law. LiveCode is based in the UK.
> There isnąt the same concept of łfair use˛ over here, and various other
> aspects of copyright law are different. It would be hard to say that the
> statements in that article, if correct in the USA (and as I say they
> havenąt been tested) would apply here.
> 
> Secondly, LiveCode is very different from Wordpress. Stacks are executable
> binaries that incorporate aspects of the engine. That's even more the case
> now when they start to use and include widgets. There isnąt a good
> comparison with other text based languages. I personally doubt our script
> only components are GPL, but as Iąve said this hasnąt been tested in court
> and its not up to me.
> 
> GPL does not alter the copyright assignment of the work that you create.
> Nor does it kick in at all on work on your own machine, it only applies at
> the point you distribute. When it applies, it simply requires that your
> work be distributed with certain additional freedoms. That does not remove
> your copyright, it just adds some rights for other people. You can change
> that any time by buying a commercial license.
> 
> If all stacks were not GPL, then there would be far less need for
> standalones any more. Just build a commercial product and ship it, let the
> user install the IDE to run it. Maybe fork the source to add in password
> protection. That impact wouldnąt apply as quickly to iOS but it would take
> another chunk of our revenue away overnight on all other platforms. Which
> means less features for you, less bug fixes, less engineers and less
> progress on the platform. There are other ways to encourage commercial
> license use (e.g. by adding features) but we arenąt there yet to the
> extent we would need to be. Maybe when we get further down that path this
> sort of change might start to stack up economically. In the mean time it
> is surely in everyoneąs interests that we are strong and healthy.
> 
> Mark Iąm very happy to sit down with you (and anyone else) over a whisky
> and debate all of this. If we can find a clearer license that continues to
> bring in sufficient revenue for our core team to develop the platform and
> grows our community even better, Iąd be truly delighted. In order to have
> that debate, you would need to be more aware of the actual economics of
> our specific situation and that not something we can do on list. As yet I
> havenąt come up with a better license combination for where we are today
> and its not for lack of thought on the subject.
> 
> Kind regards,
> 
> Kevin
> 
> Kevin Miller ~ ke...@livecode.com ~ http://www.livecode.com/
> LiveCode: Everyone can create apps
> 
> 
> 
> 
> On 22/07/2016, 02:52, "use-livecode on behalf of Mark Wilcox"
>  m...@sorcery-ltd.co.uk> wrote:
> 
>> On Fri, Jul 22, 2016, at 03:38 AM, Richard Gaskin wrote:
>>> Mark Wilcox wrote:
>>> 
 My concern around LiveCode over-reaching with their derivative
 work claims (which are significantly stronger than those made
 by WordPress and Drupal)
>>> 
>>> In what way(s)?
>> 
>> OK, it's not wise to pull too hard on this thread, because LiveCode does
>> potentially have an issue with people distributing stackfiles
>> commercially, separate from a copy of the engine.
>> 
>> That said, several noteworthy points exist in this regard:
>> 1) First, the Software Freedom Law Centre - which tends to be rather
>>  biased in attempting to push copyright law interpretations in a way
>>  that strengthen's copyleft licenses - has only given an opinion on
>>  WordPress themes, not plugins. That analysis suggested that the PHP
>>  code in themes was essentially trivial, just calling a fixed set of
>>  APIs to enable the CSS and images to be used in the right places.
>>  It's debatable but not unreasonable to suggest that the PHP code in
>>  themes is subject to the GPL. The SFLC specifically said that the CSS
>>  and images were not subject to the GPL.
>> 
>> 2) A core WordPress contributor, Mark Jaquith, publicly stated at the
>>  time of the SFLC statement on themes that the same argument applied
>>  to plugins as well. He has since reconsidered that opi

Re: Licensing AGAIN [was: Sharing FontLab Plugin]

2016-07-22 Thread JB
I don’t know what is legal for sure but it seems to
me once the code was sold and then Livecode
made a commercial product using the code it
opens the door for others to use the code in a
similar fashion as Livecode since the sold the
code and the similar rights went with it.

What compiled code is allowed in a open
source project now?  Live code does not
go out of the way to help people add any
externals but they are allowed and Apple
could easily add certain parts as externals
and comply with the open source license.

Apple also had hyperCard and using code
that is similar would be legal.  Whatever
path they take Apple needs to simplify the
xCode interface.

John Balgenorth



> On Jul 22, 2016, at 8:04 PM, Dr. Hawkins  wrote:
> 
> On Fri, Jul 22, 2016 at 3:04 PM, JB  wrote:
> 
>> Around a year or so ago I read Apple was thinking
>> of making xCode open source.  If they do then it
>> seems like they could incorporate Livecode open
>> source to develope similar features in xCode.
>> 
> 
> If apple were to do that, it would be under a Free/BSD type license, not a
> viral/GPL type license.  Conversely, it wouldn't make any sense for
> livecode to use a non-viral license.
> 
> Xcode isn't the product; it's part of the support system, while livecode
> *is* the product.
> 
> 
> -- 
> Dr. Richard E. Hawkins, Esq.
> (702) 508-8462
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 


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

Re: Licensing AGAIN [was: Sharing FontLab Plugin]

2016-07-24 Thread JB
If that were the case Apple and Microsoft would own
everything used on their code and OS.

The bigger issues is can the community version be
used to compile a project like the the commercial
version and the answer is yes it can plus others are
allowed to use the code they purchased to run a
business similar to Livecode and charge like them
or give it away.

The standards of what can be done with the code
purchased are being set by example of Livecode
and how they uses the same code.

If they fight this in court and lose then it is possible
the ruling will say nobody is allowed to compile the
code or charge a license fee and that could result
in everyone being refunded their license fee.

John Balgenorth


> On Jul 24, 2016, at 5:18 AM, Malte Brill  wrote:
> 
> I tried to follow this thread as closely as I can, however there are some 
> things still not clear to me regarding TEXT ONLY scripts. This is in regards 
> to the fora and this very list. If we are discussing scripts on here, how are 
> we to judge if the person replying used a community version and thus making 
> the script viral or not. I think we need a clear statement on what happens to 
> snippets posted here and over at the fora, otherwise…
> 
> THIS WAS WRITTEN IN THE COMMUNITY VERSION!!!
> 
> 
> — all your script are belong to us
> 
> on mouseUp
> 
> end mouseUp
> 
> on mouseDown
> 
> end mouseDown
> 
> on mouseMove
> 
> end mouseMove
> 
> on touchStart
> 
> end touchStart
> 
> — pwned???
> 
> 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

Pointers

2016-10-09 Thread JB
Livecode has imported foundation which gives users
the ability to access those libraries and it was written
you can use pointers.  Pointers are used in both C &
objective-C.  You write them a little different but the
basic concept is the same.  A pointer points to a
location in memory.  A variable is an object which the
pointer points to.  If variable X holds the integer 34 &
is located in the memory stack at 4217 the pointer will
simply hold that address which points you to 4217 in
memory so you can access and change the contents
of the memory at 4217 which is the object named X
and it is a variable of the type int or another type.

To efficiently write code using pointers you need a
good understanding of them.  Here is a link to one
of the best tutorials I have seen on pointers;

http://pw1.netcom.com/~tjensen/ptr/pointers.htm

This is written for beginners but it is so good even
many advanced programmers with a good knowledge
of pointers will benefit greatly from reading it.

JB

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


Why pointers are fast

2016-10-24 Thread JB
To understand why pointers are fast you need to know
a pointer stores the address to a object like a variable
in memory and you need to know what that address is
doing.

Here is another really good lesson on pointers.

http://masters-of-the-void.com

The tutorial is called Masters of the Void and instead
of chapters it uses the word Book.  Look at Book 6
ro learn about memory management and pointers.

JB


___
use-livecode mailing list
use-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 do I codesign an App?

2016-10-26 Thread JB
Thanks for the info and link, Trevor.

JB



> On Oct 26, 2016, at 6:22 AM, Trevor DeVore  wrote:
> 
> On Wed, Oct 26, 2016 at 8:12 AM, Graham Samuel  wrote:
> 
>> 
>> I’m glad we’re both still here! Yes, that’s useful stuff, thank you very
>> much. I will see if I can actually get a certificate or two and use
>> Trevor’s code to deploy it/them. If all that works, then I have to try to
>> understand what the equivalent thing is on Windows. I note that the article
>> says in effect that codesigning is an Apple technology, but AFAIK it’s not,
>> but more an industry-wide sort of thing, isn’t it? Certainly there are
>> certificates in some web technologies as I occasionally get (and often
>> ignore) warnings about ones that have expired…
>> 
> 
> I have some instructions for getting certificates and code signing here:
> 
> http://revolution.screenstepslive.com/s/revolution/m/10695
> 
> The Windows instructions should still work. The OS X ones may be out of
> date but perhaps they may still help.
> 
> -- 
> Trevor DeVore
> ScreenSteps
> www.screensteps.com-www.clarify-it.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

Foundation Framework

2017-01-02 Thread JB
The Livecode team imported Apple’s Foundation
Framework so you can use its power inside of a
stack instead of writing extensions.  It will be a
little slower than an extension but in many cases
the loss of speed will not be noticeable.

To access all the power of foundation you need to
know objective-c which is simply improvements
to the C language.

Everything in the C language is a function.  Livecode
was written in C++ so learning it will help you write
functions in Livecodde.

Here are two links that will help you;

1.  One of the best tutorials for C loaded with
examples.

http://fresh2refresh.com/c-programming/


2.  Some of the best examples I have seen for
 accessing the power of Foundation.

https://ios.eezytutorials.com/nsarray-by-example.php#.WGr_jrGZMlU


Happy New Year and Happy Programming!

JB


1



___
use-livecode mailing list
use-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: Foundation Framework

2017-01-03 Thread JB
Hi,
Over a year ago they said Foundation was
imported and you can even use pointers.  I
don’t have anymore info about it.

Learning C will help even if for some reason
they are having problems with Foundation.

I am glad the links work.  One day links are
there and another they are gone so if you
value the code save it while you can.

JB



> On Jan 3, 2017, at 3:09 AM, hh  wrote:
> 
>> JB wrote:
>> The Livecode team imported Apple’s Foundation
>> Framework so you can use its power inside of a
>> stack instead of writing extensions.  It will be a
>> little slower than an extension but in many cases
>> the loss of speed will not be noticeable.
> 
> JB,
> 
> are you speaking about the future, that is LCB via FFI, or
> do you already have a non-trivial example for that (and are
> willing to share it)?
> 
> hh
> 
> p.s. Your 'tutorial' links are fine, thanks.
> 
>> JB sundown at pacifier.com wrote:
>> 
> 
>> The Livecode team imported Apple’s Foundation
>> Framework so you can use its power inside of a
>> stack instead of writing extensions.  It will be a
>> little slower than an extension but in many cases
>> the loss of speed will not be noticeable.
>> 
>> To access all the power of foundation you need to
>> know objective-c which is simply improvements
>> to the C language.
>> 
>> Everything in the C language is a function.  Livecode
>> was written in C++ so learning it will help you write
>> functions in Livecodde.
>> 
>> Here are two links that will help you;
>> 1.  One of the best tutorials for C loaded with
>> examples.
>> http://fresh2refresh.com/c-programming/
>> 2.  Some of the best examples I have seen for
>> accessing the power of Foundation.
>> https://ios.eezytutorials.com/nsarray-by-example.php#.WGr_jrGZMlU
>> Happy New Year and Happy Programming!
>> JB
> 
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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

Re: Foundation Framework

2017-01-03 Thread JB
I did what I could to provide some good
examples to help people learn.

If you are not making any mistakes then
you are not learning anything.

If you want it all prepackaged ask the
Livecode team to use the samples in
widgets.  They will do what they see
is financially beneficial so your money
speaks when it comes to changes.

JB


> On Jan 3, 2017, at 5:16 AM, hh  wrote:
> 
>> JB wrote:
>> Over a year ago they said Foundation was
>> imported and you can even use pointers. I
>> don’t have anymore info about it.
> 
> JB, 
> thanks. A simple example of an already available foundation
> function and a link to a header listing others is here:
> http://forums.livecode.com/viewtopic.php?p=147232#p147232
> (explained there by peter-b, for use in a widget's code)
> 
> But that's probably the very beginning only of what you have
> in mind.
> 
>> JB wrote:
>> Learning C will help even if for some reason they are having
>> problems with Foundation.
> 
> Most of us hope that having a good example for copy and paste
> will be enough for "similar usages" with small changes. Avoiding
> C/C++/objC or java may be, besides LC's cross-platform property,
> for many people a main reason to use LiveCode.
> 
> It will be an important community contribution by people like
> you to give us such typical good examples!
> 
> hh
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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

Re: [ANN] - MaterLibrary Version 8 is available

2014-11-14 Thread JB
Thank you, Mike!

You did a very nice job on it.

John Balgenorth


On Nov 14, 2014, at 12:15 PM, Michael Doub  wrote:

> Enjoy!
>-= Mike
> 
> https://www.dropbox.com/s/3wpwn3hfbmpl7sk/MasterLibrary.livecode?dl=0
> 
> 
> 
> Release 8
> *Added reference page that incudes an ASCII table and Livecode Error Codes
> (thanks to Peter M. Bingham for the materials and idea.)
> *Updated the version check to let you know if you are current rather than 
> just being silent.
> *Updated the filtering to allow you to select the handlers to be inserted 
> from within the filtered view
> *You can also override the filter to see only what handlers are selected.
> *The double check now occurs on each insert request, not just when 
> nothing is selected.
> 
> Release 7
> *Added the following routines:
>__Clean
>__Thousands
>__UnThousands
>__Padded
>__Indent
>__MultiSortFields
>__ISODateTime
>__ISOtoSeconds
>__SecondsToISO
>__RecurseOverFolders
>__RelativePath
>__Overlap
>*  Corrected documentation for ISOnow()
>*Added handler name filtering to help find routines buried in the 
> tree, but you still need to use the
>tree view to select the handlers to be inserted into your library.
> 
> 
> ___
> use-livecode mailing list
> use-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


Stripping Returns

2014-11-18 Thread JB
A field has a limit on the amount of characters
you can have on each line.  What if I put the
text of a field in a variable and it has 500,000
characters.  Then I strip all of the returns that
are in the field.  Does that leave only one line
with 500,000 characters?  That exceeds the
amount of characters allowed per line so what
happens to the text in the variable?

Another similar question is what happens if I am
reading a file until the end and it is very large.  Will
returns be automatically placed if needed so the line
limit got characters is not exceeded or do I need to
read large files in sections that are less than the line
limit for characters?

John Balgenorth

___
use-livecode mailing list
use-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: Stripping Returns

2014-11-19 Thread JB
Thank you.  The logic is simple enough.
Even so it should be noted in the read
file that reading to the end of a file will
fail to provide you the info if the file has
more than 65,535 characters.

John Balgenorth


On Nov 18, 2014, at 8:35 PM, dunb...@aol.com wrote:

> Hi.
> 
> 
> Did you try this? Simple to do in a little test card. The chars beyond 65535 
> will be lost. Do you see what the likely answer to your second question is? 
> Note that reading from a file does not anticipate what you will do with the 
> data. Variables have no limits, within memory, of course, but what you do 
> with that data may hit a wall.
> 
> 
> Craig Newman
> 
> 
> 
> -Original Message-
> From: JB 
> To: How to use LiveCode 
> Sent: Tue, Nov 18, 2014 9:48 pm
> Subject: Stripping Returns
> 
> 
> A field has a limit on the amount of characters
> you can have on each line.  What if I put the
> text of a field in a variable and it has 500,000
> characters.  Then I strip all of the returns that
> are in the field.  Does that leave only one line
> with 500,000 characters?  That exceeds the
> amount of characters allowed per line so what
> happens to the text in the variable?
> 
> Another similar question is what happens if I am
> reading a file until the end and it is very large.  Will
> returns be automatically placed if needed so the line
> limit got characters is not exceeded or do I need to
> read large files in sections that are less than the line
> limit for characters?
> 
> John Balgenorth
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 


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


Re: Stripping Returns

2014-11-19 Thread JB
I knew there were limits for variables and if I am
correct they are the same as field limits.  I was
not aware custom properties have no limits. It
looks like reading in chunks is the way to go.
Thank you.

John Balgenorth


On Nov 19, 2014, at 7:41 AM, dunb...@aol.com wrote:

> You only need to worry about that if you are loading all that data in a 
> field. You might store it in a custom property, for example, and never know 
> there was an issue at all. By the way, that might be useful for you, paging 
> data in usable chunks as needed.
> 
> 
> But it would be a helpful hint, I guess. Or learn the hard way, like you did. 
> That is what I do. At least that method sticks, until I forget it, that is.
> 
> 
> Craig
> 
> 
> 
> -Original Message-
> From: JB 
> To: How to use LiveCode 
> Sent: Wed, Nov 19, 2014 5:48 am
> Subject: Re: Stripping Returns
> 
> 
> Thank you.  The logic is simple enough.
> Even so it should be noted in the read
> file that reading to the end of a file will
> fail to provide you the info if the file has
> more than 65,535 characters.
> 
> John Balgenorth
> 
> 
> On Nov 18, 2014, at 8:35 PM, dunb...@aol.com wrote:
> 
>> Hi.
>> 
>> 
>> Did you try this? Simple to do in a little test card. The chars beyond 65535 
> will be lost. Do you see what the likely answer to your second question is? 
> Note 
> that reading from a file does not anticipate what you will do with the data. 
> Variables have no limits, within memory, of course, but what you do with that 
> data may hit a wall.
>> 
>> 
>> Craig Newman
>> 
>> 
>> 
>> -Original Message-
>> From: JB 
>> To: How to use LiveCode 
>> Sent: Tue, Nov 18, 2014 9:48 pm
>> Subject: Stripping Returns
>> 
>> 
>> A field has a limit on the amount of characters
>> you can have on each line.  What if I put the
>> text of a field in a variable and it has 500,000
>> characters.  Then I strip all of the returns that
>> are in the field.  Does that leave only one line
>> with 500,000 characters?  That exceeds the
>> amount of characters allowed per line so what
>> happens to the text in the variable?
>> 
>> Another similar question is what happens if I am
>> reading a file until the end and it is very large.  Will
>> returns be automatically placed if needed so the line
>> limit got characters is not exceeded or do I need to
>> read large files in sections that are less than the line
>> limit for characters?
>> 
>> John Balgenorth
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 


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


Re: Stripping Returns

2014-11-19 Thread JB
Thank you, Jacque.

I thought things were not as they seemed and I
was reading large files but the line limits would
confuse me as to why some times they did not
seem to matter like when reading a whole file
and putting it in a field but if I converted the file
I would need to save the converted text in lines
that are 62k or smaller.  And yet when I would
finally convert it back to the original file it did not
need to be save in lines 62k or smaller.

You really explained a lot.

John Balgenorth

On Nov 19, 2014, at 8:14 AM, J. Landman Gay  wrote:

> Reading a file always gives you all the content regardless of the size, up to 
> memory limits. Displaying a long line of text will truncate it after 62k but 
> as I understand it, the truncation is visual only.  If a script asks for the 
> line it is all returned. (Better check that, but that was my understanding.) 
> 
> But the restriction only applies to lines that don't wrap, such as those in 
> list fields.  If the text contains spaces or other delimiting tokens, the 
> text will wrap and the restriction is lifted. 
> 
> When reading a file from disk as text, line endings will be converted to the 
> ones used by the current OS. Text read as binary will not be altered.  
> 
> 
> On November 19, 2014 4:44:53 AM CST, JB  wrote:
>> Thank you.  The logic is simple enough.
>> Even so it should be noted in the read
>> file that reading to the end of a file will
>> fail to provide you the info if the file has
>> more than 65,535 characters.
>> 
>> John Balgenorth
>> 
>> 
>> On Nov 18, 2014, at 8:35 PM, dunb...@aol.com wrote:
>> 
>>> Hi.
>>> 
>>> 
>>> Did you try this? Simple to do in a little test card. The chars
>> beyond 65535 will be lost. Do you see what the likely answer to your
>> second question is? Note that reading from a file does not anticipate
>> what you will do with the data. Variables have no limits, within
>> memory, of course, but what you do with that data may hit a wall.
>>> 
>>> 
>>> Craig Newman
>>> 
>>> 
>>> 
>>> -Original Message-
>>> From: JB 
>>> To: How to use LiveCode 
>>> Sent: Tue, Nov 18, 2014 9:48 pm
>>> Subject: Stripping Returns
>>> 
>>> 
>>> A field has a limit on the amount of characters
>>> you can have on each line.  What if I put the
>>> text of a field in a variable and it has 500,000
>>> characters.  Then I strip all of the returns that
>>> are in the field.  Does that leave only one line
>>> with 500,000 characters?  That exceeds the
>>> amount of characters allowed per line so what
>>> happens to the text in the variable?
>>> 
>>> Another similar question is what happens if I am
>>> reading a file until the end and it is very large.  Will
>>> returns be automatically placed if needed so the line
>>> limit got characters is not exceeded or do I need to
>>> read large files in sections that are less than the line
>>> limit for characters?
>>> 
>>> John Balgenorth
>>> 
>>> ___
>>> use-livecode mailing list
>>> use-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
> 
> -- 
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software   | http://www.hyperactivesw.com
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 


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


Re: Stripping Returns

2014-11-19 Thread JB
Thank you for the reply and info.

I was wondering about limits in variables
and and the info everyone provided helps
me a lot.

John Balgenorth


On Nov 19, 2014, at 11:46 AM, Jerry Jensen  wrote:

> A couple more points:
> The space ending the "1234567890 " does wrap the line, but does NOT affect 
> the limit.
> I tried putting the field back into a variable, and it is still 65533 length. 
> The data is truncated.
> 
> JB note: The limit is only in FIELDS, NOT VARIABLES. You can read a long file 
> into a variable in one go with no problem. Its only when you put it into a 
> field that the limitation applies.
> 
> Jerry
> 
> On Nov 19, 2014, at 8:54 AM, dunb...@aol.com wrote:
> 
>> Jacque.
>> 
>> The text is truncated, not simply not displayed:
>> 
>> on mouseUp
>>  put "1234567890 " into temp
>>  repeat 1
>> put temp after accum
>>  end repeat
>>  put accum into fld 1 -- 110,000 chars
>>  answer the length of fld 1
>> end mouseUp
>> 
>> You get 65,533.
>> 
>> Not sure where the last two chars went.
>> 
>> Craig
>> 
>> 
>> -Original Message-
>> From: J. Landman Gay 
>> To: How to use LiveCode 
>> Sent: Wed, Nov 19, 2014 11:15 am
>> Subject: Re: Stripping Returns
>> 
>> 
>> Reading a file always gives you all the content regardless of the size, up 
>> to 
>> memory limits. Displaying a long line of text will truncate it after 62k but 
>> as 
>> I understand it, the truncation is visual only.  If a script asks for the 
>> line 
>> it is all returned. (Better check that, but that was my understanding.) 
>> 
>> But the restriction only applies to lines that don't wrap, such as those in 
>> list 
>> fields.  If the text contains spaces or other delimiting tokens, the text 
>> will 
>> wrap and the restriction is lifted. 
>> 
>> When reading a file from disk as text, line endings will be converted to the 
>> ones used by the current OS. Text read as binary will not be altered.  
>> 
>> 
>> On November 19, 2014 4:44:53 AM CST, JB  wrote:
>>> Thank you.  The logic is simple enough.
>>> Even so it should be noted in the read
>>> file that reading to the end of a file will
>>> fail to provide you the info if the file has
>>> more than 65,535 characters.
>>> 
>>> John Balgenorth
>>> 
>>> 
>>> On Nov 18, 2014, at 8:35 PM, dunb...@aol.com wrote:
>>> 
>>>> Hi.
>>>> 
>>>> 
>>>> Did you try this? Simple to do in a little test card. The chars
>>> beyond 65535 will be lost. Do you see what the likely answer to your
>>> second question is? Note that reading from a file does not anticipate
>>> what you will do with the data. Variables have no limits, within
>>> memory, of course, but what you do with that data may hit a wall.
>>>> 
>>>> 
>>>> Craig Newman
>>>> 
>>>> 
>>>> 
>>>> -Original Message-
>>>> From: JB 
>>>> To: How to use LiveCode 
>>>> Sent: Tue, Nov 18, 2014 9:48 pm
>>>> Subject: Stripping Returns
>>>> 
>>>> 
>>>> A field has a limit on the amount of characters
>>>> you can have on each line.  What if I put the
>>>> text of a field in a variable and it has 500,000
>>>> characters.  Then I strip all of the returns that
>>>> are in the field.  Does that leave only one line
>>>> with 500,000 characters?  That exceeds the
>>>> amount of characters allowed per line so what
>>>> happens to the text in the variable?
>>>> 
>>>> Another similar question is what happens if I am
>>>> reading a file until the end and it is very large.  Will
>>>> returns be automatically placed if needed so the line
>>>> limit got characters is not exceeded or do I need to
>>>> read large files in sections that are less than the line
>>>> limit for characters?
>>>> 
>>>> John Balgenorth
>>>> 
>>>> ___
>>>> use-livecode mailing list
>>>> use-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: Stripping Returns

2014-11-19 Thread JB
More info that is good to know.
Thanks again.

John Balgenorth


On Nov 19, 2014, at 12:14 PM, J. Landman Gay  wrote:

> On 11/19/2014, 10:54 AM, dunb...@aol.com wrote:
>> The text is truncated, not simply not displayed:
>> 
>> 
>> 
>> on mouseUp
>>put "1234567890 " into temp
>>repeat 1
>>   put temp after accum
>>end repeat
>>put accum into fld 1 -- 110,000 chars
>>answer the length of fld 1
>> end mouseUp
>> 
>> 
>> You get 65,533.
> 
> Curiosity made me test:
> 
> on setup
>  repeat until len(tStr) > 66000
>put any word of the colornames & space after tStr
>  end repeat
>  put last word of tStr -- for reference later
>  put tStr into fld 1
> end setup
> 
> The field is a list field with a horizontal scrollbar. I can't see the end of 
> the line visually but the message box knows what it is.
> 
> From the message box:
> 
> put len(line 1 of fld 1) --  66004
> put len(fld 1) -- 66004
> put the last word of line 1 of fld 1 -- matches what the handler put there
> 
> Works the same for me without the spaces in the string.
> 
> -- 
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software   | http://www.hyperactivesw.com
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 


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


Android and iOS

2014-12-20 Thread JB
What is the earliest version of Revolution and LiveCode
that provided the ability to build a standalone for the iOS
and Android?  What is the earliest version that works on
todays Android and iOS?

Are there known compatibility issues that I should try to
avoid while programming the desktop versions so I will
be able to build the Android and iOS standalone without
having problems?

I do not currently have a mobile device for testing so any
related info I need to consider is appreciated.

John Balgenorth

___
use-livecode mailing list
use-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: Android and iOS

2014-12-20 Thread JB
Thanks for the reply and info!

I suspected the earlier versions
would not work with the latest
mobile devices but wash”t sure.
That will certainly save me some
time knowing where to start.

John Balgenorth


On Dec 20, 2014, at 3:42 PM, Paul Dupuis  wrote:

> On 12/20/2014 6:11 PM, JB wrote:
>> What is the earliest version of Revolution and LiveCode
>> that provided the ability to build a standalone for the iOS
>> and Android?  What is the earliest version that works on
>> todays Android and iOS?
> 
> LiveCode 4.6.x (4.6.4 was the last version in the 4.6 series) added
> Android support (LC 4.5.x only had iOS)
> 
>> Are there known compatibility issues that I should try to
>> avoid while programming the desktop versions so I will
>> be able to build the Android and iOS standalone without
>> having problems?
> 
> I believe you need to be at 6.7.x to be able to build for the latest iOS
> (and Android)
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 


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


Re: Invisible character treated as word?

2015-01-27 Thread JB

On Jan 27, 2015, at 6:46 PM, Kay C Lan  wrote:

> 
> My suggested solution is where ever the data originally came from, prior to
> inputting into your fields, variables or custom properties, it should be
> tested to confirm that the data only contains ASCII chars 48 to 57 (unless
> you include thousand separators and or decimal points, in which case you'd
> have to include their ASCII equivalents as well).
> 
> HTH

How about something like this?

put “0123456789.,” into tList
—put the text you want to check in pText

repeat with x = 1 to number of chars in pText
   if char x of pText is in tList then put char x of pText in tCleanText
end repeat

put tCleanText

John Balgenorth



___
use-livecode mailing list
use-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: Invisible character treated as word?

2015-01-27 Thread JB
That should have been put after tCleanText

> repeat with x = 1 to number of chars in pText
>   if char x of pText is in tList then put char x of pText in tCleanText
> end repeat


On Jan 27, 2015, at 7:28 PM, JB  wrote:

> 
> On Jan 27, 2015, at 6:46 PM, Kay C Lan  wrote:
> 
>> 
>> My suggested solution is where ever the data originally came from, prior to
>> inputting into your fields, variables or custom properties, it should be
>> tested to confirm that the data only contains ASCII chars 48 to 57 (unless
>> you include thousand separators and or decimal points, in which case you'd
>> have to include their ASCII equivalents as well).
>> 
>> HTH
> 
> How about something like this?
> 
> put “0123456789.,” into tList
> —put the text you want to check in pText
> 
> repeat with x = 1 to number of chars in pText
>   if char x of pText is in tList then put char x of pText in tCleanText
> end repeat
> 
> put tCleanText
> 
> John Balgenorth
> 
> 
> 
> ___
> use-livecode mailing list
> use-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


MySQL lite password

2015-02-20 Thread JB
What is the proper way to add a password to
a MySQL lite database?

John Balgenorth

___
use-livecode mailing list
use-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 lite password

2015-02-20 Thread JB
THANKS FOR THE INFO!

I can encrypt the DB and use
a password from there.  Your
info saves me a lot of time.

thanks again,
John Balgenorth


On Feb 20, 2015, at 1:39 PM, Andrew Kluthe  wrote:

> Unfortunately, for a SQLite file there isn't really any built in
> authentication/permissions features.
> 
> With using only live code your only real option is to encrypt the entire
> file either using built in encrypt/decrypt commands or shell out to
> something that can.
> 
> Kind regards,
> 
> Andrew
> On Feb 20, 2015 1:53 PM, "JB"  wrote:
> 
>> What is the proper way to add a password to
>> a MySQL lite database?
>> 
>> John Balgenorth
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 


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


Re: MySQL lite password

2015-02-20 Thread JB
Maybe both but right now I was just
going to encrypt the database.

Is there a problem with that?

The database will only be used with
my program therefore compatibility
is of no concern to me.

John Balgenorth


On Feb 20, 2015, at 2:18 PM, Skip Kimpel  wrote:

> Encrypt the entire database? Or encrypt the data inside of the database?
> 
>> On Feb 20, 2015, at 5:05 PM, JB  wrote:
>> 
>> THANKS FOR THE INFO!
>> 
>> I can encrypt the DB and use
>> a password from there.  Your
>> info saves me a lot of time.
>> 
>> thanks again,
>> John Balgenorth
>> 
>> 
>>> On Feb 20, 2015, at 1:39 PM, Andrew Kluthe  wrote:
>>> 
>>> Unfortunately, for a SQLite file there isn't really any built in
>>> authentication/permissions features.
>>> 
>>> With using only live code your only real option is to encrypt the entire
>>> file either using built in encrypt/decrypt commands or shell out to
>>> something that can.
>>> 
>>> Kind regards,
>>> 
>>> Andrew
>>>> On Feb 20, 2015 1:53 PM, "JB"  wrote:
>>>> 
>>>> What is the proper way to add a password to
>>>> a MySQL lite database?
>>>> 
>>>> John Balgenorth
>>>> 
>>>> ___
>>>> use-livecode mailing list
>>>> use-livecode@lists.runrev.com
>>>> Please visit this url to subscribe, unsubscribe and manage your
>>>> subscription preferences:
>>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your 
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 


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


Re: Best way to get started in mobile (mainly iOS) development?

2015-02-26 Thread JB
Can you buy that directly from Colin?

What about Andre Garzia?  He was
writing a book, does it cover mobile
apps?

John Balgenorth



On Feb 25, 2015, at 8:12 PM, Roger Guay  wrote:

> Colin Holgate’s Book, LiveCode Mobile Development.
> 
> Roger
> 
> 
>> On Feb 25, 2015, at 8:35 PM, Geoff Canyon  wrote:
>> 
>> For those who have already made the trek, what's the best resource to get
>> from "I can happily build a desktop app" to "I can happily build a mobile
>> app"?
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: Best way to get started in mobile (mainly iOS) development?

2015-02-26 Thread JB
Road maps are good to have!  Does it
tell you any Kool stuff to do after you
get there?  How about extra code?


John Balgenorth


On Feb 26, 2015, at 8:42 AM, J. Landman Gay  wrote:

> On 2/25/2015 9:35 PM, Geoff Canyon wrote:
>> For those who have already made the trek, what's the best resource to get
>> from "I can happily build a desktop app" to "I can happily build a mobile
>> app"?
> 
> Same way you get to Carnegie Hall. I think Colin's book has a map.
> 
> -- 
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software   | http://www.hyperactivesw.com
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 


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


Re: Best way to get started in mobile (mainly iOS) development?

2015-02-26 Thread JB
Thanks for the info and links, Roger.

I think Andre was offering a pre-release price
for his book and was giving extra code.  Does
anyone have a link if it is still available?

John Balgenorth


On Feb 26, 2015, at 3:47 PM, Roger Guay  wrote:

> I’m sorry JB, I haven’t been keeping up with Colin and Monty’s stuff so I 
> don’t know. Here is the website for MobGUI
> 
>> http://mobgui.com/index.php <http://mobgui.com/index.php> 
> and I think Colin’s book is still available from PAKT publishing.
> 
> AFAIK, Andre has not published yet, but again I don’t know for sure.
> 
> Don’t forget to check out Scott Rossi’s magnificent stuff as well! and, do I 
> recall that Jacqueline also has some treasure to offer?
> 
> I’m sure others will chime in ???
> 
> Best,
> 
> Roger
> 
> 
> 
> 
>> On Feb 26, 2015, at 2:40 PM, JB  wrote:
>> 
>> Can you buy that directly from Colin?
>> 
>> What about Andre Garzia?  He was
>> writing a book, does it cover mobile
>> apps?
>> 
>> John Balgenorth
>> 
>> 
>> 
>> On Feb 25, 2015, at 8:12 PM, Roger Guay  wrote:
>> 
>>> Colin Holgate’s Book, LiveCode Mobile Development.
>>> 
>>> Roger
>>> 
>>> 
>>>> On Feb 25, 2015, at 8:35 PM, Geoff Canyon  wrote:
>>>> 
>>>> For those who have already made the trek, what's the best resource to get
>>>> from "I can happily build a desktop app" to "I can happily build a mobile
>>>> app"?
>>>> ___
>>>> use-livecode mailing list
>>>> use-livecode@lists.runrev.com
>>>> Please visit this url to subscribe, unsubscribe and manage your 
>>>> subscription preferences:
>>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>> 
>>> 
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your 
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 


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


App on different systems

2015-02-26 Thread JB
I am developing a desktop app for Mac that I plan
to sell on the Mac App store.

My question is if people using other systems are
able to use a Mac emulator to purchase apps at
the Mac App store?  Do the apps usually run with
out any problems on the emulators these days?

John Balgenorth

___
use-livecode mailing list
use-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: App on different systems

2015-02-26 Thread JB
Thanks for the info and link, Kay.

I was not aware of the Hackintosh
and have not kept up with recent
emulators for many years.

That solves my problem of trying
to code and sell the app to those
who do not own a Mac.  Apple will
love the extra money selling the app
to Hackintosh users.

John Balgenorth


On Feb 26, 2015, at 6:00 PM, Kay C Lan  wrote:

> On Fri, Feb 27, 2015 at 8:58 AM, JB  wrote:
> 
>> a Mac emulator
>> 
> 
> There's such a thing? Why? Surely there is no Mac software that there isn't
> a Windows equivalent.
> 
> The only Mac emulators that I am aware off are the ones to run old Classic
> MacOS apps on OS X.
> 
> Anyone else who 'needs' to run OS X on a Win/Linux intel machine creates a
> Hackintosh:
> 
> http://www.hackintosh.com/
> 
> which I understand runs pretty well unless the app needs to talk to
> peripheral devices: printers, scanners, cameras etc: - lots of driver
> problems.
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 


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


Re: App on different systems

2015-02-26 Thread JB
Maybe I will need to develop for other systems.
I haven’t heard of anything like the Mac App
store for other systems so the marketing will
not be as fast and easy as it will be for a Mac.
And with that in mind the coding will be done
after the Mac release.

John Balgenorth


On Feb 26, 2015, at 6:14 PM, Mike Bonner  wrote:

> I suspect the question is about a virtual machine, so not really a
> simulator.  My guess is that if the host machine is fast enough with enough
> memory, and the guest OS is solid, things will -probably- run fine. But
> everyone knows that theory and practice differ.
> 
> On Thu, Feb 26, 2015 at 7:00 PM, Kay C Lan  wrote:
> 
>> On Fri, Feb 27, 2015 at 8:58 AM, JB  wrote:
>> 
>>> a Mac emulator
>>> 
>> 
>> There's such a thing? Why? Surely there is no Mac software that there isn't
>> a Windows equivalent.
>> 
>> The only Mac emulators that I am aware off are the ones to run old Classic
>> MacOS apps on OS X.
>> 
>> Anyone else who 'needs' to run OS X on a Win/Linux intel machine creates a
>> Hackintosh:
>> 
>> http://www.hackintosh.com/
>> 
>> which I understand runs pretty well unless the app needs to talk to
>> peripheral devices: printers, scanners, cameras etc: - lots of driver
>> problems.
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 


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


Re: App on different systems

2015-02-26 Thread JB
It doesn’t sound too difficult to make the
app cross-platform.  The problem would
be the needed testing before a release
and that may involve owing the different
computers etc. to make sure the app is
running properly.  More time and money
and without a good place to market it.  I
can build my own website and get the
needed computers for testing and do
the cross-platform code later.

If Apple takes 30% then I will price it so
that cost is included.  If the app is good
enough people will still buy it.

John Balgenorth


On Feb 26, 2015, at 6:27 PM, Kay C Lan  wrote:

> On Fri, Feb 27, 2015 at 10:11 AM, JB  wrote:
> 
>> That solves my problem of trying
>> to code and sell the app to those
>> who do not own a Mac.
>> 
>> But isn't that why you code in LC, so it's easy to create crossplatform
> apps?
> 
> Actually, that's a stupid statement. I don't code in LC because I want to
> create cross platform apps, I code in LC because it's the well endowed
> grandchild of HyperCard and HyperTalk was the only programming language
> that my brain every really cottoned on to. HC was not cross platform and I
> never cared, I only really create stacks for myself. But the fact that LC
> is so talented and capable and can create apps for other platforms, and do
> so in the same simple language that my grey matter can fool others into
> thinking that I can 'program computers' it means that I have actually
> created the odd Win, Linux and iOS apps.
> 
> Whilst it isn't the 'one code' for all platform hype the glossy LC adverts
> extol, depending on how many non-Mac users become interested in your
> creation, the more that 30% take by Apple may seem better invested in your
> time to look at the needed platform specific code changes for you app. (As
> many of the answer could be found free from this List, it could be time
> well spent)
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 


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


Re: App on different systems

2015-02-26 Thread JB
Thanks Kee!

That info is nice to know.

John Balgenorth


On Feb 26, 2015, at 8:50 PM, kee nethery  wrote:

> I don’t own a Windows machine, I don’t test on a Windows machine, I do 
> however have an internal app that is used on Macs except for two Windows 
> users. I click the checkbox for build a Windows Standalone and the Windows 
> version works just fine for them.
> 
> Kee Nethery
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 


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


Re: App on different systems

2015-02-27 Thread JB
Thanks for the explanation, Richmond.

I was meaning whatever is able to rub
Mac OS on different systems.

John Balgenorth


On Feb 26, 2015, at 11:12 PM, Richmond  wrote:

> On 27/02/15 02:58, JB wrote:
>> I am developing a desktop app for Mac that I plan
>> to sell on the Mac App store.
>> 
>> My question is if people using other systems are
>> able to use a Mac emulator to purchase apps at
>> the Mac App store?  Do the apps usually run with
>> out any problems on the emulators these days?
>> 
>> John Balgenorth
>> 
>> 
> 
> I'm not entirely sure what you mean by an "emulator" . . .
> 
> VMware emulates the hardware of various systems; so Mac OS running on VMware
> IS Mac OS and NOT an emulated system; therefore verything runs as on a 
> physical machine.
> 
> An emulated operating system is where the OS, rather than the underlying 
> hardware is emulated;
> I am unaware of any emulator of Mac OS.
> 
> Perhaps the best way to understand this difference is to have a look at WINE 
> running Windows programs
> on a Linux system, and VMware running Windows 7 on a Linux system: one does a 
> 90% job (WINE), and
> the other is the whole thing.
> 
> Richmond.
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 


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


Re: App on different systems

2015-02-27 Thread JB
Thanks. Graham.

A number of years ago I was using a
copy of Parallels on Mac.  I have not
used the newer versions and did not
know if they were still in business.  It
is nice to know it is still around.  From
what you said it sounds like testing the
app on Parallels is as good as using a
PC.  So there is no need for me to get
the windows equipment and that is very
good to know.  Parallels will do the job.
After I release the Mac version I will get
started on testing for the PC.

John Balgenorth


On Feb 27, 2015, at 12:46 AM, Graham Samuel  wrote:

> You really can run fully legit versions of Windows on a Mac using a 
> commercial product like Parallels - even peripheral access is pretty robust. 
> So if your resources are limited and you want to develop desktop apps for Mac 
> and Windows, do the development on the Mac. If you’re thinking of developing 
> mobile apps for iOS, then the Mac is the only game in town. I can’t answer 
> for the other platforms, but my guess is the Mac is still a viable platform 
> for those. So iMHO you should forget about trying to run OSX on a PC, instead 
> you should be testing by running Windows on a Mac.
> 
> Since it’s what I do myself, I’m talking about developing using the Mac 
> versions of LiveCode and only switching to Windows under Parallels or 
> whatever for testing standalones, but if you really want to, you can of 
> course do your actual development using the Windows versions of LC in that 
> same environment since it is a real Windows environment.
> 
> Graham
> 
>> On 27 Feb 2015, at 03:39, JB  wrote:
>> 
>> It doesn’t sound too difficult to make the
>> app cross-platform.  The problem would
>> be the needed testing before a release
>> and that may involve owing the different
>> computers etc. to make sure the app is
>> running properly.  More time and money
>> and without a good place to market it.  I
>> can build my own website and get the
>> needed computers for testing and do
>> the cross-platform code later.
>> 
>> If Apple takes 30% then I will price it so
>> that cost is included.  If the app is good
>> enough people will still buy it.
>> 
>> John Balgenorth
>> 
>> 
>> On Feb 26, 2015, at 6:27 PM, Kay C Lan  wrote:
>> 
>>> On Fri, Feb 27, 2015 at 10:11 AM, JB  wrote:
>>> 
>>>> That solves my problem of trying
>>>> to code and sell the app to those
>>>> who do not own a Mac.
>>>> 
>>>> But isn't that why you code in LC, so it's easy to create crossplatform
>>> apps?
>>> 
>>> Actually, that's a stupid statement. I don't code in LC because I want to
>>> create cross platform apps, I code in LC because it's the well endowed
>>> grandchild of HyperCard and HyperTalk was the only programming language
>>> that my brain every really cottoned on to. HC was not cross platform and I
>>> never cared, I only really create stacks for myself. But the fact that LC
>>> is so talented and capable and can create apps for other platforms, and do
>>> so in the same simple language that my grey matter can fool others into
>>> thinking that I can 'program computers' it means that I have actually
>>> created the odd Win, Linux and iOS apps.
>>> 
>>> Whilst it isn't the 'one code' for all platform hype the glossy LC adverts
>>> extol, depending on how many non-Mac users become interested in your
>>> creation, the more that 30% take by Apple may seem better invested in your
>>> time to look at the needed platform specific code changes for you app. (As
>>> many of the answer could be found free from this List, it could be time
>>> well spent)
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your 
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>> 
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 


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


Re: App on different systems

2015-02-27 Thread JB
Thanks for the info, Mark.

I have always appreciated your advice going
many years back to the Hypercard days.  The
thing about this is I am using a Mac mini to do
the developing for a desktop app.

So, I was wondering if PC users buy OS X
software from the Mac App store and use it
on their PC somehow.  You answered that for
me.  That means I need to develop for the PC
after I release the Mac version.

John Balgenorth


On Feb 27, 2015, at 12:51 AM, Mark Schonewille 
 wrote:

> Hi John,
> 
> First of all, Mac OS X Server theoretically runs in Parallels or VirtualBox, 
> but it doesn't run nicely. It is unstable and many solutions and tutorials 
> you'll find on the internet lack important information, which makes it very 
> difficult to get it working.
> 
> OSX for regular desktop machines doesn't work on simulators, unless you apply 
> some kind of a hack. This is something I never got to work. I also think it 
> is illegal.
> 
> I don't think anyone will try to buy an app on the app store using Mac OS X 
> running in an emulator.
> 
> Most hackintoshes are very picky about the software they can run and OSX 
> crashes more often than on real Apples. Also, you may be unable to update 
> your system, because after updating it, OSX may not run anymore.
> 
> A hackintosh still costs money. I imagine that the cheapest hackintosh could 
> be just a little cheaper than the cheapest Mac Mini. You'd probably have more 
> value for your money if you bought that Mac Mini. Proboably, that's one 
> reason why Hackintoshes are extremely rare, besides that it is illegal to 
> sell them in the store.
> 
> --
> Best regards,
> 
> Mark Schonewille
> 
> Economy-x-Talk Consulting and Software Engineering
> Homepage: http://economy-x-talk.com
> Twitter: http://twitter.com/xtalkprogrammer
> KvK: 50277553
> 
> Installer Maker for LiveCode:
> http://qery.us/468
> 
> Buy my new book "Programming LiveCode for the Real Beginner" 
> http://qery.us/3fi
> 
> LiveCode on Facebook:
> https://www.facebook.com/groups/runrev/
> 
> On 2/27/2015 01:58, JB wrote:
>> I am developing a desktop app for Mac that I plan
>> to sell on the Mac App store.
>> 
>> My question is if people using other systems are
>> able to use a Mac emulator to purchase apps at
>> the Mac App store?  Do the apps usually run with
>> out any problems on the emulators these days?
>> 
>> John Balgenorth
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 


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


Re: App on different systems

2015-02-27 Thread JB
Thanks Graham,

I remember I did that with my other version
of Parallel which I got in a software bundle,
so it was free but the windows cost.

thanks again,
John Balgenorth


On Feb 27, 2015, at 3:55 AM, Graham Samuel  wrote:

> Maybe for completeness I should have said that you will have to pay for a 
> legitimate copy of Windows 8 or 7 or whatever - you can get OEM versions but 
> you still have to register with Microsoft to get them to work. Then you can 
> honestly say that your app works on whatever flavour of Windows you 
> purchased. So, you’ll have ended up paying for a modern version of Parallels 
> and for Windows. It is not beyond imagination that you could acquire a 
> Windows laptop for say twice as much… not what I’d do, but YMMV.
> 
> Graham
> 
>> On 27 Feb 2015, at 11:20, JB  wrote:
>> 
>> Thanks. Graham.
>> 
>> A number of years ago I was using a
>> copy of Parallels on Mac.  I have not
>> used the newer versions and did not
>> know if they were still in business.  It
>> is nice to know it is still around.  From
>> what you said it sounds like testing the
>> app on Parallels is as good as using a
>> PC.  So there is no need for me to get
>> the windows equipment and that is very
>> good to know.  Parallels will do the job.
>> After I release the Mac version I will get
>> started on testing for the PC.
>> 
>> John Balgenorth
>> 
>> 
>> On Feb 27, 2015, at 12:46 AM, Graham Samuel  wrote:
>> 
>>> You really can run fully legit versions of Windows on a Mac using a 
>>> commercial product like Parallels - even peripheral access is pretty 
>>> robust. So if your resources are limited and you want to develop desktop 
>>> apps for Mac and Windows, do the development on the Mac. If you’re thinking 
>>> of developing mobile apps for iOS, then the Mac is the only game in town. I 
>>> can’t answer for the other platforms, but my guess is the Mac is still a 
>>> viable platform for those. So iMHO you should forget about trying to run 
>>> OSX on a PC, instead you should be testing by running Windows on a Mac.
>>> 
>>> Since it’s what I do myself, I’m talking about developing using the Mac 
>>> versions of LiveCode and only switching to Windows under Parallels or 
>>> whatever for testing standalones, but if you really want to, you can of 
>>> course do your actual development using the Windows versions of LC in that 
>>> same environment since it is a real Windows environment.
>>> 
>>> Graham
>>> 
>>>> On 27 Feb 2015, at 03:39, JB  wrote:
>>>> 
>>>> It doesn’t sound too difficult to make the
>>>> app cross-platform.  The problem would
>>>> be the needed testing before a release
>>>> and that may involve owing the different
>>>> computers etc. to make sure the app is
>>>> running properly.  More time and money
>>>> and without a good place to market it.  I
>>>> can build my own website and get the
>>>> needed computers for testing and do
>>>> the cross-platform code later.
>>>> 
>>>> If Apple takes 30% then I will price it so
>>>> that cost is included.  If the app is good
>>>> enough people will still buy it.
>>>> 
>>>> John Balgenorth
>>>> 
>>>> 
>>>> On Feb 26, 2015, at 6:27 PM, Kay C Lan  wrote:
>>>> 
>>>>> On Fri, Feb 27, 2015 at 10:11 AM, JB  wrote:
>>>>> 
>>>>>> That solves my problem of trying
>>>>>> to code and sell the app to those
>>>>>> who do not own a Mac.
>>>>>> 
>>>>>> But isn't that why you code in LC, so it's easy to create crossplatform
>>>>> apps?
>>>>> 
>>>>> Actually, that's a stupid statement. I don't code in LC because I want to
>>>>> create cross platform apps, I code in LC because it's the well endowed
>>>>> grandchild of HyperCard and HyperTalk was the only programming language
>>>>> that my brain every really cottoned on to. HC was not cross platform and I
>>>>> never cared, I only really create stacks for myself. But the fact that LC
>>>>> is so talented and capable and can create apps for other platforms, and do
>>>>> so in the same simple language that my grey matter can fool others into
>>>>> thinking that I can 'program computers' it means that I have actually
>>>>> created the odd

Re: App on different systems

2015-02-27 Thread JB
Thanks for the info, Mike.

I will definitely be going with
Parallels.  This will make it
very easy to test for a PC.

John Balgenorth


On Feb 27, 2015, at 6:45 AM, Mike Bonner  wrote:

> If I recall correctly, you can install macos on more than one device
> (legally) as long.. as its on apple hardware. So, the parallels solution is
> cool if you want to have an "experimental" mac os to hack around in while
> on your mac. I think one of the features of parallels is its support for
> running macos.  Pretty sure virtualbox and vmware also can do this now.  It
> DOES get much more complicated, and less legal when trying to do it on a
> windows machine.   I'm glad others have said that running on a pc is
> finicky, it'll save me from trying to get it done. Luckily, my mini hasn't
> kicked its feet up in the air yet.
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 


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


Re: App on different systems

2015-02-27 Thread JB
Hi Richmond,

Can I test a Linux version on the Mac?

John Balgenorth


On Feb 27, 2015, at 10:22 AM, Richmond  wrote:

> On 27/02/15 13:55, Graham Samuel wrote:
>> Maybe for completeness I should have said that you will have to pay for a 
>> legitimate copy of Windows 8 or 7 or whatever - you can get OEM versions but 
>> you still have to register with Microsoft to get them to work. Then you can 
>> honestly say that your app works on whatever flavour of Windows you 
>> purchased. So, you’ll have ended up paying for a modern version of Parallels 
>> and for Windows. It is not beyond imagination that you could acquire a 
>> Windows laptop for say twice as much… not what I’d do, but YMMV.
>> 
>> Graham
>> 
>> 
> 
> I own a legal version of Windows 7 and one of Mac OS 10.8, and I run them 
> both in VMware with no obvious
> problems.
> 
> As VMware player is FREE and reliable, once one has paid for the operating 
> systems one's bank account
> can have a break.
> 
> I find that I tend to build standalones for each platform ON that platform . 
> . . havinbg got myself in "the soup" on
> or two times running off standalones on Linux for Win and Mac.
> 
> Oddly enough I have never had problems with standalones for Win XP run off on 
> Linux; but have fallen in the soup
> a couple of times with Win 7.
> 
> In fact, that is probably the only times I use either Windows or Mac OS 10.8 
> . . .
> 
> My Devawriter and so on are developed on Mac OS 10.5 on a G5 iMac, and 
> everything else
> on Linux.
> 
> Richmond.
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 


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


Re: App on different systems

2015-02-27 Thread JB
Thanks very much, Richmond.

Problems solved!  Thanks to
everyone who replied.

John Balgenorth


On Feb 27, 2015, at 12:07 PM, Richmond  wrote:

> On 27/02/15 21:44, JB wrote:
>> Hi Richmond,
>> 
>> Can I test a Linux version on the Mac?
>> 
>> John Balgenorth
>> 
>> 
>> 
> 
> This is a bit of a "pain in the b*m":
> 
> "There is no version of VMware Player for OS X. Neither the GNU/Linux version 
> nor the version from
> FreeBSD ports will work. Instead, VMware sells a Mac version of their product 
> called VMware Fusion <http://www.vmware.com/products/fusion/overview.html>."
> 
> I would recommend VirtualBox: https://www.virtualbox.org/wiki/Downloads
> 
> Then install Ubuntu or some other fairly popular version of Linux, and you 
> shouldn't have any obvious problems.
> 
> Richmond.
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 


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


Re: App on different systems

2015-02-27 Thread JB
Thank you so much, Jacque.

You have helped a lot over the
years and I really appreciate it.

John Balgenorth


On Feb 27, 2015, at 12:35 PM, J. Landman Gay  wrote:

>> On 27/02/15 21:44, JB wrote:
>> 
>> Can I test a Linux version on the Mac?
> 
> Parallels will run Linux. 
> -- 
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software   | http://www.hyperactivesw.com
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 


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


Re: App on different systems

2015-02-27 Thread JB
Thank you, Roger.

That is some good info to know.

John Balgenorth


On Feb 27, 2015, at 12:51 PM, Roger Eller  wrote:

> On Fri, Feb 27, 2015 at 3:35 PM, J. Landman Gay 
> wrote:
> 
>>> On 27/02/15 21:44, JB wrote:
>>> 
>>> Can I test a Linux version on the Mac?
>> 
>> 
> You can also install natively into a partition (like bootcamp) for free.
> 
> http://www.howtogeek.com/187410/how-to-install-and-dual-boot-linux-on-a-mac/
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 


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


Re: App on different systems

2015-02-27 Thread JB
Thanks Richard!

I always love and appreciate your
info.  It means a lot to me and that
will be the path I take..  

John Balgenorth


On Feb 27, 2015, at 1:23 PM, Richard Gaskin  wrote:

> Richmond wrote:
> 
> > I would recommend VirtualBox:
> > https://www.virtualbox.org/wiki/Downloads
> 
> +100
> 
> I used Parallels for many years and was happy with it, and for a long time 
> Mark Wieder kept telling me that if I only took a moment to try VirtualBox 
> I'd be even happier.
> 
> Finally I got around to it, and felt dumb for all the time I'd lost putting 
> it off. :)
> 
> VirtualBox has all the features I needed in Parallels, but restored sessions 
> MUCH faster.  Extra bonus points that it's also free and open and runs on 
> anything, so I can install it anywhere I need VMs easily.
> 
> -- 
> 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
> 


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


Sorting Columns

2015-03-03 Thread JB
I have a data grid and one of the columns
has numbers with commas included.  If I
use the property  inspector and select the
header column I can choose sort by text
or numeric.  Due to the commas neither
of the sort types gives me a correct sort.

Do I need to make another array and strip
the commas and then use that sort with
columns from the original array?  What is
the best way to sort numeric columns with
commas included in the numbers?

John Balgenort

___
use-livecode mailing list
use-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: Sorting Columns

2015-03-03 Thread JB
Thank you very much, Craig!

John Balgenorth


On Mar 3, 2015, at 6:18 AM, dunb...@aol.com wrote:

> An easy way is to extract the full dataset, perhaps with the "dgData". This 
> will give you a tab and return delimited list. Then you might sort by a 
> function:
> 
> 
> sort yourData numeric by goodNumber(item columnOfInterest of each)
> 
> 
> where:
> 
> 
> function goodNumber var
>  repeat for each char tChar in var
>if var is in "0123456789" then put tChar after temp
>  end repeat
>  return temp
> end goodNumber
> 
> 
> Craig Newman
> 
> 
> 
> -Original Message-
> From: JB 
> To: How to use LiveCode 
> Sent: Tue, Mar 3, 2015 6:33 am
> Subject: Sorting Columns
> 
> 
> I have a data grid and one of the columns
> has numbers with commas included.  If I
> use the property  inspector and select the
> header column I can choose sort by text
> or numeric.  Due to the commas neither
> of the sort types gives me a correct sort.
> 
> Do I need to make another array and strip
> the commas and then use that sort with
> columns from the original array?  What is
> the best way to sort numeric columns with
> commas included in the numbers?
> 
> John Balgenort
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 


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


Re: Sorting Columns

2015-03-03 Thread JB
Thanks for the info, Srl.

John Balgenorth


On Mar 3, 2015, at 11:30 AM, Sri  wrote:

> dunbarx wrote
>> An easy way is to extract the full dataset, perhaps with the "dgData".
>> This will give you a tab and return delimited list. 
> 
> 1. I think Craig meant dgText (dgData is an array).
> 
> 2. Don't forget to set itemDel to tab
> 
> Regards,
> Sri.
> 
> 
> 
> --
> View this message in context: 
> http://runtime-revolution.278305.n4.nabble.com/Sorting-Columns-tp4689614p4689631.html
> Sent from the Revolution - User mailing list archive at Nabble.com.
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 


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


Re: Sorting Columns

2015-03-03 Thread JB
Thank you, for the info and code.

John Balgenorth


On Mar 3, 2015, at 2:16 PM, Geoff Canyon  wrote:

> On Tue, Mar 3, 2015 at 8:18 AM,  wrote:
> 
>> function goodNumber var
>>  repeat for each char tChar in var
>>if var is in "0123456789" then put tChar after temp
>>  end repeat
>>  return temp
>> end goodNumber
>> 
> 
> It's worth checking, but this might be faster (but less robust):
> 
> function goodNumber var
>  replace comma with empty in var
>  return var
> end goodNumber
> 
> if that does work, then I'd replace it with a more general function:
> 
> function replaceF S,F,R
>  replace F with R in S
>  return S
> end replaceF
> 
> and then call it with
> 
> sort yourData numeric by replaceF(item columnOfInterest of each,comma,empty)
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 


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


Re: Sorting Columns

2015-03-03 Thread JB
Thanks Bob!

Any explanation is helpful since
I am fairly new to data grids.

The commas are thousands delimiters.

John Balgenorth


On Mar 3, 2015, at 4:13 PM, Bob Sneidar  wrote:

> dgData returns an array. dgText returns delimited text. if the commas are 
> thousand delimiters, then strip them. I’ve often thought of trying to 
> implement a “displayAs functionality for Datagrids, like Excel does, where 
> the value is one thing but the display is another. Your situation really 
> underscores the need for this.
> 
> Bob S
> 
> 
> On Mar 3, 2015, at 06:18 , dunb...@aol.com wrote:
> 
> An easy way is to extract the full dataset, perhaps with the "dgData". This 
> will give you a tab and return delimited list. Then you might sort by a 
> function:
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: Sorting Columns

2015-03-04 Thread JB
:-Håkan,

Thank you for the link, the code
and instructions.

It will help a lot!

And thank you again to everyone
who replied.  It all helps me very
much and I really appreciate it.

John Balgenorth


On Mar 4, 2015, at 2:56 AM, ha...@exformedia.se wrote:

> There is a lession on how to format your display here:
> 
> http://lessons.runrev.com/m/datagrid/l/7327-how-do-i-override-the-default-behavior-for-rendering-data-to-a-cell
> 
> In short you need to override the default behavior of the datagrid column:
> 
> 1. Create a new button and select it
> 2. Copy the default behavior script to your button via:
>set the script of the selectedobject to the script of button "Default 
> Column" of stack "revDataGridLibrary"
> 3. Tell the datagrid to use your behavior instead via:
>   set the dgProps["default column behavior"] of group "Your data grid" to the 
> long id of the selectedObject
> 4. Edit the script of your button
> 
> What you need look for is the fillInData function
> 
> Let say you want to display your big sales number as $ 1.000.000 (but still 
> have the value saved as 100) you can change fillInData to
> 
> on FillInData pData
>   set the text of me to formatNumber(pData, ",", ".", "$ ")
> end FillInData
> 
> Then you only need to add the formatNumber function...
> 
> function formatNumber pNum, pSeparator, pCommaSign, pPrefix, pPostfix
>   local tIsNegative, tRest, tCommaPos
>   if pNum < 0 then
>  put abs(pNum) into pNum
>  put true into tIsNegative
>   end if
>   put offset(pCommaSign, pNum) into tCommaPos
>   if tCommaPos > 0 then
>  put char tCommaPos to -1 of pNum into tRest
>   end if
>   put char 1 to tCommaPos -1 of pNum into pNum
>   repeat with i = length(pNum)-3 to 3 step -3
>  put pSeparator before char i+1 of pNum
>   end repeat
>   if tIsNegative then
>  return pPrefix & "-" &  pNum & tRest & pPostfix
>   else
>  return pPrefix & pNum & tRest & pPostfix
>   end if
> end formatNumber
> 
> Finally if you just want to target a specific column for your formatting you 
> can use the dgColumn property (or dgColumnNumber) to ensure you only format 
> specific columns
> 
> Let's say you have a column named "Value" that you would like to format but 
> no other columns you can change fillInData to:
> 
> on FillInData pData
>   put the dgColumn of me into tCol
>   if tCol is "Value" then
>  set the text of me to formatNumber(pData, " ", ".", "$ ")
>   else
>  set the text of me to pData
>   end if
> end FillInData
> 
> Happy Coding!
> 
> :-Håkan
> 
>> Bob Sneidar <mailto:bobsnei...@iotecdigital.com>
>> 4 mars 2015 01:13
>> dgData returns an array. dgText returns delimited text. if the commas are 
>> thousand delimiters, then strip them. I’ve often thought of trying to 
>> implement a “displayAs functionality for Datagrids, like Excel does, where 
>> the value is one thing but the display is another. Your situation really 
>> underscores the need for this.
>> 
>> Bob S
>> 
>> 
>> On Mar 3, 2015, at 06:18 , dunb...@aol.com<mailto:dunb...@aol.com> wrote:
>> 
>> An easy way is to extract the full dataset, perhaps with the "dgData". This 
>> will give you a tab and return delimited list. Then you might sort by a 
>> function:
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> dunb...@aol.com <mailto:dunb...@aol.com>
>> 3 mars 2015 15:18
>> An easy way is to extract the full dataset, perhaps with the "dgData". This 
>> will give you a tab and return delimited list. Then you might sort by a 
>> function:
>> 
>> 
>> sort yourData numeric by goodNumber(item columnOfInterest of each)
>> 
>> 
>> where:
>> 
>> 
>> function goodNumber var
>> repeat for each char tChar in var
>> if var is in "0123456789" then put tChar after temp
>> end repeat
>> return temp
>> end goodNumber
>> 
>> 
>> Craig Newman
>> 
>> 
>> 
>> -Original Message-
>> From: JB 
>> To: How to use LiveCode 
>> Sent: Tue, Mar 3, 2015 6:33 am
>> Subject: Sorting Columns
>> 
>> 
>> I have a da

DataGrid Checkboxes

2015-03-05 Thread JB
The lesson for working with dataGrid checkboxes
ask you to select Form.

Can you only add checkboxes to the Form and
not the table style of dataGrid?

John Balgenorth

___
use-livecode mailing list
use-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: DataGrid Checkboxes

2015-03-06 Thread JB
Thanks for the info and link, Dave.
It helps a lot.

John Balgenorth


On Mar 6, 2015, at 6:23 AM, Dave Kilroy  wrote:

> Hi John
> 
> Sure you can checkboxes in datagrid tables - but you have do a little more
> work to set them up - see
> http://lessons.runrev.com/m/datagrid/l/7311-how-do-i-customize-a-table-s-columns
> 
> Dave
> 
> 
> 
> -
> "The difference between genius and stupidity is; genius has its limits." - 
> Albert Einstein
> --
> View this message in context: 
> http://runtime-revolution.278305.n4.nabble.com/DataGrid-Checkboxes-tp4689727p4689739.html
> Sent from the Revolution - User mailing list archive at Nabble.com.
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 


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


Data Grid graphics & buttons

2015-03-07 Thread JB
Is there a way to set a graphic or button in
a data grid table column using a script?

So if I want line 12 of column name to be
a graphic can I change the behavior like
I can with Haken’s script that modifies the
number format and instead of displaying a
different value for the number display either
a graphic or button instead?

John Balgenorth







___
use-livecode mailing list
use-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: Data Grid graphics & buttons

2015-03-08 Thread JB
Thanks for the link, Mike!

John Balgenorth


On Mar 8, 2015, at 8:27 AM, Mike Bonner  wrote:

> Look here:
> http://lessons.runrev.com/m/datagrid/l/7311-how-do-i-customize-a-table-s-columns
> 
> 
> On Sat, Mar 7, 2015 at 10:54 PM, JB  wrote:
> 
>> Is there a way to set a graphic or button in
>> a data grid table column using a script?
>> 
>> So if I want line 12 of column name to be
>> a graphic can I change the behavior like
>> I can with Haken’s script that modifies the
>> number format and instead of displaying a
>> different value for the number display either
>> a graphic or button instead?
>> 
>> John Balgenorth
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: Data Grid graphics & buttons

2015-03-08 Thread JB
After going to the link I see that is the
same on Dave gave me.  I appreciate
both of you providing me the link and
it appears to be the only way to go.

My problem with the link is when it says
in this example he has added 3 controls
already.  Sometimes I can be really dumb
and not see what is right in front of me.  I
pulled the same controls on the template
I was editing which I chose twice to edit it
like it said but I could not get the controls
positioned in the Row Template Background
like it shows his are.  Mine were placed at
the bottom and I could not figure out how
to move them up.

Maybe I need to leant the Forms example
first.  Is that required to work on tables or
am I just doing something really stupid?

John Balgenorth


On Mar 8, 2015, at 8:39 PM, JB  wrote:

> Thanks for the link, Mike!
> 
> John Balgenorth
> 
> 
> On Mar 8, 2015, at 8:27 AM, Mike Bonner  wrote:
> 
>> Look here:
>> http://lessons.runrev.com/m/datagrid/l/7311-how-do-i-customize-a-table-s-columns
>> 
>> 
>> On Sat, Mar 7, 2015 at 10:54 PM, JB  wrote:
>> 
>>> Is there a way to set a graphic or button in
>>> a data grid table column using a script?
>>> 
>>> So if I want line 12 of column name to be
>>> a graphic can I change the behavior like
>>> I can with Haken’s script that modifies the
>>> number format and instead of displaying a
>>> different value for the number display either
>>> a graphic or button instead?
>>> 
>>> John Balgenorth
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 


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


Data Grid sort direction

2015-03-09 Thread JB
The lessons show the following script to sort a column,

set the dgProps["sort by column"] of group "DataGrid" to “Name"

This will select the Header column Name and place the sort arrow
in the ascending position.

Is there a way to select descending using a script?

John Balgenorth
___
use-livecode mailing list
use-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: Data Grid sort direction

2015-03-09 Thread JB
Thank you for the info and link, Terry!

I did not have the PDF.  Tha will solve
a lot of problems and make it easier.

John Balgenorth


On Mar 9, 2015, at 2:16 AM, Terence Heaford  wrote:

> And specifically.
> 
> dgColumnSortDirection [COLUMN]
> 
> - Get/set the direction of the sort for the column. Valid values are 
> 'ascending' or 'descending’.
> 
> All the best
> 
> Terry
> 
> 
> 
> 
> 
>> On 9 Mar 2015, at 08:32, JB  wrote:
>> 
>> Is there a way to select descending using a script?
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 


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


Re: Data Grid sort direction

2015-03-09 Thread JB
I just downloaded the PDF and read it.  The PDF
is excellent!  The info at the end answered many
questions and showed me ways to handle things
I wanted to do in differently using the dgProps &
setting them using a script.  I now see how to use
hidden columns, when to set persistent data as
false, how to set the sort direction and a whole
bunch more.  It opened a lot of doors.

Thank you again!

John Balgenorth


On Mar 9, 2015, at 2:26 AM, JB  wrote:

> Thank you for the info and link, Terry!
> 
> I did not have the PDF.  Tha will solve
> a lot of problems and make it easier.
> 
> John Balgenorth
> 
> 
> On Mar 9, 2015, at 2:16 AM, Terence Heaford  wrote:
> 
>> And specifically.
>> 
>> dgColumnSortDirection [COLUMN]
>> 
>> - Get/set the direction of the sort for the column. Valid values are 
>> 'ascending' or 'descending’.
>> 
>> All the best
>> 
>> Terry
>> 
>> 
>> 
>> 
>> 
>>> On 9 Mar 2015, at 08:32, JB  wrote:
>>> 
>>> Is there a way to select descending using a script?
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 


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


Re: Data Grid graphics & buttons

2015-03-09 Thread JB
Okay, I will do it.  Good luck
with the road trip helping out
your friend.  I know you won’t
see this until your done but I
thank you for taking the time to
respond even though you were
already busy.

John Balgenorth


On Mar 9, 2015, at 8:10 AM, Mike Bonner  wrote:

> I saw notice the same thing. In this case, the example actually means to do
> the same thing 3 times for 3 columns.  (I think)  So go through it once,
> add your button.  If you want an either/or situation, add your button and
> field (or whatever 2 controls you want to choose from) then use the
> behavior script to show/hide based on whatever criteria you need.
> 
> Basically, its a) create your columns, then create a custom column template
> for whatever column, edit the template to have the controls you want (if I
> can find it, I think there is an example of setting up a checkbox in a
> column somewhere)  then edit the behavior script as needed to provide your
> functionality.   Do the same for each column you need to customize.
> 
> Headed out for a road trip to help a friend. Good luck!
> 
> On Mon, Mar 9, 2015 at 12:06 AM, JB  wrote:
> 
>> After going to the link I see that is the
>> same on Dave gave me.  I appreciate
>> both of you providing me the link and
>> it appears to be the only way to go.
>> 
>> My problem with the link is when it says
>> in this example he has added 3 controls
>> already.  Sometimes I can be really dumb
>> and not see what is right in front of me.  I
>> pulled the same controls on the template
>> I was editing which I chose twice to edit it
>> like it said but I could not get the controls
>> positioned in the Row Template Background
>> like it shows his are.  Mine were placed at
>> the bottom and I could not figure out how
>> to move them up.
>> 
>> Maybe I need to leant the Forms example
>> first.  Is that required to work on tables or
>> am I just doing something really stupid?
>> 
>> John Balgenorth
>> 
>> 
>> On Mar 8, 2015, at 8:39 PM, JB  wrote:
>> 
>>> Thanks for the link, Mike!
>>> 
>>> John Balgenorth
>>> 
>>> 
>>> On Mar 8, 2015, at 8:27 AM, Mike Bonner  wrote:
>>> 
>>>> Look here:
>>>> 
>> http://lessons.runrev.com/m/datagrid/l/7311-how-do-i-customize-a-table-s-columns
>>>> 
>>>> 
>>>> On Sat, Mar 7, 2015 at 10:54 PM, JB  wrote:
>>>> 
>>>>> Is there a way to set a graphic or button in
>>>>> a data grid table column using a script?
>>>>> 
>>>>> So if I want line 12 of column name to be
>>>>> a graphic can I change the behavior like
>>>>> I can with Haken’s script that modifies the
>>>>> number format and instead of displaying a
>>>>> different value for the number display either
>>>>> a graphic or button instead?
>>>>> 
>>>>> John Balgenorth
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> ___
>>>>> use-livecode mailing list
>>>>> use-livecode@lists.runrev.com
>>>>> Please visit this url to subscribe, unsubscribe and manage your
>>>>> subscription preferences:
>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>>>> 
>>>> ___
>>>> use-livecode mailing list
>>>> use-livecode@lists.runrev.com
>>>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>> 
>>> 
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>> 
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-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: Data Grid graphics & buttons

2015-03-09 Thread JB
Thanks Mike!

I will study it later tonight.  I am sure it
will help me and I appreciate it a lot.

John Balgenorth


On Mar 9, 2015, at 2:56 PM, Mike Bonner  wrote:

> Found the checkbox example I was looking for, but it uses the datagrid
> helper to get the job done. I've never used DGH, but after looking at some
> of the examples, it looks to be very helpful.
> 
> Here is a link to lessons re: the datagrid that use the DGH.
> http://lessons.runrev.com/s/lessons/tags?tag=Data+Grid+Helper
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 


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


Re: Toggling a Single Radio Button

2015-03-10 Thread JB
Good point, Mark.  So I just
changed some buttons I had
that were checkboxes to radio
and vice versa.

Every little thing helps to make
a professional product.

John Balgenorth


On Mar 9, 2015, at 5:29 PM, Mark Wieder  wrote:

> Ray-
> 
> Monday, March 9, 2015, 11:58:42 AM, you wrote:
> 
>> Does anybody know how to toggle a single radio button so it behaves like
>> a check box?  That is, if it's highlighted when you click it the button
>> becomes dehighlighted and vice versa?
> 
> I see you got your answer already.
> But I have to ask:
> Why not just use a checkbox? Users expect a radiobutton to act like a
> radiobutton in a group, and expect a checkbox to act like a checkbox.
> Why confuse them?
> 
> -- 
> -Mark Wieder
> ahsoftw...@gmail.com
> 
> This communication may be unlawfully collected and stored by the National 
> Security Agency (NSA) in secret. The parties to this email do not 
> consent to the retrieving or storing of this communication and any 
> related metadata, as well as printing, copying, re-transmitting, 
> disseminating, or otherwise using it. If you believe you have received 
> this communication in error, please delete it immediately.
> 
> 
> ___
> use-livecode mailing list
> use-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


SQL lite adding records

2015-03-24 Thread JB
I am using MySql on a local host and
creating a database then adding records.
After creating the table I was using the
handler below to add records.  I was not
using the revCommitDatabase gConID
statement after each record and some
times my database would be missing
one or two records.  After including the
revCommitDatabase gConID statement
it appears to be including them all.  Is
this the proper and fastest way to add
records in a sql lite database or should
I be using something else like a query
to update instead?

on fAddFiles
   set the itemDelimiter to tab
   put fld id 5246 of cd id 5187 into tList
   repeat for each line tLine in tList
  put "INSERT INTO tFiles(recID,field2, field3, field4) VALUES(null," & 
tLine & ")" into sqTable
  revExecuteSQL gConID,sqTable
  revCommitDatabase gConID
   end repeat
   fRefresh
   gConIDClose
end fAddFiles

Any information or ideas are helpful.

John Balgenorth
___
use-livecode mailing list
use-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: SQL lite adding records

2015-03-24 Thread JB
Hi Peter,

Thank you so much for the detailed info!

Each value has single quotes now but it
would be nice to do it without quotes as
adding them takes more time.

I will definitely use th BEGIN statement
and thank you for explaining it.  I tried to
use revCommitDatabase after the repeat
without the BEGIN and it was missing a
file.  Your way will be a lot better and I
will include the error checking too.

I really do not know that much about using
a database so if things look weird it is due
to me not knowing what I am doing.

I tried to go to your site and look at the stack
you have for sql database administration but
I got a 404 error.  Does it include code to sort
and find with SQL?  If so I am interested.

Thanks again!

John Balgenorth


On Mar 24, 2015, at 6:52 PM, Peter Haworth  wrote:

> Hi John,
> A few ideas for you.
> 
> You should issue a BEGIN statement right before your repeat statement and
> move your revCommitDatabase to right after the end repeat.  Better
> performance and guarantees db integrity.
> 
> For some reason I don't understand, LC does not have a revxxx statement to
> issue a BEGIN so you will need to use revExecuteSQL gConID,"BEGIN" right
> before the repeat statement.
> 
> Within the repeat, don't forget to check if revExecuteSQL resulted in any
> errors by checking "the result" right after it - it will be a numeric value
> if all worked OK, otherwise an error message.  If an error occurs, issue a
> revRollBackDatabase command and exit the repeat.  That will return your
> database to a consistent state before any of your INSERTs happened.
> 
> I'm a little confused by your INSERT statement.  You name 4 columns in the
> table but only supply 2 values, maybe tLine has comma separated values in
> it? If so, you will need to enclose each value in single quotes if they are
> not numeric.
> 
> Also, if recID is the primary key, no need to include it in the list of
> columns to be updated or supply a value for it, SQL will take care of that
> for you.
> 
> Hope that helps,
> 
> On Tue, Mar 24, 2015 at 5:04 PM JB  wrote:
> 
>> I am using MySql on a local host and
>> creating a database then adding records.
>> After creating the table I was using the
>> handler below to add records.  I was not
>> using the revCommitDatabase gConID
>> statement after each record and some
>> times my database would be missing
>> one or two records.  After including the
>> revCommitDatabase gConID statement
>> it appears to be including them all.  Is
>> this the proper and fastest way to add
>> records in a sql lite database or should
>> I be using something else like a query
>> to update instead?
>> 
>> on fAddFiles
>>   set the itemDelimiter to tab
>>   put fld id 5246 of cd id 5187 into tList
>>   repeat for each line tLine in tList
>>  put "INSERT INTO tFiles(recID,field2, field3, field4) VALUES(null,"
>> & tLine & ")" into sqTable
>>  revExecuteSQL gConID,sqTable
>>  revCommitDatabase gConID
>>   end repeat
>>   fRefresh
>>   gConIDClose
>> end fAddFiles
>> 
>> Any information or ideas are helpful.
>> 
>> John Balgenorth
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 


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


Re: SQL lite adding records

2015-03-24 Thread JB
I should mention when I said sort and find I
mean in a single table.  I did the Sample
database and can do the inner and outer
joins.  I also have Valentina and can do
just about everything they offer including
sort and find but I want to use SQL also.

John Balgenorth

On Mar 24, 2015, at 7:11 PM, JB  wrote:

> Hi Peter,
> 
> Thank you so much for the detailed info!
> 
> Each value has single quotes now but it
> would be nice to do it without quotes as
> adding them takes more time.
> 
> I will definitely use th BEGIN statement
> and thank you for explaining it.  I tried to
> use revCommitDatabase after the repeat
> without the BEGIN and it was missing a
> file.  Your way will be a lot better and I
> will include the error checking too.
> 
> I really do not know that much about using
> a database so if things look weird it is due
> to me not knowing what I am doing.
> 
> I tried to go to your site and look at the stack
> you have for sql database administration but
> I got a 404 error.  Does it include code to sort
> and find with SQL?  If so I am interested.
> 
> Thanks again!
> 
> John Balgenorth
> 
> 
> On Mar 24, 2015, at 6:52 PM, Peter Haworth  wrote:
> 
>> Hi John,
>> A few ideas for you.
>> 
>> You should issue a BEGIN statement right before your repeat statement and
>> move your revCommitDatabase to right after the end repeat.  Better
>> performance and guarantees db integrity.
>> 
>> For some reason I don't understand, LC does not have a revxxx statement to
>> issue a BEGIN so you will need to use revExecuteSQL gConID,"BEGIN" right
>> before the repeat statement.
>> 
>> Within the repeat, don't forget to check if revExecuteSQL resulted in any
>> errors by checking "the result" right after it - it will be a numeric value
>> if all worked OK, otherwise an error message.  If an error occurs, issue a
>> revRollBackDatabase command and exit the repeat.  That will return your
>> database to a consistent state before any of your INSERTs happened.
>> 
>> I'm a little confused by your INSERT statement.  You name 4 columns in the
>> table but only supply 2 values, maybe tLine has comma separated values in
>> it? If so, you will need to enclose each value in single quotes if they are
>> not numeric.
>> 
>> Also, if recID is the primary key, no need to include it in the list of
>> columns to be updated or supply a value for it, SQL will take care of that
>> for you.
>> 
>> Hope that helps,
>> 
>> On Tue, Mar 24, 2015 at 5:04 PM JB  wrote:
>> 
>>> I am using MySql on a local host and
>>> creating a database then adding records.
>>> After creating the table I was using the
>>> handler below to add records.  I was not
>>> using the revCommitDatabase gConID
>>> statement after each record and some
>>> times my database would be missing
>>> one or two records.  After including the
>>> revCommitDatabase gConID statement
>>> it appears to be including them all.  Is
>>> this the proper and fastest way to add
>>> records in a sql lite database or should
>>> I be using something else like a query
>>> to update instead?
>>> 
>>> on fAddFiles
>>>  set the itemDelimiter to tab
>>>  put fld id 5246 of cd id 5187 into tList
>>>  repeat for each line tLine in tList
>>> put "INSERT INTO tFiles(recID,field2, field3, field4) VALUES(null,"
>>> & tLine & ")" into sqTable
>>> revExecuteSQL gConID,sqTable
>>> revCommitDatabase gConID
>>>  end repeat
>>>  fRefresh
>>>  gConIDClose
>>> end fAddFiles
>>> 
>>> Any information or ideas are helpful.
>>> 
>>> John Balgenorth
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 


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


Re: SQL lite adding records

2015-03-24 Thread JB
Thank you, Dr. Hawkins!

I have not heard of BEGIN TRANSACTION
but I will give it a try.

John Balgenorth


John
On Mar 24, 2015, at 8:13 PM, Dr. Hawkins  wrote:

> On Tue, Mar 24, 2015 at 6:52 PM, Peter Haworth  wrote:
> 
>> You should issue a BEGIN statement right before your repeat statement and
>> move your revCommitDatabase to right after the end repeat.  Better
>> performance and guarantees db integrity.
>> 
> 
> Also, you can build a large statement for a single transactoin
> 
> put "BEGIN TRANSACTION;" & cr into dcmd
> 
> repeat in some way or another
> put "SOME COMMAND;" & cr after dcmd
> end repeat
> 
> put "END TRANSACTION;" & cr after dcmd
> 
> revExecuteSQL
> 
> 
> -- 
> Dr. Richard E. Hawkins, Esq.
> (702) 508-8462
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 


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


Re: SQL lite adding records

2015-03-24 Thread JB
It is a disk stored db, and I will be adding a lot of
records at one time every so often.  Speeding it
up will be great!

thanks again,
John Balgenorth


On Mar 24, 2015, at 8:30 PM, Dr. Hawkins  wrote:

> On Tue, Mar 24, 2015 at 8:19 PM, JB  wrote:
> 
>> I have not heard of BEGIN TRANSACTION
>> but I will give it a try.
>> 
> 
> At least assuming a disk stored db, it is likely also faster.
> 
> In my case, I pull several hundred records from a remote postgres db, and
> stash them into a memory sqlite db.
> 
> My enemy isn't local performance, but lag on each transaction; combining
> tehm makes my application possible.
> 
> 
> -- 
> Dr. Richard E. Hawkins, Esq.
> (702) 508-8462
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 


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


Re: SQL lite adding records

2015-03-25 Thread JB
Thanks for the reply and infer. Bob!

Your info always helps a lot.

John Balgenorth

On Mar 25, 2015, at 9:53 AM, Bob Sneidar  wrote:

> Just to be clear, using BEGIN and COMMIT is called transactional. It’s 
> purpose is to be able to ROLLBACK if any errors occurred. This not only 
> includes SQL errors (which should not be happening if you control the SQL and 
> data), but internal errors, like for instance you insert an invoice then go 
> to update the running totals in a customer record, but find someone else has 
> the customer record locked, so you need to roll back any inserts/updates 
> you’ve done and alert the user. 
> 
> For simple SQL Inserts/Updates where errors are highly unlikely and you are 
> not using SQL in a multiuser setting, it isn’t strictly necessary IMHO. There 
> is one other benefit and that is speed. From what I gather from the 
> discussions here, transactional processing gains some performance for a large 
> number of sequential transactions, because the SQL engine does not have to 
> actually do the real work of inserting/updating/indexing until you tell it to 
> COMMIT, during which you client app goes on it’s merry way. 
> 
> Others more knowledgable than me will correct me on any points I may have 
> wrong. 
> 
> Bob S
> 
> 
>> On Mar 24, 2015, at 19:11 , JB  wrote:
>> 
>> Hi Peter,
>> 
>> Thank you so much for the detailed info!
>> 
>> Each value has single quotes now but it
>> would be nice to do it without quotes as
>> adding them takes more time.
>> 
>> I will definitely use th BEGIN statement
>> and thank you for explaining it.  I tried to
>> use revCommitDatabase after the repeat
>> without the BEGIN and it was missing a
>> file.  Your way will be a lot better and I
>> will include the error checking too.
>> 
>> I really do not know that much about using
>> a database so if things look weird it is due
>> to me not knowing what I am doing.
>> 
>> I tried to go to your site and look at the stack
>> you have for sql database administration but
>> I got a 404 error.  Does it include code to sort
>> and find with SQL?  If so I am interested.
>> 
>> Thanks again!
>> 
>> John Balgenorth
>> 
>> 
>> On Mar 24, 2015, at 6:52 PM, Peter Haworth  wrote:
>> 
>>> Hi John,
>>> A few ideas for you.
>>> 
>>> You should issue a BEGIN statement right before your repeat statement and
>>> move your revCommitDatabase to right after the end repeat.  Better
>>> performance and guarantees db integrity.
>>> 
>>> For some reason I don't understand, LC does not have a revxxx statement to
>>> issue a BEGIN so you will need to use revExecuteSQL gConID,"BEGIN" right
>>> before the repeat statement.
>>> 
>>> Within the repeat, don't forget to check if revExecuteSQL resulted in any
>>> errors by checking "the result" right after it - it will be a numeric value
>>> if all worked OK, otherwise an error message.  If an error occurs, issue a
>>> revRollBackDatabase command and exit the repeat.  That will return your
>>> database to a consistent state before any of your INSERTs happened.
>>> 
>>> I'm a little confused by your INSERT statement.  You name 4 columns in the
>>> table but only supply 2 values, maybe tLine has comma separated values in
>>> it? If so, you will need to enclose each value in single quotes if they are
>>> not numeric.
>>> 
>>> Also, if recID is the primary key, no need to include it in the list of
>>> columns to be updated or supply a value for it, SQL will take care of that
>>> for you.
>>> 
>>> Hope that helps,
>>> 
>>> On Tue, Mar 24, 2015 at 5:04 PM JB  wrote:
>>> 
>>>> I am using MySql on a local host and
>>>> creating a database then adding records.
>>>> After creating the table I was using the
>>>> handler below to add records.  I was not
>>>> using the revCommitDatabase gConID
>>>> statement after each record and some
>>>> times my database would be missing
>>>> one or two records.  After including the
>>>> revCommitDatabase gConID statement
>>>> it appears to be including them all.  Is
>>>> this the proper and fastest way to add
>>>> records in a sql lite database or should
>>>> I be using something else like a query
>>>> to update instead?
>>>> 
>>>> on fAddFiles
>>>> set the itemDelimiter to tab
>>

  1   2   3   4   5   6   7   >