Search found 345 matches

by Lagi Pittas
Wed Feb 24, 2016 1:28 pm
Forum: Talking LiveCode
Topic: When was the big bang?
Replies: 7
Views: 2698

Re: When was the big bang?

It had to be a Thursday of all days , and Noon is about lunchtime too.

I never could get the hang of Thursdays either.

Lagi
by Lagi Pittas
Thu Feb 04, 2016 7:10 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Accessing variables across buttons
Replies: 6
Views: 1211

Re: Accessing variables across buttons

Hi what Klaus said, but ... Put all your handlers and globals in the stack or card script so you don't need to keep declaring the variables everywhere, since all the handlers will be in the same script and the globals will be at the top. you could be "clever" and have 1 mouseup handler and test for ...
by Lagi Pittas
Sat Jan 30, 2016 9:26 pm
Forum: Talking LiveCode
Topic: Odd script behaviour (aka Beware of Inline Coding)
Replies: 13
Views: 4135

Re: Odd script behaviour (aka Beware of Inline Coding)

Hi Jacque, In fact I had a longer response that listed the code with the semicolons as well but even with semicolons the else does not work on a single line, and although I could remember that in BASIC (BBC BASIC i'm 100% sure but not VB or others) the" if then else" conditional can be on 1 line. As...
by Lagi Pittas
Fri Jan 29, 2016 9:03 pm
Forum: Talking LiveCode
Topic: Odd script behaviour (aka Beware of Inline Coding)
Replies: 13
Views: 4135

Re: Odd script behaviour (aka Beware of Inline Coding)

HI All, I'll go into "Craig" or "Simon" Mode :wink: put the following in a button script and <press> on mouseUp if true then add 10 to tvar ; answer( "tvar = TEN : " && tVar ) ; add 5 to tVar; put " tvar = fifteen" && tvar end mouseUp This isn't a mistake - it was specifically programmed that way. T...
by Lagi Pittas
Fri Jan 29, 2016 7:51 pm
Forum: Talking LiveCode
Topic: javascript function to Encode the resulting 16 byte string
Replies: 3
Views: 1524

Re: javascript function to Encode the resulting 16 byte stri

HI Jose Checked the routines just before the "Then something really weird" and they return what Is expected. but here --put numToChar(i) into temp --put temp into fld"temp" get binaryDecode("b*",i,binary_i) put binary_i into fld "temp" repeat for each character tChar in binary_i if tChar = 1 then pu...
by Lagi Pittas
Mon Jan 25, 2016 2:57 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Point of sale system
Replies: 17
Views: 5183

Re: Point of sale system

Hi I went through all the manuals re-interpreted the timings and sent different codes , hieroglyphics, hex codes (decimal ASCII etc etc) and still got the sliver of paper which was not professional unless you are a supermarket and you print a receipt after every sale which my market doesn't. Tha's w...
by Lagi Pittas
Sat Jan 23, 2016 5:46 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Simulate a pendulum
Replies: 39
Views: 11715

Re: Simulate a pendulum

Hi

I just get a 404 not found error

Regards Lagi

... And now it works -- I tried 5 times
by Lagi Pittas
Fri Jan 22, 2016 8:58 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Point of sale system
Replies: 17
Views: 5183

Re: Point of sale system

Hi Da Elf, For anyone else trying to attach a cash draw to a POS system I have a bit of advice. 1. Don't use the totally USB based cashdraw kicker boxes - they change virtual com [port depending on the direction of the wind and if the SUN rises. 2. If your thinking of using the printer to do the "ki...
by Lagi Pittas
Fri Jan 22, 2016 5:29 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: !!! Stack File Corrupt?
Replies: 8
Views: 2848

Re: !!! Stack File Corrupt?

I was having MANY problems with crashing and a few stack corruptions way back when i was using 7.xx - I only use the latest 6.xx stable now. I wrote a script that ran in the background and saved the stack file with a different name and a timestamp - it became unwieldy but I digress. But to mitigate ...
by Lagi Pittas
Thu Jan 21, 2016 12:40 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: When "red" isn't red
Replies: 6
Views: 1613

Re: When "red" isn't red

Hi, I had the same problem - so I rolled my own to have more control Function Currency pnValue, pnDigits, pnDecimals Local lcFormat, lnReturnVal -- Fixes the problem that when subtractions to zero -- gives -0.0 in livecode, this makes it really zero if pnValue is zero then put 0 into pnValue end if ...
by Lagi Pittas
Thu Jan 21, 2016 12:29 pm
Forum: Talking LiveCode
Topic: javascript function to Encode the resulting 16 byte string
Replies: 3
Views: 1524

Re: javascript function to Encode the resulting 16 byte stri

Hi Unless I'm missing something this should do it. Function to64 v, n local lcStr put character 1 to n of v into lcStr return Base64Encode(lcStr) end to64 function to64_single v, idx0 return Base64Encode(character idx0 of v) end to64_single function to64_triplet v, idx0, idx1, idx2 local lcStr put c...
by Lagi Pittas
Sun Dec 27, 2015 1:23 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Help needed to get started
Replies: 5
Views: 1313

Re: Help needed to get started

Hi my twopence worth Don't learn with version 7 or version 8. use the 6.xx series. The only thing you will miss is widgets some extra html stuff and Unicode. Learn with version 6 and by the time you are in a position to use those other "options" hopefully any major slowdowns,bugs or showstoppers wil...
by Lagi Pittas
Mon Dec 07, 2015 6:14 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: BUG: Bug in combine on 6.x.x series ?
Replies: 3
Views: 811

Re: BUG: Bug in combine on 6.x.x series ?

Thanks Richard for that I thought as much but things going back over 8 years seemed a lot. and Craig ... Well first off I can skin a cat many ways - with a repeat a loop in this case. But to answer your question this came up because I found an old thread about combine "scrambling the order of split"...
by Lagi Pittas
Mon Dec 07, 2015 4:00 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: BUG: Bug in combine on 6.x.x series ?
Replies: 3
Views: 811

BUG: Bug in combine on 6.x.x series ?

Hi, I have tried to use combine <array> by empty but it always gives an error. If I use "" I get exactly the same error execution error at line x (Split: execution error in expression), char 1 I tried it both on 6.7.7 and 6.7.8 latest versions and it fails. I then tried it on 7.1 and no error. On a ...
by Lagi Pittas
Thu Sep 24, 2015 3:34 pm
Forum: Off-Topic
Topic: Livecode: observations
Replies: 5
Views: 3770

Re: Livecode: observations

My twopenny worth. @LCMARK I'm glad SOMEBODY from Livecode towers actually has responded here rather than lurking so here's my take for what it is worth. I looked at Livecode many moons ago when it was metacard (I actually used Hypercard years ago when I was an Apple Dealer, and was programming in U...

Go to advanced search