Re: Rename File on Server not working?

2017-05-08 Thread Richard Gaskin via use-livecode

Rick Harrison wrote:

> Hi Richard,
>
> The result says:
>
> can't rename file (20)
>
> I see that you are using a “move file” in your example.
> The dictionary doesn’t show an example for moving a file.
>
> I tried the following example to see what would happen:
>
> move file OldImagePathAndFileName to tFileName
>   if the result is not empty then
>put the result && "(" & sysError() &")"
>  end if
>
> I’m getting:   move: missing ‘to'
>
> This seems rather bizarre to me.
>
> Your thoughts?

My bad: I was thinking of bash; in LC the "move" command is for moving 
controls but not file objects.  To move files we use "rename".


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

Re: Rename File on Server not working?

2017-05-08 Thread Rick Harrison via use-livecode
Hi Richard,

The result says:

can't rename file (20)

I see that you are using a “move file” in your example.
The dictionary doesn’t show an example for moving a file.

I tried the following example to see what would happen:

move file OldImagePathAndFileName to tFileName
  if the result is not empty then
put the result && "(" & sysError() &")"
 end if

I’m getting:   move: missing ‘to'

This seems rather bizarre to me.

Your thoughts?

Rick




> On May 8, 2017, at 7:29 PM, Richard Gaskin via use-livecode 
>  wrote:
> 
> Rick Harrison wrote:
>> I was trying to use rename file
>> on the Server in a .lc script
>> to rename a file.  It doesn’t
>> seem to work at all.  Can
>> someone please let me know
>> if it works on an LC Server?
> 
> It should.  Try checking the result immediately after, and if not empty call 
> sysError() for the OS error number, e.g.:
> 
>  move file tSrcPath to tDestPath
>  if the result is not empty then
> put the result && "(" & sysError() &")"
>  end if
> 
> -- 
> 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: Rename File on Server not working?

2017-05-08 Thread Richard Gaskin via use-livecode

Rick Harrison wrote:

I was trying to use rename file
on the Server in a .lc script
to rename a file.  It doesn’t
seem to work at all.  Can
someone please let me know
if it works on an LC Server?


It should.  Try checking the result immediately after, and if not empty 
call sysError() for the OS error number, e.g.:


  move file tSrcPath to tDestPath
  if the result is not empty then
 put the result && "(" & sysError() &")"
  end if

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

Rename File on Server not working?

2017-05-08 Thread Rick Harrison via use-livecode
Hi there,

I was trying to use rename file
on the Server in a .lc script
to rename a file.  It doesn’t
seem to work at all.  Can
someone please let me know
if it works on an LC Server?

Thanks,

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

Database Setup

2017-05-08 Thread Bob Sneidar via use-livecode
Sooo... having shared my Database Setup card with another user, which is an 
sqlYoga wrapper if you will for connecting to mySQL and sqLite databases, I'm 
thinking about posting this in some fashion so that others can have a look, 
refine it, skin it etc. Is there such a thing for end user stuff on GitHub, or 
do I need to create my own git repository?

Bob S



___
use-livecode mailing list
use-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: Unable to set breakpoint

2017-05-08 Thread J. Landman Gay via use-livecode

Okay, restoring prefs from yesterday worked. Major panic averted.

But there is something very wrong with a clean startup.

On 5/8/17 4:13 PM, J. Landman Gay via use-livecode wrote:

Panos, I need to get this running. I've tried launching dp5 with the
same results. If I restore my old prefs, I can't set breakpoints but I
do get the IDE to load. If I let LC make new prefs, I get no IDE at all
and my only option is to quit.

On 5/8/17 3:55 PM, panagiotis merakos via use-livecode wrote:

Have you tried deleting your Prefs?

On Mon, May 8, 2017 at 9:49 PM, J. Landman Gay via use-livecode <
use-livecode@lists.runrev.com> wrote:


Suddenly I have lost the ability to set breakpoints. Red-dot breakpoints
are dimmed as though the script has not been compiled (it has, several
times.) Hard-coded "breakpoint" commands to not trigger either. I am not
able to debug.

Things were going along well until I allowed remote debugging. That
worked
for a while, then I got several crashes in a row, and now I can't set
breakpoints.

I have retarted LC several times, reloaded the stack, etc. LC 9 dp 6.

I need a quick solution. Real quick.

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







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

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


Re: Unable to set breakpoint

2017-05-08 Thread J. Landman Gay via use-livecode
Panos, I need to get this running. I've tried launching dp5 with the 
same results. If I restore my old prefs, I can't set breakpoints but I 
do get the IDE to load. If I let LC make new prefs, I get no IDE at all 
and my only option is to quit.


On 5/8/17 3:55 PM, panagiotis merakos via use-livecode wrote:

Have you tried deleting your Prefs?

On Mon, May 8, 2017 at 9:49 PM, J. Landman Gay via use-livecode <
use-livecode@lists.runrev.com> wrote:


Suddenly I have lost the ability to set breakpoints. Red-dot breakpoints
are dimmed as though the script has not been compiled (it has, several
times.) Hard-coded "breakpoint" commands to not trigger either. I am not
able to debug.

