I really appreciate the LiveCode communities response to 1001 things to do with
LiveCode. Thanks to all the contributors, my small seed of an idea has
blossomed into a beautiful tree. I need a little help to keep our tree growing
at a steady rate.
I have a backlog of about two weeks worth of
Tried everything I can think of call, send, value, even the
executioncontexts - there is simply no way you can code this in the script
of the background (or the groups behavior). makes no difference if it is
just a shared group or a background. It comes down to the target always
referencing the
Try this:
- create a new stack with a button test and a field f
- group them in group g
- set the backgroundbehavior of group g to true
- create 2 new cards -- the group will be placed on all 3 cards
- put one into fld f of card 1, two into fld f of card 2, three into
fld f of card 3
- create a
Thanks Peter - but no it does not help. Lets take your example, but what we
want to do is give the group a (virtual) custom property that a developer
can call from anywhere in the environment to retrieve the text in the
field. You can't hard code anything like you have fld f of card 2 - as
you
I wonder if anybody can tell me why this works as a stack, but doesn't
as a standalone:
on mouseUp
---
set the lockScreen to true
delete file BacktUp.rtf
if fld DoneText of card Entry of stack RWord is not empty then
set the vis of img SAVE to true
set the lockScreen to
Richmond wrote:
I wonder if anybody can tell me why this works as a stack, but
doesn't as a standalone:
on mouseUp
---
set the lockScreen to true
delete file BacktUp.rtf
if fld DoneText of card Entry of stack RWord is not empty then
set the vis of img SAVE to true
Depending on the OS, if you happen to have the file open in another
application, you won't be able to write to it. Check that. Also, try
adding
set the defaultFolder to specialFolderPath(Desktop)
at the beginning of the script. Or, any defined path.
Just a note... you can simply say lock
On 03/30/2013 05:22 PM, Richard Gaskin wrote:
Richmond wrote:
I wonder if anybody can tell me why this works as a stack, but
doesn't as a standalone:
on mouseUp
---
set the lockScreen to true
delete file BacktUp.rtf
if fld DoneText of card Entry of stack RWord is not
Richmond wrote:
On 03/30/2013 05:22 PM, Richard Gaskin wrote:
...
What do you see when you run it after adding this line immediately
below the one that writes the file?:
answer RESULT: the result SYSERR: sysError()
RESULT: SYSERR: 2
Which OS?
On Windows I believe 2 refers to an
I am using custom properties with check boxes. How do you set the text style of
a custom property field? I want to set the text style of a custom property to
bold.
Charles Szasz
csz...@mac.com
___
use-livecode mailing list
On 03/30/2013 06:33 PM, Richard Gaskin wrote:
Richmond wrote:
On 03/30/2013 05:22 PM, Richard Gaskin wrote:
...
What do you see when you run it after adding this line immediately
below the one that writes the file?:
answer RESULT: the result SYSERR: sysError()
RESULT: SYSERR: 2
Hello LC's,
I have a tab delimited text file(log file) that I need to manipulate every
once in a while and extract data from it. Is there a good way to read this
directly into a datagrid and manipulate it from there or I am better off
reading the file, loading it into a sqlite db and THEN
Why not just put the file into a variable, set the item delimiters to tab and
away you go?
Just query the items of the first line to understand your (changing) column
labels?
Best,
Keith..
On 30 Mar 2013, at 17:54, Magicgate Software - Skip Kimpel s...@magicgate.com
wrote:
Hello LC's,
I
I've added iOS and Android push notifications to a stack I've been
working on. When sending notifications to my android device, the
message displayed when the notification arrives is 'Notification
received'. Does anyone know how to change (if possible) this message to
something more
set the dgtext of group yourgroup to URL (binfile:/path/to/the/file)
should work. dgtext works directly with tab and cr delimited text, so
should be easy peasy.
On Sat, Mar 30, 2013 at 12:04 PM, Keith Clarke
keith.cla...@clarkeandclarke.co.uk wrote:
Why not just put the file into a variable,
Hi Skip,
On the face of it, reading it into a variable and setting the dgText of the
datagrid to the variable seems like the simplest approach. I guess you
might make a case for using an in-memory sqlite database depending on the
volume of data and the complexity of the manipulations you want to
and if the first line contains the names of the individual fields on the
first row, you can
put the dgText[true]
On Sat, Mar 30, 2013 at 12:03 PM, Mike Bonner bonnm...@gmail.com wrote:
set the dgtext of group yourgroup to URL (binfile:/path/to/the/file)
should work. dgtext works directly
Thanks.. I had tried that but I was getting some funky data formatting
coming in. Come to find out that the data in the log file has an
occasional misplaced CR and LF embedded.
Having said THAT, is there a way to strip out those characters? I know
exactly how many columns I have in my field and
you just said it
On Sat, Mar 30, 2013 at 10:20 AM, Charles Szasz csz...@me.com wrote:
I am using custom properties with check boxes. How do you set the text
style of a custom property field? I want to set the text style of a custom
property to bold.
Charles Szasz
csz...@mac.com
not sure what you mean by a 'custom property field' actually...
you can store anything in a custom property , but that's DATA.
You can store the text data in a CP then put it into a field , then set the
text.
YOu could also store into a CP what goes into a field using HTML or RTF
text, which
Charles,
Not sure I totally understand what you need, a custom property is just a
container so you can't set it's text style to anything, but to store text
styles alongside the text data you could store the data as an array, maybe
something like;
To store the data…
set the cPropA[label]
Hi,
I'm working on a windows application that relies a lot on database qeuries.
Both reading and writing of data.
On the server side I use php scripts.
In my application I use syntax like Put URL tURL into tResult.
It all works well, but I am the only user on the database.
I am wondering what
I think it will be easier to go back and try to fix the source and how the
data is being entered in to begin with. I realized there was a issue with
one of the fields that allowed the user to enter multiple lines of data
under the notes field. If the user hit the RETURN key to type in these
This script works ok in about displaying what's needed instead of Notification
received ($abstract) :
?php
$registrationIDs = Array(###devices###);
$title= ###title###;
$abstract = ###abstract###;
$payload =
One last item... once again, it comes improperly formatted source data.
When the datagrid loads I need to sort it by date and then by time.
However, my date and time data looks like this: Mon, Feb 11 TAB9:59
AM
What would be a good approach to convert these two items to a sortable
format?
Thanks chaps, but after some thought I went for a completely different
way of doing things
and had the stack save a backup RTF document every time the end-user
pressed a key on her/his
(and I really should apologise that I am not entirely sure how to signal
that I should like to include the
just say LGBT community. Easier.
On Sat, Mar 30, 2013 at 1:31 PM, Richmond richmondmathew...@gmail.comwrote:
Thanks chaps, but after some thought I went for a completely different way
of doing things
and had the stack save a backup RTF document every time the end-user
pressed a key on
Skip,
Alex Tweedly has a great handler for importing csv files that deals with
many of the gnarly issues. Hopefully he'll see this and supply it for you.
Pete
lcSQL Software http://www.lcsql.com
On Sat, Mar 30, 2013 at 12:38 PM, Magicgate Software - Skip Kimpel
s...@magicgate.com wrote:
I
Excellent... Thank you Pete...
Alex, would you be so kind to share?
SKIP
On Sat, Mar 30, 2013 at 4:37 PM, Peter Haworth p...@lcsql.com wrote:
Skip,
Alex Tweedly has a great handler for importing csv files that deals with
many of the gnarly issues. Hopefully he'll see this and supply it
Of course. You can find it best in Richard's excellent article about the
evils of CSV format, at
http://www.fourthworld.com/embassy/articles//csv/-/must/-/die/.html
It does deal with many of the vagaries, but won't do anything about
records with different number of fields (I think that was
Thank you!
http://www.fourthworld.com/embassy/articles/csv-must-die.html
On Sat, Mar 30, 2013 at 5:42 PM, Alex Tweedly a...@tweedly.net wrote:
Of course. You can find it best in Richard's excellent article about the
evils of CSV format, at
Thanks, Pierre. The 'title' and 'body' keys in the 'data' payload
section did the trick. I'm not getting any badge or sound (yet) - still
looking into it.
Here's a LiveCode version for anyone interested (and a little json encoder)
on mouseUp
# devices to send to (up to 1000)
put your
On 3/30/13 5:54 AM, David Bovill wrote:
Tried everything I can think of call, send, value, even the
executioncontexts - there is simply no way you can code this in the script
of the background (or the groups behavior). makes no difference if it is
just a shared group or a background. It comes
Back to my sorting issue with date and time, quite honestly, the log file
is already sorted I just need to have the DataGrid display it as it was
read into the system with out trying to do additional sorting. Is there a
way to sort, for instance, by some itemID number that the DataGrid
Datagrids assign a unique dgIndex which stays constant for each line after
they're sorted but I don't recall any automated way to sort by it. Maybe
you could just add a column to the input after you read it from your file
with an incrementing number in it so it would end up as a column in the
So the dgIndex is assigned after it is read in and sorted? I am using the
simple technique of:
put C:\Users\Skip\Desktop\myLog.log into it
put url (file: it) into theData
set the dgText of group MyGrid to theData
Looks like I might need to approach this thing differently if I want to
read
Hmm. Not sure why its forcing your hand as far as sorting goes in the
inspector. Assuming you're defined your column names theres a checkbox
down low in the sorting section for each column, and to get no sorting I
just make sure theres no check in the box for each column. (which is the
same thing
So I found the column that was being forced into sorting. I deleted that
column and re-created it and voila! Pulling my hair out for something
like this drives me crazy!
One last thing, is there a way to have it scroll all the way down to the
bottom of the data contained within the DataGrid
if you put a routine in the closefield handler of the field that set a custom
property of the group in array form, eg, field_Text[cdNbr], then you can
retrieve this at any time from within the group, no matter where it is placed,
no? It won't be a setprop/getprop method, but should be pretty
set the dgVscroll of group yourgroup to pPercent where pPercent is in
the form of a number between 0 and 1.
Should be able to scroll it right to the bottom that way.
One last thing, is there a way to have it scroll all the way down to the
bottom of the data contained within the DataGrid
Is there any way I can populate a VideoPlayer with a videoClip that has been
imported.
I need to control its size, position and have it start as a still, play when
clicked and end as a still.
I also need the clips to be imbedded in the stack for portability. I still use
a Player to run the
On Mar 30, 2013, at 12:28 PM, John Allijn jall...@gmail.com wrote:
Hi,
I'm working on a windows application that relies a lot on database qeuries.
Both reading and writing of data.
On the server side I use php scripts.
In my application I use syntax like Put URL tURL into tResult.
It all
42 matches
Mail list logo