Re: Down a leafy lane or up queer street?

2018-04-29 Thread Mike Bonner via use-livecode
Did you declare it as a global on the card also? You have to declare it for every context that it will be used. Stack, card, if you use it in a button script, wherever. If you've declared it in a card script, and set its value, but then use it WITHOUT declaration all you get back is the text of

Re: Livecode Share

2018-05-02 Thread Mike Bonner via use-livecode
If you go to "sample stacks" from the livecode bar, on the upper right you can either log in or sign up. Sign up to create an account, at which point you should be good to go. On Wed, May 2, 2018 at 1:25 PM, Paul Hibbert via use-livecode < use-livecode@lists.runrev.com> wrote: > I’ve had this pro

Re: Livecode Share

2018-05-02 Thread Mike Bonner via use-livecode
e image files. > > Bob S > > > > > On May 2, 2018, at 12:42 , Mark Wieder via use-livecode < > use-livecode@lists.runrev.com> wrote: > > > > On 05/02/2018 12:37 PM, Mike Bonner via use-livecode wrote: > >> If you go to "sample stacks" from the

Re: Sean?

2018-05-08 Thread Mike Bonner via use-livecode
Thank you Dan On Tue, May 8, 2018 at 10:13 AM, Dan Brown via use-livecode < use-livecode@lists.runrev.com> wrote: > I just received word from Sean's family, he is safe and is coping with last > week's difficult events > > On Tue, 8 May 2018, 15:40 prothero--- via use-livecode, < > use-livecode@li

Re: Active window and mouse location

2018-05-09 Thread Mike Bonner via use-livecode
While the solution is not perfect, you can have your script set the systemwindow of stack "stackname" to true wait 1 tick set the systemwindow of stack "stackname" to false (Saw this on the forums at one time or another, think the thanks go to Lagi) The only negative of this method is the flicker

Re: imagedata and alpha byte

2018-05-09 Thread Mike Bonner via use-livecode
Already assuming that you know which pixel you wish to modify, (like if you want to modify pixel 25 in pixel row 3, that would be pixel 75.. I think..) you would need to do something like the following.. --first, put the current alphadata into a variable. put the alphadata of img "myImg" into tAl

Re: How to turn off editor formatting

2018-05-09 Thread Mike Bonner via use-livecode
In the scripteditor window, click the edit menu, options, then enable/disable the things you wish. On Wed, May 9, 2018 at 1:08 PM, William Prothero via use-livecode < use-livecode@lists.runrev.com> wrote: > Folks: > I know there must be a way to turn off the part of the IDE editor > auto-formatti

Re: How to turn off editor formatting

2018-05-09 Thread Mike Bonner via use-livecode
Wed, May 9, 2018 at 4:07 PM Bob Sneidar via use-livecode < > use-livecode@lists.runrev.com> wrote: > > > No work. First, there does not seem to be an option for turning off > > auto-complete. Also, turning off auto-format seems to not effect anything > > much. > >

Re: Active window and mouse location

2018-05-09 Thread Mike Bonner via use-livecode
Hmm. Not sure whats up then. doing the systemwindow trick pops things to the front for me from behind a browser of whatever happens to be in front, so no clue why it won't work for you. (unless the window that it is behind is a system window itself) On Wed, May 9, 2018 at 3:34 PM, Douglas Ruisaa

Re: Active window and mouse location

2018-05-10 Thread Mike Bonner via use-livecode
Hmm Just a curiosity question to further the experiment if you don't mind.. I had been thinking you could use the "click" command to bring things to front, but if its not in front you can't do that. So out of curiosity.. If you set it to a system window so that its in front of everything, and th

Re: Active window and mouse location

2018-05-10 Thread Mike Bonner via use-livecode
Oh, one other option for windows would be vbscript. Unfortunately, I don't think you can "do myScript as vbscript" because (according to the dictionary) the required objects aren't available to livecode using that method. You can however, create a .vbs file with a script that should be able to b

PDF

2018-05-12 Thread Mike Bonner via use-livecode
I haven't needed to do this before, but is there a (relatively) easy way to extract the text from a bunch of pdf files? I'm hoping I can build some indexes for the boatload of files I want to go through. (THough, I guess I could bipass LC and just grep my heart out) Any suggestions?

Re: PDF

2018-05-12 Thread Mike Bonner via use-livecode
nrev.com> wrote: > If you have a Business License, you can use the XPDF external available > with those editions for doing that. > > On 5/12/2018 12:58 PM, Mike Bonner via use-livecode wrote: > > I haven't needed to do this before, but is there a (relatively) easy way > to