Things were going along well until I allowed remote debugging. That worked
for a while, then I got several crashes in a row, and now I can't set
breakpoints.

I have retarted LC several times, reloaded the stack, etc. LC 9 dp 6.

I need a quick solution. Real quick.

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




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


interface guide for C

2017-05-08 Thread JB via use-livecode
Does anyone have a copy of the
interface guide for C that was made
years ago for metacard or any other
info that allows you to access c in
any way at all?

thanks,
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: Unable to set breakpoint

2017-05-08 Thread J. Landman Gay via use-livecode
Restarted again and LC proceeded to the welcome screen. I clicked "open 
existing project" and my stack loaded. There are no menus, no tool 
palette, basically the IDE didn't load.


On 5/8/17 4:03 PM, J. Landman Gay via use-livecode wrote:

Thanks, I hadn't thought of that. I tried. LC now freezes with the logo
window displayed and a small blank stack at the top left of the monitor
(looks like a livecodescript trying to open.) So, can't launch now.


On 5/8/17 3:55 PM, panagiotis merakos via use-livecode wrote:

Have you tried deleting your Prefs?

On Mon, May 8, 2017 at 9:49 PM, J. Landman Gay via use-livecode <
use-livecode@lists.runrev.com> wrote:


Suddenly I have lost the ability to set breakpoints. Red-dot breakpoints
are dimmed as though the script has not been compiled (it has, several
times.) Hard-coded "breakpoint" commands to not trigger either. I am not
able to debug.

Things were going along well until I allowed remote debugging. That
worked
for a while, then I got several crashes in a row, and now I can't set
breakpoints.

I have retarted LC several times, reloaded the stack, etc. LC 9 dp 6.

I need a quick solution. Real quick.

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







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

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


Re: Unable to set breakpoint

2017-05-08 Thread J. Landman Gay via use-livecode
Thanks, I hadn't thought of that. I tried. LC now freezes with the logo 
window displayed and a small blank stack at the top left of the monitor 
(looks like a livecodescript trying to open.) So, can't launch now.



On 5/8/17 3:55 PM, panagiotis merakos via use-livecode wrote:

Have you tried deleting your Prefs?

On Mon, May 8, 2017 at 9:49 PM, J. Landman Gay via use-livecode <
use-livecode@lists.runrev.com> wrote:


Suddenly I have lost the ability to set breakpoints. Red-dot breakpoints
are dimmed as though the script has not been compiled (it has, several
times.) Hard-coded "breakpoint" commands to not trigger either. I am not
able to debug.

Things were going along well until I allowed remote debugging. That worked
for a while, then I got several crashes in a row, and now I can't set
breakpoints.

I have retarted LC several times, reloaded the stack, etc. LC 9 dp 6.

I need a quick solution. Real quick.

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




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

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


Re: Unable to set breakpoint

2017-05-08 Thread panagiotis merakos via use-livecode
Have you tried deleting your Prefs?

On Mon, May 8, 2017 at 9:49 PM, J. Landman Gay via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Suddenly I have lost the ability to set breakpoints. Red-dot breakpoints
> are dimmed as though the script has not been compiled (it has, several
> times.) Hard-coded "breakpoint" commands to not trigger either. I am not
> able to debug.
>
> Things were going along well until I allowed remote debugging. That worked
> for a while, then I got several crashes in a row, and now I can't set
> breakpoints.
>
> I have retarted LC several times, reloaded the stack, etc. LC 9 dp 6.
>
> I need a quick solution. Real quick.
>
> --
> 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


Unable to set breakpoint

2017-05-08 Thread J. Landman Gay via use-livecode
Suddenly I have lost the ability to set breakpoints. Red-dot breakpoints 
are dimmed as though the script has not been compiled (it has, several 
times.) Hard-coded "breakpoint" commands to not trigger either. I am not 
able to debug.


Things were going along well until I allowed remote debugging. That 
worked for a while, then I got several crashes in a row, and now I can't 
set breakpoints.


I have retarted LC several times, reloaded the stack, etc. LC 9 dp 6.

I need a quick solution. Real quick.

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

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


Re: Shell argv

2017-05-08 Thread JB via use-livecode
I got it working with Glen’s code
but I needed to compile my code
from the terminal with gcc instead
of compiling it in Xcode.

I really appreciate your help and every-
ones help who replied.  It is all useful
information.

Thank you!
JB


