Search found 140 matches
- Sat Nov 05, 2016 10:46 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: drawing a polygon around objects
- Replies: 4
- Views: 4352
Re: drawing a polygon around objects
:D :D Thanks, again. I had arrived at a similar, less elegant solution: on mouseUp put fld "filiaciones" into filiaciones repeat with x = 1 to the number of lines of filiaciones put line x of filiaciones into lalin put "" into losRects repeat for each item elit in lalin put the rectangle of fld (eli...
- Sat Nov 05, 2016 9:53 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: drawing a polygon around objects
- Replies: 4
- Views: 4352
Re: drawing a polygon around objects
:shock: :D :D Once again , I stand in awe at the solution. Thanks so much hh!. It's pretty late here, so I'll spend the first hours of the day of tomorrow enjoying your code. However, as it stands, the code is not flawless: I implemented it thusly: on mouseUp put fld "myFields" into myFields --each ...
- Fri Nov 04, 2016 6:31 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: drawing a polygon around objects
- Replies: 4
- Views: 4352
drawing a polygon around objects
Hi all, I need to build a polygon around an irregullarly distributed group of fields (any number of fields), and make this polygon as fit as possible. I know this is a beautiful exercise in coding, but before giving it the time it really deserves I'll dare to ask: Is there already an algorithm to do...
- Thu Jul 28, 2016 5:50 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: UNIX linebreaks in Mac OS
- Replies: 6
- Views: 4157
Re: UNIX linebreaks in Mac OS
Thanks Klaus, FourthWorld; you both made my day. Both ways work like a charm. Alas, for very large files (I mean a monster of 700MB) the option of opening in binary and use the read/write is much faster that using the url binfile option, so I used the former. Thanks again.
- Thu Jul 28, 2016 4:58 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: UNIX linebreaks in Mac OS
- Replies: 6
- Views: 4157
Re: UNIX linebreaks in Mac OS
Thanks. I am using the old open file, write to file, close file method. Is that important?
- Thu Jul 28, 2016 4:48 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: UNIX linebreaks in Mac OS
- Replies: 6
- Views: 4157
UNIX linebreaks in Mac OS
Hi everyone! How can I write to a file im MacOs with unix line-breaks? I see that there's no use in using replace numToChar(13) with numToChar(10) in container or replace numToChar(13) with linefeed in container before exporting it to a file, because LC will translate it into mac linebreaks. I need ...
- Thu Jun 23, 2016 6:14 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Scrolling card
- Replies: 3
- Views: 2863
Re: Scrolling card
Thanks you both very much. You gave me the solution.
- Thu Jun 23, 2016 1:02 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Scrolling card
- Replies: 3
- Views: 2863
Scrolling card
Hi, I have a stack with just one card. This card contains many objects and the user can create more of these. The objects in the card are groups of fields and graphics (think of a mind-mapper app). At some point there's more objects in the card that can fit the screen of a laptop mac, so I need to c...
- Tue May 17, 2016 8:37 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Tree builder from XML
- Replies: 2
- Views: 2344
Re: Tree builder from XML
Great! In fact this is the first reason I know of to swift to 8.
Thanks a lot
Thanks a lot
- Fri May 13, 2016 11:35 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Tree builder from XML
- Replies: 2
- Views: 2344
Tree builder from XML
HI all,
Did anybody ever wrote a function to draw a tree (lines for branches, etc.) from the contents of an XML document?
best,
Daniel
Did anybody ever wrote a function to draw a tree (lines for branches, etc.) from the contents of an XML document?
best,
Daniel
- Fri Mar 18, 2016 12:07 pm
- Forum: Databases
- Topic: regular expressions in SQLite
- Replies: 1
- Views: 2970
regular expressions in SQLite
Hi all, I submitted this very question to the newbies board, but maybe this is the right place to do it. My apologies for the crossposting. I think in order to be able to make queries on a SQLite database using regular expressions you need a function called regexp; and in order to use this function ...
- Thu Mar 17, 2016 10:40 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Regular expressions in SQL in LC
- Replies: 1
- Views: 2125
Regular expressions in SQL in LC
Hi all, I think in order to be able to make queries on a SQLite database using regular expressions you need a function called regexp; and in order to use this function you need to compile a dynamic library extension. I could be wrong in every respect, of course, but if not, How can you compile such ...
- Mon Mar 14, 2016 11:25 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: SQLite and Unicode
- Replies: 4
- Views: 4226
Re: SQLite and Unicode
Thanks Daniel. It works!
- Mon Mar 14, 2016 9:25 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: SQLite and Unicode
- Replies: 4
- Views: 4226
Re: SQLite and Unicode
OK, I'll answer myself (and anybody with the same problem): before querying the database (let's say data was introduced in UTF8) you "textencode" the string to search with a SELECT statement, like put textEncode(searchText,"UTF8") into searchText and you textdecode the results put textDecode(textFou...
- Mon Mar 14, 2016 2:16 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: SQLite and Unicode
- Replies: 4
- Views: 4226
SQLite and Unicode
First, my apologies if this question is trivial or if it's been answered 100 times already. I have a sqlite database with text in unicode utf16. When I use it with programs like SQLiteStudio there's no problem with the database. However, from LiveCode I can't query the database for text in Unicode (...