Re: PDF

2018-05-12 Thread Mike Bonner via use-livecode
p "pdfViewer" > return textDecode(tUnicodeDocumentText,"UTF16") > end pdfText > > Maybe LiveCode will have a sale some day in the future that will meet > your price point. > > For other who may have a Business License or just interested in what you >

Re: PDF

2018-05-12 Thread Mike Bonner via use-livecode
Thanks Richard. This helps cut my search down considerably. I had already set up an ubuntu vm on my unraid server, so I should be able to get something going. Much appreciated. On Sat, May 12, 2018 at 2:08 PM, Richard Gaskin via use-livecode < use-livecode@lists.runrev.com> wrote: > Mike Bonner

Re: PDF

2018-05-13 Thread Mike Bonner via use-livecode
I ended up using pdftotext, it worked like a charm. (Though I had to look up how to send it a file list using find.. Too long away from the shell.) I now have a little app that can do a word search for matching files and show either the extracted text, or the original pdf using the browser widget.

Re: Would Anyone Like a Ring Tone At End of Standalone Built?

2018-05-20 Thread Mike Bonner via use-livecode
Hey that's cool! And it works well. On Sun, May 20, 2018 at 1:22 PM, Matthias Rebbe via use-livecode < use-livecode@lists.runrev.com> wrote: > You could add a StandaloneSaved handler to your stack which is send to the > mainstack when it was saved as a standalone. > You could add the code for pl

on-rev choosing engine

2018-05-24 Thread Mike Bonner via use-livecode
Has anyone had luck using an .htaccess to change the engine used with onrev? I'm hoping to override 7.0.1 (the default version it seems) with a more recent version, but the information here: http://lessons.livecode.com/m/4070/l/41105-how-do-i-choose-which-livecode-server-engine-to-use-with-on-rev

Re: on-rev choosing engine

2018-05-24 Thread Mike Bonner via use-livecode
allation with each domain, you have to put livecode server and > .htaccess into each root folder. > > > Regards, > Matthias > > > Am 24.05.2018 um 17:32 schrieb Mike Bonner via use-livecode < > use-livecode@lists.runrev.com>: > > > > Has anyone had luck u

Re: on-rev choosing engine

2018-05-24 Thread Mike Bonner via use-livecode
erent > server engines were not installed again. > > Matthias > > > > Am 24.05.2018 um 21:46 schrieb Mike Bonner via use-livecode < > use-livecode@lists.runrev.com>: > > > > Thanks, I'll try this and see what I can figure out. It seems though > that >

Re: Was: URGENT: MergGoogle no longer works on iOS: CLIENTS VERY UNHAPPY

2018-05-25 Thread Mike Bonner via use-livecode
Hey Sean, While its true that the full details of what was going on weren't available, there were 2 things that stood out to me from your previous writings. Large amounts of distress, and a monetary connection to the distress. I can't help with the distress directly, but it just makes sense to

Re: Was: URGENT: MergGoogle no longer works on iOS: CLIENTS VERY UNHAPPY

2018-05-25 Thread Mike Bonner via use-livecode
Curry- don't know if such a thing would help your situation, but i'm attaching a photo of my lift. Its simply a relatively small i-beam solidly anchored, a trolly to match, a 2000lb hoist (overkill) and a very simple, self designed sling hooked to a home made spreader bar. Lower it, sling in fr

Re: Graphing Solution...

2018-05-27 Thread Mike Bonner via use-livecode
I floundered around cluelessly with it for a bit, randomly changing a few things till I got something that seems to work. I'm sure there are things I still misunderstand about this, and that I've added code that probably doesn't need to be there. Also not sure if there will be issues with larger

Re: Graphing Solution...

2018-05-27 Thread Mike Bonner via use-livecode
Actually, change 2 lines and I think it'll work better: Line 932, change to: updateGridRect(rectangle [gridLeft(), tPadding + tNeededTop, mWidth - tPadding - mMaxYLabelWidth, gridBottom()]) Line 1061 change to: fill text tString at left of rectangle [tYRight + gridPadding(),tY-20,tYRight + mMaxYL

Re: LC >= 8 no more HC friendly?

2018-05-30 Thread Mike Bonner via use-livecode
Just curious, if you open with lc 5, and then save a copy as an lc stack, can you then open it with the later version? (and do the usual "messages off" thing too of course) On Wed, May 30, 2018 at 7:55 AM, Klaus major-k via use-livecode < use-livecode@lists.runrev.com> wrote: > Hi friends, > > I

Re: UTF8 on LC server