> On May 8, 2017, at 1:32 PM, Mike Bonner via use-livecode 
>  wrote:
> 
> If you are in terminal, and in the folder where your executable is, and you
> type
> 
> /yourexecutablename arg1 arg2
> does it do what you expect? (note the preceding dot . which means to start
> at the working directory)
> 
> If the file is set to executable by you, it should work.  If you type the
> command without the preceding dot slash ./ and if its not in the path, it
> won't work, so you DO need to be explicit as to where it is. (hence the ./
> it defines exactly where to find the file so being in the set PATH isn't
> necessary)
> 
> If it DOES work that way from the command line, then in your script you can
> a) set the folder to the location of the file, and then b) do a
> shell("./theExe arg1 arg2") and it should work.  Or for a) you can give a
> full path specification to the location of the file.
> 
> On Mon, May 8, 2017 at 12:54 PM, JB via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> Hi Mike,
>> 
>> Thank you for the info.
>> 
>> The dictionary for Shell states it needs to work
>> from the Terminal to work correctly with Shell so
>> I have been doing everything from the Terminal at
>> this point.  I was trying to figure out how to write
>> it properly in the Terminal so I could use similar
>> code with the Shell.
>> 
>> JB
>> 
>> 
>>> On May 8, 2017, at 11:45 AM, Mike Bonner via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>>> 
>>> Seems to me, if its the compiled version, you shouldn't need to use
>> "open"
>>> at all.
>>> 
>>> a simple
>>> get shell("path/to/executable argument1 argument2")
>>> If I understand what I read about "open" enough, it expects a file, that
>>> will be opened in another app, like in Marks example.  (whatever.c opens
>>> xcode)
>>> 
>>> If you want to experiment with open, you could try the following..
>>> 
>>> open -a /path/to/your/app /path/to/a/dummy/file/to/open --args arg1 arg2
>>> 
>>> I'm guessing that if you can format this right, it'll report the name of
>>> the dummy file, and arg1 and arg2 as you expect.
>>> 
>>> But since you just want to pass arguments to your compiled program, I am
>>> pretty sure you just need to use shell() and call it directly with the
>>> arguments as part of the call.
>>> 
>>> 
>>> On Mon, May 8, 2017 at 12:05 PM, JB via use-livecode <
>>> use-livecode@lists.runrev.com> wrote:
>>> 
 That is a typo.
 
 In fact I tried every way and every
 place within the open script and if
 it is written different the code is not
 executed and I get and error.
 
 JB
 
 
> On May 8, 2017, at 10:57 AM, Mark Wieder via use-livecode <
 use-livecode@lists.runrev.com> wrote:
> 
> On 05/08/2017 10:36 AM, JB via use-livecode wrote:
> 
>> The file executes properly and the message is printed
>> showing I did not enter any arguments even though I
>> did try to and then it prints the file name and path like
>> I told it to from argv[0].
>> 
>> JB
> 
> In your original post you said "-args". The correct syntax is "--args"
 (with two dashes rather than one), so if that's not a typo in your
>> original
 email, try correcting that and see what happens.
> 
> --
> Mark Wieder
> ahsoftw...@gmail.com
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
 subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
 
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
 
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>> 
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-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: Shell argv

2017-05-08 Thread Mike Bonner via use-livecode
If you are in terminal, and in the folder where your executable is, and you
type

./yourexecutablename arg1 arg2
does it do what you expect? (note the preceding dot . which means to start
at the working directory)

If the file is set to executable by you, it should work.  If you type the
command without the preceding dot slash ./ and if its not in the path, it
won't work, so you DO need to be explicit as to where it is. (hence the ./
it defines exactly where to find the file so being in the set PATH isn't
necessary)

If it DOES work that way from the command line, then in your script you can
a) set the folder to the location of the file, and then b) do a
shell("./theExe arg1 arg2") and it should work.  Or for a) you can give a
full path specification to the location of the file.

On Mon, May 8, 2017 at 12:54 PM, JB via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Hi Mike,
>
> Thank you for the info.
>
> The dictionary for Shell states it needs to work
> from the Terminal to work correctly with Shell so
> I have been doing everything from the Terminal at
> this point.  I was trying to figure out how to write
> it properly in the Terminal so I could use similar
> code with the Shell.
>
> JB
>
>
> > On May 8, 2017, at 11:45 AM, Mike Bonner via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> > Seems to me, if its the compiled version, you shouldn't need to use
> "open"
> > at all.
> >
> > a simple
> > get shell("path/to/executable argument1 argument2")
> > If I understand what I read about "open" enough, it expects a file, that
> > will be opened in another app, like in Marks example.  (whatever.c opens
> > xcode)
> >
> > If you want to experiment with open, you could try the following..
> >
> > open -a /path/to/your/app /path/to/a/dummy/file/to/open --args arg1 arg2
> >
> > I'm guessing that if you can format this right, it'll report the name of
> > the dummy file, and arg1 and arg2 as you expect.
> >
> > But since you just want to pass arguments to your compiled program, I am
> > pretty sure you just need to use shell() and call it directly with the
> > arguments as part of the call.
> >
> >
> > On Mon, May 8, 2017 at 12:05 PM, JB via use-livecode <
> > use-livecode@lists.runrev.com> wrote:
> >
> >> That is a typo.
> >>
> >> In fact I tried every way and every
> >> place within the open script and if
> >> it is written different the code is not
> >> executed and I get and error.
> >>
> >> JB
> >>
> >>
> >>> On May 8, 2017, at 10:57 AM, Mark Wieder via use-livecode <
> >> use-livecode@lists.runrev.com> wrote:
> >>>
> >>> On 05/08/2017 10:36 AM, JB via use-livecode wrote:
> >>>
>  The file executes properly and the message is printed
>  showing I did not enter any arguments even though I
>  did try to and then it prints the file name and path like
>  I told it to from argv[0].
> 
>  JB
> >>>
> >>> In your original post you said "-args". The correct syntax is "--args"
> >> (with two dashes rather than one), so if that's not a typo in your
> original
> >> email, try correcting that and see what happens.
> >>>
> >>> --
> >>> Mark Wieder
> >>> ahsoftw...@gmail.com
> >>>
> >>> ___
> >>> use-livecode mailing list
> >>> use-livecode@lists.runrev.com
> >>> Please visit this url to subscribe, unsubscribe and manage your
> >> subscription preferences:
> >>> http://lists.runrev.com/mailman/listinfo/use-livecode
> >>>
> >>
> >>
> >> ___
> >> use-livecode mailing list
> >> use-livecode@lists.runrev.com
> >> Please visit this url to subscribe, unsubscribe and manage your
> >> subscription preferences:
> >> http://lists.runrev.com/mailman/listinfo/use-livecode
> >>
> > ___
> > use-livecode mailing list
> > use-livecode@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
> >
>
>
> ___
> use-livecode mailing list
> use-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: Problem placing an image on the clipboard...

