Search found 36 matches

by tusa
Thu Oct 26, 2017 7:01 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: extract data from socket?
Replies: 4
Views: 4215

Re: extract data from socket?

With that piece of code I now managed to get the two lines:
<instance name="f1" type="CasparTextField"/>
<instance name="f0" type="CasparTextField"/>
inside a field, but i need pass the "f0" and "f1" on two lines in a datagrid.
So I guess I have to extract only what's inside the instance name ...
by tusa
Wed Oct 25, 2017 5:15 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: extract data from socket?
Replies: 4
Views: 4215

extract data from socket?

Hello.

Right now i'm able to send a command to a socket and I recieve this:
201 INFO TEMPLATE OK
<?xml version="1.0" encoding="utf-8"?>
<template version="2.0.0" authorName="Tue Sandbæk" authorEmail="tue@broadcastsupport.dk" templateInfo="TV SYD, KV17 credit" originalWidth="1920" originalHeight ...
by tusa
Tue Oct 24, 2017 10:37 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: [SOLVED] list of files with foldername on files in subfolder
Replies: 9
Views: 8080

Re: list of files with foldername on files in subfolder

Klaus wrote: Tue Oct 24, 2017 9:25 pm Hi tusa,

I would simply:

Code: Select all

...
replace ".html" with EMPTY in fld "FileList"
replace ".ft" with EMPTY in fld "FileList"
...
But only because I have no idea of regex :D


Best

Klaus
So simple, but it works!
Thank you.
by tusa
Tue Oct 24, 2017 8:56 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: [SOLVED] list of files with foldername on files in subfolder
Replies: 9
Views: 8080

Re: list of files with foldername on files in subfolder

This was my solution, that works just the way I expect:
# Pops up a dialog box letting the user select a folder
answer folder "Vælg mappe"

## Check if user cklicked CANCEL!!
if it = EMPTY then
exit menuPick
end if

# Set the default folder to the folder selected by the user
# (this is ...
by tusa
Tue Oct 24, 2017 2:23 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: [SOLVED] list of files with foldername on files in subfolder
Replies: 9
Views: 8080

Re: list of files with foldername on files in subfolder

Right now my List i showing all files like this:
file_1.ft
file_2.ft
file_3.ft
file_in_subfolder_2.ft
file_in_subfolder_2.ft
file_in_subfolder_2.ft

I wan't it to show this:
file_1.ft
file_2.ft
file_3.ft
subfolder/file_in_subfolder_2.ft
subfolder/file_in_subfolder_2.ft
subfolder/file_in_subfolder_2 ...
by tusa
Tue Oct 24, 2017 5:51 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: [SOLVED] list of files with foldername on files in subfolder
Replies: 9
Views: 8080

[SOLVED] list of files with foldername on files in subfolder

Hello

I have an open button, and when I click on it I can choose a folder and get a list of all the files in it, including subfolders.

# Pops up a dialog box letting the user select a folder
answer folder "Vælg mappe"

# Set the default folder to the folder selected by the user
# (this is ...
by tusa
Mon Apr 03, 2017 4:42 pm
Forum: Talking LiveCode
Topic: datagrid won't work as livecode-file?
Replies: 14
Views: 11662

Re: datagrid won't work as livecode-file?

Then how do I include the answer extension in the standalone?
by tusa
Mon Apr 03, 2017 6:28 am
Forum: Talking LiveCode
Topic: datagrid won't work as livecode-file?
Replies: 14
Views: 11662

Re: datagrid won't work as livecode-file?

It's not the standalone application.
I'm running it with a splash launcher, because I need opptunity too save the date before I close the app.
So it is the livecode stack file.
by tusa
Sun Apr 02, 2017 8:03 am
Forum: Talking LiveCode
Topic: datagrid won't work as livecode-file?
Replies: 14
Views: 11662

Re: datagrid won't work as livecode-file?

Could it be related to my answer dialog box?
If I just use this piece of code:

Code: Select all

on mouseUp
   set the dgData of group "seqGrid" to empty
   end mouseUp
there is no problem.

Maybe that's why I don't get the dialog box when I save the stack also?
by tusa
Sun Apr 02, 2017 7:42 am
Forum: Talking LiveCode
Topic: datagrid won't work as livecode-file?
Replies: 14
Views: 11662

Re: datagrid won't work as livecode-file?

Delete line is no problem:
on mouseUp
put the dgHilitedIndex of group "seqGrid" into theIndex
send "DeleteIndex theIndex" to the dgControl of group "seqGrid"
end mouseUp

But delete the whole stuff is not working when I use a launcher:
on mouseUp
answer question "Er du sikker på at du vil ...
by tusa
Sun Apr 02, 2017 2:17 am
Forum: Talking LiveCode
Topic: datagrid won't work as livecode-file?
Replies: 14
Views: 11662

Re: datagrid won't work as livecode-file?

I've found this:
http://lessons.livecode.com/m/datagrid/ ... -data-grid

Now I can use the datagrid, and now I can delete a line ind the datagrid but not delete all data?
I even can't save stack...
by tusa
Sun Apr 02, 2017 12:55 am
Forum: Talking LiveCode
Topic: datagrid won't work as livecode-file?
Replies: 14
Views: 11662

datagrid won't work as livecode-file?

I've made an application with a datagrid in.
When I save as an standalone application every thing works fine.
When I just save it as a livecode-file the datagrid wo'nt get any data in?
What do I miss?
by tusa
Wed Mar 22, 2017 2:35 pm
Forum: Talking LiveCode
Topic: number of items?
Replies: 4
Views: 4489

Re: number of items?

Thank you, that solved my problem.
I did only use part of your suggestion, but that was what I needed.
by tusa
Wed Mar 22, 2017 11:01 am
Forum: Talking LiveCode
Topic: number of items?
Replies: 4
Views: 4489

number of items?

Can I count the numbers of items after setting the item delimiter?
by tusa
Wed Mar 15, 2017 2:15 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: store and compare data in variable?
Replies: 11
Views: 14764

Re: store and compare data in variable?

For now I have 5 groups, but I need 2 more.
I did'nt have time to try it out yet.