2018-05-31 Thread Mike Bonner via use-livecode
on-rev host is 7.0.1 you can get it with version() On Thu, May 31, 2018 at 6:14 PM, Tim Selander via use-livecode < use-livecode@lists.runrev.com> wrote: > Hi Kee and Alex, > > The original documents I'm working with are UTF8, so that's that I've been > using. So converting them to UTF16 is reco

Re: UTF8 on LC server

2018-05-31 Thread Mike Bonner via use-livecode
oops, dyslexic typo on my part, sorry about that. On Thu, May 31, 2018 at 6:33 PM, Alex Tweedly via use-livecode < use-livecode@lists.runrev.com> wrote: > > > On 01/06/2018 01:17, Mike Bonner via use-livecode wrote: > >> on-rev host is 7.0.1 you can get it with version()

Re: SQL Help

2018-06-01 Thread Mike Bonner via use-livecode
if I understand correctly, and just off the top of my head, using "limit" is one way to do this... The sql pseudo code would be something like: select * from yourtable order by iStoreGrp descending where meterNum = 1 AND valveNum = 3 limit 1 This would grab all the rows, sort them by istoregrp and

Re: Area of regular polygon triangles

2018-06-06 Thread Mike Bonner via use-livecode
If you need to use the box method, and the control rect isn't perfect, it might be easier to create the rect on your own. Go through the points and find the topmost, left most, rightmost, bottom most coordinates and that gives you your box. Alternatively, if you just want the area and don't care

Re: Area of regular polygon triangles

2018-06-07 Thread Mike Bonner via use-livecode
Cool! On Thu, Jun 7, 2018 at 5:08 PM, David Epstein via use-livecode < use-livecode@lists.runrev.com> wrote: > While trying Mike Bonner's suggestion of "manual" measuring, I learned the > answer: a regular polygon whose official length is L and width is W is > inscribed in the oval whose length

Re: scancodes

2018-06-11 Thread Mike Bonner via use-livecode
Don't think of a key press and key release as if they should be 2 different can codes, instead think of them as as being state changes. Like a light. Send power to the lightbulb, the light is on. Remove power from the bulb, the light is off. The bulb is still the same bulb. Same with the keyboa

Re: calling an api from a stack?

2018-06-15 Thread Mike Bonner via use-livecode
/* A quick and dirty example of using yandex translator Fill in your key then use the 2 functions to try things out. Put this in your card or stack script, then call the desired function passing in the required parameters. */ constant kKey="put your key here" constant kGetTransURL=" https://transl

Re: Regex (matchChunk) help...

2018-06-15 Thread Mike Bonner via use-livecode
If I understand correctly.. If you find the beginning string occurrence, and then find another beginning string, you want to ignore the first, and only take strings where beginning and end have no intermediate beginnings? Like this I mean.. beginning blah blah blah blah blah *beginning blah blah b

Re: Regex (matchChunk) help...

2018-06-15 Thread Mike Bonner via use-livecode
Try this.. on mouseup local tCharOffset --set the text of field 1 to the text of field 1 put the text of field 1 into tText put "beginning" into tstartword -- string begin put "ending" into tEndword -- string end put 1 into tCounter -- tracks current word repeat for each truew

Re: calling an api from a stack?

2018-06-15 Thread Mike Bonner via use-livecode
jsontoarray returns an array, you'll have to dig through the array to find where pieces of information reside, but it pretty straightforward after you poke around. For example.. If you instead do this.. put jsontoarray(tResult) into tArray you have an array variable named tArray. If you-- put the

Re: Regex (matchChunk) help...

2018-06-15 Thread Mike Bonner via use-livecode
Slightly cleaned up, and adjusted to empty tPair after a match. (on the off chance there is a second ending without a matching new beginning word) > on mouseup >put the text of field 1 into tText >put "beginning" into tstartword -- string begin >put "ending" into tEndword -- string

Re: Regex (matchChunk) help...

2018-06-15 Thread Mike Bonner via use-livecode
< use-livecode@lists.runrev.com> wrote: > Hi Mike, > > Yes this worksnever used or knew about trueword. > > thanks! > > Glen > > On Fri, Jun 15, 2018 at 1:21 PM, Mike Bonner via use-livecode < > use-livecode@lists.runrev.com> wrote: > > > Try this..

Re: calling an api from a stack?

2018-06-15 Thread Mike Bonner via use-livecode
don't like to nest functions. You cannot tell what > the function returned without pulling it apart. > > Bob S > > > > On Jun 15, 2018, at 10:40 , Mike Bonner via use-livecode < > use-livecode@lists.runrev.com> wrote: > > > > jsontoarray returns an arra