2017-05-08 Thread Paul Dupuis via use-livecode
Thank you Mark!

On 5/8/2017 3:46 PM, Mark Waddingham via use-livecode wrote:
> The paintcompression global property is rle by default (at least in 6.7.x) - 
> in the ide it gets set to png.
>
> So try setting it to png on startup of your standalone.
>
> Warmest regards,
>
> Mark
>
> Sent from my iPhone
>
>> On 8 May 2017, at 20:00, Paul Dupuis via use-livecode 
>>  wrote:
>>
>> Using LC 6.7.11 (yes, I know, an old version!)
>>
>> I have image data in the variable tImageData and the image's width and
>> height in tSize and I want to copy the image to the clipboard. The
>> following code works perfectly EVERY time in the IDE
>>
>>create inv image "pdfCopyTemp"
>>set the width of image "pdfCopyTemp" to item 1 of tSize
>>set the heightof image "pdfCopyTemp" to item 2 of tSize
>>set the imageData of image "pdfCopyTemp" to tImageData
>>set the clipboardData["image"] to the text of image "pdfCopyTemp"
>>wait 10 milliseconds with messages
>>delete image "pdfCopyTemp"
>>
>> However, when I build a standalone, it fails. Adding the line "answer
>> (the clipboardData["image"]) right after I SET the
>> clipboardData["image"] show me a PNG header in the IDE and just binary
>> data in the standalone, no image type header. It like one built into a
>> Standalone, the set the clipboardData["image"] to the text of image
>> "pdfCopyTemp" no longer works correctly!?!
>>
>> I am sure this is probably a known bug of LC 6.7.11 that is fixed in a
>> later  release, but is anyone familiar with this bug? Anyone know a
>> work-around?
>>
>>
>>
>>
>> ___
>> use-livecode mailing list
>> use-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: Problem placing an image on the clipboard...

2017-05-08 Thread Mark Waddingham via use-livecode
The paintcompression global property is rle by default (at least in 6.7.x) - in 
the ide it gets set to png.

So try setting it to png on startup of your standalone.

Warmest regards,

Mark

Sent from my iPhone

> On 8 May 2017, at 20:00, Paul Dupuis via use-livecode 
>  wrote:
> 
> Using LC 6.7.11 (yes, I know, an old version!)
> 
> I have image data in the variable tImageData and the image's width and
> height in tSize and I want to copy the image to the clipboard. The
> following code works perfectly EVERY time in the IDE
> 
>create inv image "pdfCopyTemp"
>set the width of image "pdfCopyTemp" to item 1 of tSize
>set the heightof image "pdfCopyTemp" to item 2 of tSize
>set the imageData of image "pdfCopyTemp" to tImageData
>set the clipboardData["image"] to the text of image "pdfCopyTemp"
>wait 10 milliseconds with messages
>delete image "pdfCopyTemp"
> 
> However, when I build a standalone, it fails. Adding the line "answer
> (the clipboardData["image"]) right after I SET the
> clipboardData["image"] show me a PNG header in the IDE and just binary
> data in the standalone, no image type header. It like one built into a
> Standalone, the set the clipboardData["image"] to the text of image
> "pdfCopyTemp" no longer works correctly!?!
> 
> I am sure this is probably a known bug of LC 6.7.11 that is fixed in a
> later  release, but is anyone familiar with this bug? Anyone know a
> work-around?
> 
> 
> 
> 
> ___
> use-livecode mailing list
> use-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


Problem placing an image on the clipboard...

2017-05-08 Thread Paul Dupuis via use-livecode
Using LC 6.7.11 (yes, I know, an old version!)

I have image data in the variable tImageData and the image's width and
height in tSize and I want to copy the image to the clipboard. The
following code works perfectly EVERY time in the IDE

create inv image "pdfCopyTemp"
set the width of image "pdfCopyTemp" to item 1 of tSize
set the heightof image "pdfCopyTemp" to item 2 of tSize
set the imageData of image "pdfCopyTemp" to tImageData
set the clipboardData["image"] to the text of image "pdfCopyTemp"
wait 10 milliseconds with messages
delete image "pdfCopyTemp"

