Search found 58 matches

by carel
Mon Mar 24, 2014 9:02 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Closing com port
Replies: 0
Views: 1436

Closing com port

I'll try to keep this as short as possible: I was at a guy that does engraving today - his engraving machine's LAN port got damaged by lightning, but I could help him set it up via a serial port, but the program he use is flawed (it works perfectly through the LAN port). He first reads dimensions fr...
by carel
Thu Feb 13, 2014 3:53 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Data storage
Replies: 4
Views: 2452

Re: Data storage

Thanks Simon, I think I must stop being so lazy and just learn SQL. Will all the clients be able to access the database by pointing it to \\server\share\database.mdb without sql running on the server? The server IS probably running sql, but I don't want my program to be reliant on any third-party se...
by carel
Wed Feb 12, 2014 2:25 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Data storage
Replies: 4
Views: 2452

Re: Data storage

I was just thinking about security and an alternative way of doing it. Security: Hidden share? - not very secure, but hey there is companies that has their whole accounting books in a normal shared folder. Give all the files .exe extension? (don't laugh) Alternative: Have a "server" program run on t...
by carel
Wed Feb 12, 2014 2:00 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Data storage
Replies: 4
Views: 2452

Data storage

I've written a little program for a school that runs on their network. I've done the following to store data: I create / edit a file on a network share called lessons.txt that looks like this: lesson name a*1 lesson name b*2 lesson name c*3 The * is the delimiter and the numbers in the second column...
by carel
Fri Feb 07, 2014 8:18 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Math problem
Replies: 8
Views: 4273

Re: Math problem

Thierry,

Can't you make it any shorter? - That is so much typing to do.

Just kidding :)

Thanks,

Carel
by carel
Thu Feb 06, 2014 6:26 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Math problem
Replies: 8
Views: 4273

Re: Math problem

Cool Thierry - now I learned two more things as well... format and after

Thanks,

Carel
by carel
Thu Feb 06, 2014 8:43 am
Forum: Talking LiveCode
Topic: Generating Random Numbers???
Replies: 13
Views: 10677

Re: Generating Random Numbers???

Thanks everyone - now I get the word/char -1 :)
by carel
Wed Feb 05, 2014 5:17 pm
Forum: Talking LiveCode
Topic: Generating Random Numbers???
Replies: 13
Views: 10677

Re: Generating Random Numbers???

Gerrie and Craig, That was not really my question, I did not know that it was "maths" happening. The formula would return random(6) + 4, and Craig you say there is a problem with random(5) + 5 - it will never return 5 ? The -1 confused me initially because of this: function Trim pText return word 1 ...
by carel
Wed Feb 05, 2014 4:40 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Math problem
Replies: 8
Views: 4273

Re: Math problem

Jean-Marc,

Thank you, I would've had a hundred lines of sloppy code to get the same result :)

Carel
by carel
Wed Feb 05, 2014 9:23 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Math problem
Replies: 8
Views: 4273

Math problem

I'm writing something for my son to help him (test him) with his math homework. He has to break numbers down into thousands, hundreds, etc. For example: he has a number 1234, then he must say the thousands are 1000, hundreds 200, tens 30, and units 4. I'm thinking of counting the number of character...
by carel
Wed Feb 05, 2014 8:53 am
Forum: Talking LiveCode
Topic: Generating Random Numbers???
Replies: 13
Views: 10677

Re: Generating Random Numbers???

Dixie,

Could you or anyone else explain this code please:

return random(upperLimit - lowerLimit + 1) + lowerLimit - 1

I know what it does but I don't understand it. I use similar code to remove spaces in front of a string which I also do not understand. (the -1 of ...)

Thanks,

Carel
by carel
Fri Jan 31, 2014 10:05 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Alternative to scrolling field
Replies: 14
Views: 7373

Re: Alternative to scrolling field

Thanks Klaus,

Then this whole exercise was (not entirely) pointless. I'll explore some more...

At least I got some more experience and learned new things while doing this which is always a good thing.

Thanks,

Carel
by carel
Thu Jan 30, 2014 6:09 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Alternative to scrolling field
Replies: 14
Views: 7373

Re: Alternative to scrolling field

Thanks Simon,

Never knew about it - looked it up in the dictionary.

I had a thought today - could one scroll a field with external (custom) buttons?

Carel
by carel
Wed Jan 29, 2014 6:53 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Alternative to scrolling field
Replies: 14
Views: 7373

Re: Alternative to scrolling field

OK, here is the test stack. BTW it is not a compressed file, just remove the ".rename.zip" The whole exercise is not for functionality - the standard scroll field on the right works perfectly. The whole idea is to make it look better for example, but nice icons on the up and down buttons. Any feedba...
by carel
Mon Jan 27, 2014 9:15 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Alternative to scrolling field
Replies: 14
Views: 7373

Re: Alternative to scrolling field

I think I'll just do it with the text field, and the way I imagine it in my head.

Can I upload 'n sample stack somewhere to get comments from you guys?

Thanks,

Carel

Go to advanced search