Re: calling an api from a stack?

2018-06-15 Thread Mike Bonner via use-livecode
s, and I can > only do that if I put the returned value or it or the result into a > variable of some sort. > > Bob S > > > > On Jun 15, 2018, at 14:28 , Mike Bonner via use-livecode < > use-livecode@lists.runrev.com> wrote: > > > > If you mean using me

merge()

2018-06-15 Thread Mike Bonner via use-livecode
I just had a thought while pondering some code from another thread. I have done things like put merge("This is a random number: [[random(tNum)]]") Since merge can do what do can, is there a way this method could be taken advantage of using an injection type of attack? I'm thinking the answer is

Re: Regex (matchChunk) help...

2018-06-15 Thread Mike Bonner via use-livecode
Hey cool! I'd use Jims (an marks) method. MUCH simpler. On Fri, Jun 15, 2018 at 7:06 PM Jim Lambert via use-livecode < use-livecode@lists.runrev.com> wrote: > Building on what Mark Wieder elegantly wrote: > > > MarkW wrote: > > > > filter lotsOfText with "*selkirkst*skyrider1*” > > function e

Re: merge()

2018-06-15 Thread Mike Bonner via use-livecode
something. > > put the text of field 1 into tMerge > put merge(tMerge) into tDangerousUse > put merge("Field 1 contains: [[tMerge]]") into tSafeUse > > So, I think your assumption is correct. > > On Fri, Jun 15, 2018 at 8:06 PM, Mike Bonner via use-livecode < > use-

Re: Translation Service Deepl.com

2018-06-24 Thread Mike Bonner via use-livecode
Same method as yandex from a recent thread, built your query string some way and send it to the server. something like.. put urlencode("Text to translate") into tText put "https://api.deepl.com/v1/translate?text="; & tText & "target_lang=EN&auth_key=YourAuthKeyHere" into tUrl get URL tUrl put it

Re: Grabbing a widget

2018-06-27 Thread Mike Bonner via use-livecode
I haven't found a way to make it stop sticking either. And I agree with the QCC entry that basic mouse event type messages including the ability to use "grab" or whatever should be glommed on to all widgets in some way. Admittedly, the grab issue can likely be worked around (mousedown itself work

Re: Sort IP List

2018-06-29 Thread Mike Bonner via use-livecode
I don't know what speed differences there might be, but another option is something like this.. function ipfunc pIp set the itemdel to "." set the numberformat to "###" -- force length of each chunk to 3 -- append the numbers together sans "." with padded 0's using numberformat repeat fo

Re: Sort IP List

2018-06-29 Thread Mike Bonner via use-livecode
## was writing this when your response showed up.. Just did some tests. For reasonable size lists of IP numbers, your method is clearly faster. As lines increase the disparity shrinks (due to 4 processings of the same lines rather than 1) until around 35000 lines at which point positions reverse a

Re: Sort IP List

2018-06-29 Thread Mike Bonner via use-livecode
k to another file. The time to do this of course would be much > longer, but it would avoid any memory constraints. > > Bob S > > > > On Jun 29, 2018, at 09:35 , Mike Bonner via use-livecode < > use-livecode@lists.runrev.com> wrote: > > > > ## was writing thi

Re: Sort IP List

2018-06-29 Thread Mike Bonner via use-livecode
ther file. The time to do this of course would be much >> longer, but it would avoid any memory constraints. >> >> Bob S >> >> >> > On Jun 29, 2018, at 09:35 , Mike Bonner via use-livecode < >> use-livecode@lists.runrev.com> wrote: &g

Re: Sort IP List

2018-06-29 Thread Mike Bonner via use-livecode
Thx for the clue, I see what you mean. I had tried to get something similar to your value(item 1 of each +0) method to work and something wasn't clicking, but after seeing yours, I think I have it working. sort lines of tList ascending numeric by (item 1 of each +0) & (item 2 of each + 0) & (item

Re: Sort IP List

2018-06-29 Thread Mike Bonner via use-livecode
Oh, the above assumes setting the numberformat to "000" as you specified of course. On Fri, Jun 29, 2018 at 4:00 PM Mike Bonner wrote: > Thx for the clue, I see what you mean. > > I had tried to get something similar to your value(item 1 of each +0) > method to work and something wasn't clicking

Re: Sort IP List

2018-06-29 Thread Mike Bonner via use-livecode
ts breakpoint but there is nothing in theError. What version/OS > are you running? We may have uncovered an engine anomaly. > > > > Bob S > > > >> On Jun 29, 2018, at 15:00 , Mike Bonner via use-livecode <