However, when I build a standalone, it fails. Adding the line "answer
(the clipboardData["image"]) right after I SET the
clipboardData["image"] show me a PNG header in the IDE and just binary
data in the standalone, no image type header. It like one built into a
Standalone, the set the clipboardData["image"] to the text of image
"pdfCopyTemp" no longer works correctly!?!

I am sure this is probably a known bug of LC 6.7.11 that is fixed in a
later  release, but is anyone familiar with this bug? Anyone know a
work-around?




___
use-livecode mailing list
use-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: Shell argv

2017-05-08 Thread JB via use-livecode
Hi Mike,

Thank you for the info.

The dictionary for Shell states it needs to work
from the Terminal to work correctly with Shell so
I have been doing everything from the Terminal at
this point.  I was trying to figure out how to write
it properly in the Terminal so I could use similar
code with the Shell.

JB


> On May 8, 2017, at 11:45 AM, Mike Bonner via use-livecode 
>  wrote:
> 
> Seems to me, if its the compiled version, you shouldn't need to use "open"
> at all.
> 
> a simple
> get shell("path/to/executable argument1 argument2")
> If I understand what I read about "open" enough, it expects a file, that
> will be opened in another app, like in Marks example.  (whatever.c opens
> xcode)
> 
> If you want to experiment with open, you could try the following..
> 
> open -a /path/to/your/app /path/to/a/dummy/file/to/open --args arg1 arg2
> 
> I'm guessing that if you can format this right, it'll report the name of
> the dummy file, and arg1 and arg2 as you expect.
> 
> But since you just want to pass arguments to your compiled program, I am
> pretty sure you just need to use shell() and call it directly with the
> arguments as part of the call.
> 
> 
> On Mon, May 8, 2017 at 12:05 PM, JB via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> That is a typo.
>> 
>> In fact I tried every way and every
>> place within the open script and if
>> it is written different the code is not
>> executed and I get and error.
>> 
>> JB
>> 
>> 
>>> On May 8, 2017, at 10:57 AM, Mark Wieder via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>>> 
>>> On 05/08/2017 10:36 AM, JB via use-livecode wrote:
>>> 
 The file executes properly and the message is printed
 showing I did not enter any arguments even though I
 did try to and then it prints the file name and path like
 I told it to from argv[0].
 
 JB
>>> 
>>> In your original post you said "-args". The correct syntax is "--args"
>> (with two dashes rather than one), so if that's not a typo in your original
>> email, try correcting that and see what happens.
>>> 
>>> --
>>> Mark Wieder
>>> ahsoftw...@gmail.com
>>> 
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>> 
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 


___
use-livecode mailing list
use-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: Shell argv

2017-05-08 Thread Mike Bonner via use-livecode
Seems to me, if its the compiled version, you shouldn't need to use "open"
at all.

a simple
get shell("path/to/executable argument1 argument2")
If I understand what I read about "open" enough, it expects a file, that
will be opened in another app, like in Marks example.  (whatever.c opens
xcode)

If you want to experiment with open, you could try the following..

open -a /path/to/your/app /path/to/a/dummy/file/to/open --args arg1 arg2

I'm guessing that if you can format this right, it'll report the name of
the dummy file, and arg1 and arg2 as you expect.

But since you just want to pass arguments to your compiled program, I am
pretty sure you just need to use shell() and call it directly with the
arguments as part of the call.


On Mon, May 8, 2017 at 12:05 PM, JB via use-livecode <
use-livecode@lists.runrev.com> wrote:

> That is a typo.
>
> In fact I tried every way and every
> place within the open script and if
> it is written different the code is not
> executed and I get and error.
>
> JB
>
>
> > On May 8, 2017, at 10:57 AM, Mark Wieder via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> > On 05/08/2017 10:36 AM, JB via use-livecode wrote:
> >
> >> The file executes properly and the message is printed
> >> showing I did not enter any arguments even though I
> >> did try to and then it prints the file name and path like
> >> I told it to from argv[0].
> >>
> >> JB
> >
> > In your original post you said "-args". The correct syntax is "--args"
> (with two dashes rather than one), so if that's not a typo in your original
> email, try correcting that and see what happens.
> >
> > --
> > Mark Wieder
> > ahsoftw...@gmail.com
> >
> > ___
> > use-livecode mailing list
> > use-livecode@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
> >
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Shell argv

2017-05-08 Thread JB via use-livecode
That is a typo.

In fact I tried every way and every
place within the open script and if
it is written different the code is not
executed and I get and error.

JB


> On May 8, 2017, at 10:57 AM, Mark Wieder via use-livecode 
>  wrote:
> 
> On 05/08/2017 10:36 AM, JB via use-livecode wrote:
> 
>> The file executes properly and the message is printed
>> showing I did not enter any arguments even though I
>> did try to and then it prints the file name and path like
>> I told it to from argv[0].
>> 
>> JB
> 
> In your original post you said "-args". The correct syntax is "--args" (with 
> two dashes rather than one), so if that's not a typo in your original email, 
> try correcting that and see what happens.
> 
> -- 
> Mark Wieder
> ahsoftw...@gmail.com
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 


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


