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

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

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

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

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

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

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

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

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

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

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 >

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

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

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

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

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 >

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

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

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)

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

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

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

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

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

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

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

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 >

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 >

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

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

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

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

[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

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

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