Re: Sort IP List

2018-06-29 Thread Mike Bonner via use-livecode
f each + 0) & \ > (item 4 of each + 0) >catch theError > breakpoint >end try >return pIPList > end sortIPList2 > > With a small subset of data, it doesn't error meaning I have some cruft in > the data. Fair enough. The bad news is... IT

Re: Sort IP List

2018-06-29 Thread Mike Bonner via use-livecode
You all are just too darn smart. great solution. On Fri, Jun 29, 2018 at 5:54 PM Alex Tweedly via use-livecode < use-livecode@lists.runrev.com> wrote: > Why not just do it directly (avoid the function call) ... > > function sortIPList2 pIPList > set the itemdelimiter to "." > try >

Re: Script Only Stack Behaviors and Nesting

2018-07-02 Thread Mike Bonner via use-livecode
Curious if this would be useful. It occurred to me that one could use getters and setters in the behavior if one wanted a "central" location for data for objects using that behavior. Not as easy as just using an actual property set, but might end up being faster? To test I put the following into

Re: Capture Keystrokes & MouseMovements without being in focus?

2018-07-05 Thread Mike Bonner via use-livecode
The only way I know of is to start a relatively fast send loop and check the keysdown(). For some things it works fine but for most other things its not a good answer since you can see if a key is down, but not how long its down, or tell if it has been pressed, then pressed again before the next l

Re: Capture Keystrokes & MouseMovements without being in focus?

2018-07-05 Thread Mike Bonner via use-livecode
something i wanted to do but can live without. > Thanks, I will try this tomorrow ...i don't see why it wouldn't work for > what I need. > > there is always an answer i guess. this community rocks. > > On Fri, Jul 6, 2018 at 12:23 AM, Mike Bonner via use-livecode < &g

Re: odbc "information type out of range"

2018-07-06 Thread Mike Bonner via use-livecode
I have no way to test it, but if you change your insert to.. insert into employee (empno) values (double(-1)) Does it make a difference? On Fri, Jul 6, 2018 at 10:14 AM Mike Kerner via use-livecode < use-livecode@lists.runrev.com> wrote: > Hmmm. How about this: The insert is actually succeedi

Re: odbc "information type out of range"