Re: Shell argv

2017-05-08 Thread Mark Wieder via use-livecode

On 05/08/2017 10:36 AM, JB via use-livecode wrote:


The file executes properly and the message is printed
showing I did not enter any arguments even though I
did try to and then it prints the file name and path like
I told it to from argv[0].

JB


In your original post you said "-args". The correct syntax is "--args" 
(with two dashes rather than one), so if that's not a typo in your 
original email, try correcting that and see what happens.


--
 Mark Wieder
 ahsoftw...@gmail.com

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


Re: Shell argv

2017-05-08 Thread JB via use-livecode
Here is the code;

#include

int main (int argc, char *argv[])
{
if (argc < 2)
printf ("You didn't enter any arguments.\n");
else
printf ("Your argument at position 1 is: %s\n", argv[1]);

printf ("\nYour file path is:\n%s\n\n", argv[0]);

return 0;
}

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: Shell argv

2017-05-08 Thread JB via use-livecode
Hi Mark,

Thanks for the reply and info.

The file is actually named Hello and it is
a c program compiled with xcode.

It takes the argc value and if it is less than 2
returns a message a parameter was not added.
If it is 2 then it prints the value of argv[1] which
would be the first argument passed by the info
I give when opening the file.  After that no matter
what value argc is it prints the value of argv[0]
and that is always the name and path of the file.

The file executes properly and the message is printed
showing I did not enter any arguments even though I
did try to and then it prints the file name and path like
I told it to from argv[0].

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: Shell argv

2017-05-08 Thread Mark Waddingham via use-livecode

On 2017-05-07 03:46, JB via use-livecode wrote:

To use a shell command it needs to work from
the terminal.  I am using OS X  10.11.6 and if
I try to open a Xcode c build named my_file I
type in the terminal,

open my_file

and the file my_file will open.


What is 'my_file'?

The terminal command 'open' looks at the filename, works out what app it 
should be opened by and then launches the file in that app.


For example:

  open foo.c

Will open 'foo.c' (as a editable text file) in Xcode on my machine.

The '--args' portion of the open command allows you to pass extra 
arguments to the application which is chosen to open the file.



The argument never gets passed.  Does anyone
know how to pass arguments to argv from the
terminal when open a file so I can use the script
from a shell command?


What exactly are you trying to do?

Warmest Regards,

Mark.

--
Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
LiveCode: Everyone can create apps

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


Re: User friendly functions to replace MySQL queries?

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

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

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



-- 
Kaveh Bazargan
Director
River Valley Technologies
@kaveh1000
+44 7771 824 111
www.rivervalleytechnologies.com
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Shell argv

2017-05-08 Thread JB via use-livecode
Thanks Bob.

I did that before I sent the message and searched
a lot on the web.  It looks to me like I am entering
everything properly.  I will not that the file takes a
full path and I did not show a full path but I always
used a full path.  Maybe I will try compiling with
gcc sometime to see if that works.

JB


> On May 8, 2017, at 8:32 AM, Bob Sneidar via use-livecode 
>  wrote:
> 
> try man open in the terminal. That should tell you what the arguments to the 
> open command are. 
> 
> Bob S
> 
> 
>> On May 6, 2017, at 18:46 , JB via use-livecode 
>>  wrote:
>> 
>> To use a shell command it needs to work from
>> the terminal.  I am using OS X  10.11.6 and if
>> I try to open a Xcode c build named my_file I
>> type in the terminal,
>> 
>> open my_file
>> 
>> and the file my_file will open.
>> 
>> I want to pass arguments to argv but the never
>> get passed.  I have tried the following;
>> 
>> open my_file —args arg1
>> 
>> The argument never gets passed.  Does anyone
>> know how to pass arguments to argv from the
>> terminal when open a file so I can use the script
>> from a shell command?
>> 
>> 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: Shell argv

2017-05-08 Thread Bob Sneidar via use-livecode
try man open in the terminal. That should tell you what the arguments to the 
open command are. 

Bob S


> On May 6, 2017, at 18:46 , JB via use-livecode 
>  wrote:
> 
> To use a shell command it needs to work from
> the terminal.  I am using OS X  10.11.6 and if
> I try to open a Xcode c build named my_file I
> type in the terminal,
> 
> open my_file
> 
> and the file my_file will open.
> 
> I want to pass arguments to argv but the never
> get passed.  I have tried the following;
> 
> open my_file —args arg1
> 
> The argument never gets passed.  Does anyone
> know how to pass arguments to argv from the
> terminal when open a file so I can use the script
> from a shell command?
> 
> 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: User friendly functions to replace MySQL queries?

2017-05-08 Thread Bob Sneidar via use-livecode
sqlYoga is awesome. The learning curve is a bit steep at first, but once you 
get it, it's great. I wrote functions and a database setup interface that makes 
it all fairly transparent to use. I can share if you like. 

Bob S