2018-07-06 Thread Mike Bonner via use-livecode
l (#1) > > syntax error near "(" > > > Unexpected symbol or invalid SQL/R language statement. > > > On Fri, Jul 6, 2018 at 1:04 PM Mike Bonner via use-livecode < > use-livecode@lists.runrev.com> wrote: > > > I have no way to test it, but if you

Re: What are possible reasons for memory consumption ...

2018-07-08 Thread Mike Bonner via use-livecode
Or alternatively, check the pendingmessages and only send if there is not already a message for the handler in question in queue. I've had situations (in my case, bad coding) where I thought I was starting a looping handler once ,but had left a call to that handler elsewhere accidentally during th

Docker

2018-07-10 Thread Mike Bonner via use-livecode
Hoping someone can help me shortcut this.. If I start with an alpine image, what things do I need to add so that LC executables will run? (using the -ui flag) Or would I be better off starting with another base? I'm looking to end up with smallest possible docker that can do the job. ___

Re: Docker

2018-07-10 Thread Mike Bonner via use-livecode
ata that the request included. i was using the > httd library to accept and reply to requests. > > so i'm curious about your experience with that when you get to it. > > > > On Tue, Jul 10, 2018 at 2:18 PM, Mike Bonner via use-livecode < > use-livecode@lists.runrev.c

Re: Docker

2018-07-10 Thread Mike Bonner via use-livecode
Thank you! On Tue, Jul 10, 2018 at 5:42 PM Mark Wieder via use-livecode < use-livecode@lists.runrev.com> wrote: > On 07/10/2018 02:40 PM, Mike Bonner via use-livecode wrote: > > Mostly i'm looking to learn how things work, but the end goal is to a) > have > > a fro

Re: Docker

2018-07-10 Thread Mike Bonner via use-livecode
Love that its a childrens guide. Definitely my speed. On Tue, Jul 10, 2018 at 6:00 PM Mike Bonner wrote: > Thank you! > > On Tue, Jul 10, 2018 at 5:42 PM Mark Wieder via use-livecode < > use-livecode@lists.runrev.com> wrote: > >> On 07/10/2018 02:40 PM, Mike Bo

Re: Docker

2018-07-11 Thread Mike Bonner via use-livecode
If I make any real progress, I'll definitely write things down. Honestly, not sure how far I'll get, seems that every time I feel good enough to resume working on projects, the bad health truck parks on my face again. *grins from underneath a wheel* Wow what a morning I've been having. Sorry for

Re: Docker

2018-07-11 Thread Mike Bonner via use-livecode
livecode@lists.runrev.com> wrote: > On 7/11/18 12:33 PM, Mike Bonner via use-livecode wrote: > > Sorry for the whine. > > You've been here long enough that you're entitled to a whine. I believe > there's a participation quotient for those. >

Re: Docker

2018-07-11 Thread Mike Bonner via use-livecode
ock quark > > gate. > > > > On Wed, Jul 11, 2018 at 12:30 PM J. Landman Gay via use-livecode < > > use-livecode@lists.runrev.com> wrote: > > > >> On 7/11/18 12:33 PM, Mike Bonner via use-livecode wrote: > >>> Sorry for the whine. > >&

Re: Docker

2018-07-11 Thread Mike Bonner via use-livecode
They'll be more annoyed that their car isn't where they left it. Of course if they understand sock science, maybe they'll go look for it in the dryer. On Wed, Jul 11, 2018 at 6:09 PM Mark Wieder via use-livecode < use-livecode@lists.runrev.com> wrote: > On 07/11/2018 03:18 PM, Bob Sneidar via us

Re: drawing a Barcode without a Barcode font

2018-07-19 Thread Mike Bonner via use-livecode
Not sure if it will work for your purpose, but as a test I created for graphic lines, 1 narrow black, 1 wider black, duplicated them and set the blendlevel of the copies so that they're transparent. Grcs are named narrowB, wideB, narrowC and wideC (b for black, c for clear) Then used the followin

Re: drawing a Barcode without a Barcode font

2018-07-20 Thread Mike Bonner via use-livecode
he last grc to tBarTopLeft > else >set the topleft of the last grc to horAdjust(tHorAdjust) > end if > break > end switch > put the short id of the last grc into tLast -- the id of the most > recently placed bar >

Re: drawing a Barcode without a Barcode font

2018-07-20 Thread Mike Bonner via use-livecode
Hey Mark (or anyone?) Feel like writing up a widget for this (with lots of comments) as an instructional? (Plus the fact that it'd be a very useful widget in its own right) BTW wow. I toss out a short little ugly hunk of code and you all make it into something so much better. On Fri, Jul 20, 201

Re: Data Persistence

2018-07-27 Thread Mike Bonner via use-livecode
Your Bran. will be assimilated. (borg zombies FTW) On Fri, Jul 27, 2018 at 3:39 PM J. Landman Gay via use-livecode < use-livecode@lists.runrev.com> wrote: > On 7/27/18 12:47 PM, John McKenzie via use-livecode wrote: > > Tom, thank you for welcoming me. Much different than some online >

Re: Data Persistence

2018-07-27 Thread Mike Bonner via use-livecode
On the subject of sqLite/memory databases and preferences/data persistence, rather than using an array, and doing the encode/decode stuff, would it make sense to do the following.. 1. open an empty in memory database 2. attach a disk based database 3. copy the required table(s) from disk base to me

Re: Problem saving image for file

2018-07-28 Thread Mike Bonner via use-livecode
If you use the path /tempMedia that forces it to the root of the filesystem and if there isn't a folder /tempmedia, it'll fail. Either leave off the preceding slash, or prepend it with a . <--(a dot) which designates the current directory. On Sat, Jul 28, 2018 at 3:40 PM Peter Bogdanoff via u

Re: Problem saving image for file

2018-07-28 Thread Mike Bonner via use-livecode
> mentioned, that I saw, in the docs. > > Thanks again! > > Steve > > > On Jul 28, 2018, at 5:52 PM, Mike Bonner via use-livecode < > use-livecode@lists.runrev.com> wrote: > > > > If you use the path /tempMedia that forces it to the root of the > >

Re: set the filename of image bug?

2018-07-29 Thread Mike Bonner via use-livecode
If it works for Klaus, and fails for you, it makes me wonder if something has gotten munged in the imgUrl variable. You might try putting an "answer imgUrl" (or use the variable inspector) to confirm that everything looks right. (worked fine for me too) On Sun, Jul 29, 2018 at 10:39 AM Stephen M

Re: set the filename of image bug?

2018-07-29 Thread Mike Bonner via use-livecode
If you think the stack is corrupted, you might send it to supp...@livecode.com so they can look at it, and/or post a bug report and include the stack there so that it can be looked at. (assuming there is nothing sensitive in the stack) On Sun, Jul 29, 2018 at 11:24 AM Stephen MacLean via use-livec

Re: Local images and the browser widget

2018-07-29 Thread Mike Bonner via use-livecode
If you just need to see the image, you can do it by changing your method.. Instead of setting the htmltext, it should work to set the url to " http://Users/steve/Dropbox/ITB%20pubEngine/tempMedia/99578 6d6-4429-4821-8b21-8e811289e12c.jpg" I'm not expert, but I think there is some type of cross-d

Re: Local images and the browser widget

2018-07-29 Thread Mike Bonner via use-livecode
Sorry, that should have been.. Set the url to "file :///Users/steve/Dropbox/I TB%20pubEngine/tempMedia/995786d6-4429-4821-8b21-8e811289e12c.jpg" On Sun, Jul 29, 2018 at 3:03 PM Mike Bonner wrote: > If you just need to see the image, you can do it by changing your

Re: Local images and the browser widget

2018-07-29 Thread Mike Bonner via use-livecode
uction as > everything will be served via a web server, but I was hoping to see this > for testing. > > I will be looking to the new http server LC has as I will need it anyway > for doing some API things with this engine. > > Thanks again to all! > > Best, > Steve >

Re: Data Persistence

2018-07-30 Thread Mike Bonner via use-livecode
Yes wrote: > Wait, you can attach a disk based database to a memory database?? > > Bob S > > > > On Jul 27, 2018, at 15:19 , Mike Bonner via use-livecode < > use-livecode@lists.runrev.com> wrote: > > > > On the subject of sqLite/memory databases and

Re: Data Persistence

2018-07-30 Thread Mike Bonner via use-livecode
n Mon, Jul 30, 2018 at 8:51 AM Mike Bonner wrote: > Yes > > On Mon, Jul 30, 2018 at 8:45 AM Bob Sneidar via use-livecode < > use-livecode@lists.runrev.com> wrote: > >> Wait, you can attach a disk based database to a memory database?? >> >> Bob S >> &

Re: Data Persistence

2018-07-30 Thread Mike Bonner via use-livecode
t 8:45 AM Bob Sneidar via use-livecode < >> use-livecode@lists.runrev.com> wrote: >> >>> Wait, you can attach a disk based database to a memory database?? >>> >>> Bob S >>> >>> >>> > On Jul 27, 2018, at 15:19 , Mike Bonner via

Re: Too fundamental to be a bug, so what's wrong?

2018-07-30 Thread Mike Bonner via use-livecode
You have to declare it as a global in every script where you use it. It sounds like thats whats going on here. On Mon, Jul 30, 2018 at 2:10 PM tbodine via use-livecode < use-livecode@lists.runrev.com> wrote: > Hi all. > I have a global array containing the value 4. It's stored in > gTSsettings[

Re: Data Persistence

2018-07-30 Thread Mike Bonner via use-livecode
e into memory? > > Bob S > > > > On Jul 30, 2018, at 08:19 , Mike Bonner via use-livecode < > use-livecode@lists.runrev.com> wrote: > > > > Doh. Been a bit since I did it. Its-- ATTACH DATABASE pathtodb.db as > dbname > > >

Re: Using the $_POST global in LiveCode server

2018-08-02 Thread Mike Bonner via use-livecode
I don't really understand what I've read yet, but I think what you're looking for is Post/Redirect/Get (prg) Basically.. Accept the post, process it, redirect to another page without the post. (One example I read basically placed the generated html into a session variable and displayed it after th

Re: Using the $_POST global in LiveCode server

2018-08-02 Thread Mike Bonner via use-livecode
Its been a while since I messed with sessions, but that looks right. I seem to vaguely remember that there is some version of LC server where sessions is broken, but I can't recall for sure. What version of server are you running? (IIRC sessions was implemented some time around 4.6.3? And a lat

Re: Using the $_POST global in LiveCode server

2018-08-02 Thread Mike Bonner via use-livecode
Version 7.1.0 doesn't seem to work. (the version used by on-rev.) Pretty sure its been in this non-working condition for a while. (again, my faulty memory might be wrong) I'll try and set up a test for later versions, but pretty sure things were still working in the 6.x range of server engines

Re: Using the $_POST global in LiveCode server

2018-08-03 Thread Mike Bonner via use-livecode
Still haven't got a test set up. So trying the quicker easier way.. Hey everyone, in which versions of server are sessions not broken? On Thu, Aug 2, 2018 at 6:17 PM Mike Bonner wrote: > Version 7.1.0 doesn't seem to work. (the version used by on-rev.) Pretty > sure its been in this non-worki

Re: Data Persistence

2018-08-04 Thread Mike Bonner via use-livecode
Putting text into a field pro-grammatically doesn't fire the openfield and closefield handlers so yes, you'd need to add code to your button. You can either write the code directly, or you can use send (or dispatch) and have the field do it.. IE send "closefield" to field "whateverfield"... But

Re: on-rev servers

2017-08-12 Thread Mike Bonner via use-livecode
My sites are up on diesel. ( http://thomascustomlures.com/ ) and I can get to the main on-rev page, but it looks like andres site is either down, or on a different server. (the on-rev page was SLOW to load) On Sat, Aug 12, 2017 at 12:48 PM, Richmond Mathewson via use-livecode < use-livecode@list

Re: Couple of questions about the browser widget

2017-08-15 Thread Mike Bonner via use-livecode
For the second question, if your htmltext contains a javascript function that returns document.body.scrollHeight you should be able to get the height that way.I'm not any good at javascript, but how it would probably work would be to have something like this.. window.onload = function(e){

Re: Couple of questions about the browser widget

2017-08-15 Thread Mike Bonner via use-livecode
; Terry... > > On 16/08/2017 10:23 am, "use-livecode on behalf of Mike Bonner via > use-livecode" use-livecode@lists.runrev.com> wrote: > > For the second question, if your htmltext contains a javascript > function > that returns document.body.scroll

Re: Couple of questions about the browser widget

2017-08-16 Thread Mike Bonner via use-livecode
Ty HH and jonathan, its working now for me. Terry: I have this in my temporary file.. Hi! window.onload = function(e) { liveCode.lcHeight(document.body.scrollHeight); } It loads my picture fine, and (now that i have capitalization right.. DOH) it sends a livecode message called lcHeight wh

Re: Couple of questions about the browser widget

2017-08-16 Thread Mike Bonner via use-livecode
ect that (or vScrollbar) in the property editor – or change them via > script (both are stuck on true). > > Thanks, > > Terry... > > On 16/08/2017 11:49 pm, "use-livecode on behalf of Mike Bonner via > use-livecode" use-livecode@lists.runrev.com> wrote: &

Re: Couple of questions about the browser widget

2017-08-16 Thread Mike Bonner via use-livecode
. Still, it seems like a bug? Interestingly, > under 8.1.4 both vScrollbar and hScrollbar are checked in the property > inspector (and stuck like that) while on 8.1.6 they are both unchecked (and > stuck like that). > > Regards, > > Terry... > > On 17/08/2017 6:

Re: keeping keys of an array in the order they came in?

2017-08-19 Thread Mike Bonner via use-livecode
Have a separate list, or a special key that holds your list of keys. put empty into tArray repeat for each line tLine in tData put item 2 of tLine into tKey if tKey = EMPTY then next repeat put tLine & CR after tArray[tKey] put tKey & cr after tarray['myKeyList'] end repeat Then when you need to

Re: Completely OT - flat earth

2017-08-22 Thread Mike Bonner via use-livecode
For some reason, I like this guys humor.. https://www.youtube.com/watch?v=KvAk9718Jo8&t=201s On Tue, Aug 22, 2017 at 9:15 AM, Jonathan Lynch via use-livecode < use-livecode@lists.runrev.com> wrote: > They have described me as a "flat earth denier" and a "globetard" - so > clearly they have constr

Re: Goofy question #7234

2017-08-23 Thread Mike Bonner via use-livecode
Old question but.. since its a function, whether you use do or not, gotta have the () at the end. On Wed, Aug 23, 2017 at 8:57 AM, Jonathan Lynch via use-livecode < use-livecode@lists.runrev.com> wrote: > Sorry - old message that randomly popped up in my email! > > Sent from my iPhone > > > On A

Re: Search Values of Array in "One Go"

2017-08-23 Thread Mike Bonner via use-livecode
I'm with bob on this.. If for some reason you can't use the database that produced the array, shove the data into an sqlite db instead. In memory, or if you need persistence a db file. Alternatively, if you store your data flat rather than in an array. Then you can repeat for each line tline i

Re: Search Values of Array in "One Go"

2017-08-23 Thread Mike Bonner via use-livecode
I think you need to use ":memory:" as the name actually. It looks (from the sqlite docs) that supplying no name creates a temporary db file. And now i'm curious.. Is there a way to attach the file based db to a memory db? IE Open the file database, then use the info here: https://www.sqlite.org/l

  1   2   3   4   >