> On May 7, 2017, at 13:55 , Kaveh Bazargan via use-livecode 
>  wrote:
> 
> Hi all
> 
> Writing MySQL queries using LiveCode is a bit painful, so I thought of
> writing some higher level functions to produce the queries, a bit like
> these from Ken Ray:
> 
> http://www.sonsothunder.com/devres/livecode/tips/data005.htm
> 
> But before I start I wonder if anyone else has done these.
> 
> I know André Garcia wrote a big package, but his site seems down:
> 
> http://www.andregarzia.com/page/revspark
> 
> Any pointers please?
> 
> -- 
> Kaveh Bazargan
> Director
> River Valley Technologies
> @kaveh1000
> +44 7771 824 111
> www.rivervalleytechnologies.com
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

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

Re: looking for a smart approach to "sort" an array

2017-05-08 Thread Bob Sneidar via use-livecode
Note also that datagrids will only display the data for columns that have been 
defined in the datagrid properties. You can have all sorts of data in the 
dgData of the datagrid that is invisible to the user. I do this all the time, 
storing whole database records, but displaying only the information I want the 
user to see. 

The drag/drop rearranging is a bit trickier, but there are lessons on how to do 
this as well. If you need to store the data as an array, simply get the dgData 
of the data grid. 

Bob S


> On May 6, 2017, at 10:10 , Jim Lambert via use-livecode 
>  wrote:
> 
> Tiemo,
> 
>> I have a list field of words and a correspondent array with the words of the
>> field as the keys plus some data per key. I can store the array in a file,
>> read it later from file and rebuild the list of words from the keys of the
>> array. Up to now, I had this list of words alphabetically sorted. So it was
>> easy, when reloading the array to sort the list always alphabetically to
>> refresh the visible list in the field.
>> 
>> The user can also create a custom sequence of the words in the field by drag
>> and drop the lines in individual order. Now I am looking for a smart
>> approach to keep the same sort order in the correspondent array. I need the
>> custom sort order of the words in case I reload the array later from file to
>> get the same sequence of words as the user has sorted them, after extracting
>> the words from the array. 
> 
> As much as I like arrays, in this case you might consider an ‘old school’ 
> approach.
> This approach will only work if the stack is writable and that 'plus some 
> data per key’ is just text.
> And the approach is - keep everything in the scrolling list field - including 
> the OtherData. No arrays, no writing files.
> 
> Set the tabstops to a number greater than the width of the field.
> Set the itemdelimter to tab.
> Then put the OtherData of each line into the second item of each line.
> 
> As long as there’s no horizontal scrollbar on the field the user will never 
> see the OtherData.
> Getting item 2 of the hilitedline will always give you the corresponding 
> OtherData for the word the user has selected.
> 
> Your drag and drop routines should still work. Just remember to save the 
> stack each time the user rearranges the line order.
> 
> Jim Lambert

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

Re: [ANN] This Week in LiveCode 81

2017-05-08 Thread panagiotis merakos via use-livecode
Hi Richard,

You are correct. I should probably move this to the new section "Other
LiveCode News"

Thanks for spotting it.

Best regards,
Panos
--

On Mon, May 8, 2017 at 3:46 PM, Richard Gaskin via use-livecode <
use-livecode@lists.runrev.com> wrote:

> panagiotis merakos wrote:
> > Read about new developments in LiveCode open source and the open
> > source community in today's edition of the "This Week in LiveCode"
> > newsletter!
> >
> > Read issue #81 here: https://goo.gl/oWGt3h
>
> Thanks for the update, Panos.
>
> That page includes:
>
>Updates in the LiveCode open source project
>
>Notable changes
>New tsNet version: Expected in LiveCode 8.1.4 RC2
>
>
> I had thought tsNet was not included in the open source edition, no?
>
> --
>  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: looking for a smart approach to "sort" an array

2017-05-08 Thread Bob Sneidar via use-livecode
Every time you state the problem you are trying to solve, I catch myself saying 
"This is not how I would do it." Array values are not searchable, which makes 
it unsuitable for searching. Fields can be searched easily enough, datagrids 
without too much more trouble are searchable, and databases are the best way to 
go about this. You can load/save the data you put into the field with 
openCard/closeCard, and let the user do whatever they want with the data 
itself. 

If all you are trying to do is let the user rearrange and save data in a field, 
why not just load/save the contents of the field in a property on 
openCard/closeCard? I do not grasp why the transform to an array is 
accomplishing anything. 

Bob S


> On May 6, 2017, at 07:28 , Mike Bonner via use-livecode 
>  wrote:
> 
> Wasn't my post originally, but the gist of the problem was, how does one
> get data back out of an array based on a custom sorted list of words that
> are used as main array key back out of the array in the desired sequence.
> 
> IE there is a list of words in a field.  And an array that has extra
> information relating to each word keyed by array[theWord]
> 
> To me, the simplest answer is to keep track of the word list and iterate
> through it to access each key of the array in the desired sequence.


___
use-livecode mailing list
use-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] This Week in LiveCode 81

2017-05-08 Thread Richard Gaskin via use-livecode

panagiotis merakos wrote:
> Read about new developments in LiveCode open source and the open
> source community in today's edition of the "This Week in LiveCode"
> newsletter!
>
> Read issue #81 here: https://goo.gl/oWGt3h

Thanks for the update, Panos.

That page includes:

   Updates in the LiveCode open source project

   Notable changes
   New tsNet version: Expected in LiveCode 8.1.4 RC2


I had thought tsNet was not included in the open source edition, no?

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


[ANN] This Week in LiveCode 81

2017-05-08 Thread panagiotis merakos via use-livecode
Hi all,

Read about new developments in LiveCode open source and the open source
community in today's edition of the "This Week in LiveCode" newsletter!

Read issue #81 here: https://goo.gl/oWGt3h

This is a weekly newsletter about LiveCode, focussing on what's been
going on in and around the open source project. New issues will be
released weekly on Mondays. We have a dedicated mailing list that will
deliver each issue directly to you e-mail, so you don't miss any!

If you have anything you'd like mentioned (a project, a discussion
somewhere, an upcoming event) then please get in touch.


-- 
Panagiotis Merakos 
LiveCode Software Developer

Everyone Can Create Apps 
___
use-livecode mailing list
use-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: looking for a smart approach to "sort" an array

2017-05-08 Thread Lagi Pittas via use-livecode
Jim

You are a Godsend - I never knew of the metadata - I have a whole lot of
refactoring to do.
I was using the "hidden" tab fields trick but this is way better

This is going to make so much stuff so easy - and so much easier to debug

Thanks again

Lagi

On 8 May 2017 at 09:34, Tiemo Hollmann TB via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Thank you all for your nice ideas
> Tiemo
>
> -Ursprüngliche Nachricht-
> Von: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] Im
> Auftrag von J. Landman Gay via use-livecode
> Gesendet: Samstag, 6. Mai 2017 22:15
> An: How to use LiveCode 
> Cc: J. Landman Gay 
> Betreff: Re: looking for a smart approach to "sort" an array
>
> Use tabwidths instead of tabstops. I was working off faulty memory.
>
>
> On 5/6/17 2:32 PM, Mike Bonner via use-livecode wrote:
> > Cool stuff! Didn't know you could hide things with tab, and will have
> > to look at metadata now.  Thanks!
> >
> > On Sat, May 6, 2017 at 1:30 PM, Jim Lambert via use-livecode <
> > use-livecode@lists.runrev.com> wrote:
> >
> >>
> >>> Jacque wrote:
> >>> I've done this often, it's a nice clean solution. And now that we
> >>> can set tabstops to 0, the second item won't be visible whether
> >>> there's a horizontal scrollbar or not.
> >>
> >>
> >> That’s right!  tabwidths are handy for this hiding too.
> >>
> >> But I realized Tiemo might not even need to bother hiding the
> >> otherData if he takes advantage of another property of fields - the
> metadata property:
> >>
> >> set the metadata of line 1 of field 1 to otherDataString
> >> set the metadata of line 2 of field 1 to otherDataString2
> >>
> >> A field’s metadata is never visible.
> >> Yet the otherData strings will travel along with each line as the
> >> user drags the the lines up and down.
> >>
> >> LiveCode offers so much flexibility! We can usually have a choice of
> >> approaches to any problem
> >>
> >> Jim Lambert
> >>
> >>
> >>
> >> ___
> >> use-livecode mailing list
> >> use-livecode@lists.runrev.com
> >> Please visit this url to subscribe, unsubscribe and manage your
> >> subscription preferences:
> >> http://lists.runrev.com/mailman/listinfo/use-livecode
> > ___
> > use-livecode mailing list
> > use-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
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

AW: looking for a smart approach to "sort" an array

2017-05-08 Thread Tiemo Hollmann TB via use-livecode
Thank you all for your nice ideas
Tiemo

-Ursprüngliche Nachricht-
Von: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] Im Auftrag von 
J. Landman Gay via use-livecode
Gesendet: Samstag, 6. Mai 2017 22:15
An: How to use LiveCode 
Cc: J. Landman Gay 
Betreff: Re: looking for a smart approach to "sort" an array

Use tabwidths instead of tabstops. I was working off faulty memory.


On 5/6/17 2:32 PM, Mike Bonner via use-livecode wrote:
> Cool stuff! Didn't know you could hide things with tab, and will have 
> to look at metadata now.  Thanks!
>
> On Sat, May 6, 2017 at 1:30 PM, Jim Lambert via use-livecode < 
> use-livecode@lists.runrev.com> wrote:
>
>>
>>> Jacque wrote:
>>> I've done this often, it's a nice clean solution. And now that we 
>>> can set tabstops to 0, the second item won't be visible whether 
>>> there's a horizontal scrollbar or not.
>>
>>
>> That’s right!  tabwidths are handy for this hiding too.
>>
>> But I realized Tiemo might not even need to bother hiding the 
>> otherData if he takes advantage of another property of fields - the metadata 
>> property:
>>
>> set the metadata of line 1 of field 1 to otherDataString
>> set the metadata of line 2 of field 1 to otherDataString2
>>
>> A field’s metadata is never visible.
>> Yet the otherData strings will travel along with each line as the 
>> user drags the the lines up and down.
>>
>> LiveCode offers so much flexibility! We can usually have a choice of 
>> approaches to any problem
>>
>> Jim Lambert
>>
>>
>>
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your 
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> ___
> use-livecode mailing list
> use-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