Search found 14 matches
- Tue Aug 23, 2022 5:18 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Searching for all instances of a string
- Replies: 15
- Views: 13153
Re: Searching for all instances of a string
put CountText("APPROVED NO") into howmany function CountText data find whole data if the result = "not found" then return 0 put the foundChunk into firstPos put 1 into counter repeat find whole data put the foundChunk into secPos if firstPos = secPos then exit repeat add 1 to counter end repeat retu...
- Sun Jan 02, 2022 12:18 pm
- Forum: Bug Triage
- Topic: Number Bug
- Replies: 17
- Views: 682
Re: Number Bug
Maybe you guys are right and I'm wrong. But I don't see what the problem is because it should only be a memory problem not a math problem. When you add two numbers together all your doing is just adding units and then carrying over if needed.
- Sun Jan 02, 2022 10:50 am
- Forum: Bug Triage
- Topic: Number Bug
- Replies: 17
- Views: 682
- Sun Jan 02, 2022 6:25 am
- Forum: Bug Triage
- Topic: Number Bug
- Replies: 17
- Views: 682
Number Bug
Could someone please check this for me - It could be the LiveCode version I'm using π€ put (10000000000000000 + 1) = 10000000000000000 ? -- incorrect put (10000000000000000 + 2) = 10000000000000002 -- correct No wonder the numberFormat function doesn't work properly π There's heaps more put 100000000...
- Sun Jan 02, 2022 6:07 am
- Forum: Talking LiveCode
- Topic: Add Binary - 32 bits
- Replies: 15
- Views: 8646
Re: Add Binary - 32 bits
I'm only using LiveCode version 652 Cripes. π€£π€£π€£ Spot on richmond62πYes until I want to release something I'll pay for a licensed version. Another thing is I'm using a LiveCode PPC version running on a PowerPC G4 laptop with only 512 MB of ram. I think that was the last version for the PPC. It's jus...
- Sat Jan 01, 2022 7:12 am
- Forum: Talking LiveCode
- Topic: Add Binary - 32 bits
- Replies: 15
- Views: 8646
Re: Add Binary - 32 bits
I can live with this its slightly better than the previous function :) -- v0 = 00000000000000000000000000000000 -- v1 = 01011011111000001100110100011001 -- v2 = 00110101100001110010011100101011 -- output = 10010001011001111111010001000100 function ADDBINARY v0,v1,v2 repeat with c = 32 down to 1 put ...
- Sat Jan 01, 2022 1:50 am
- Forum: Talking LiveCode
- Topic: Add Binary - 32 bits
- Replies: 15
- Views: 8646
Re: Add Binary - 32 bits
v1 and v2 are 32 bit numbers If that means they are base 2 numbers then you can baseConvert then to decimal, add them, and then baseConvert the product back to binary. - btG.jpeg Thanks, I will give this another shot I think I had a problem with this, it wasn't converting to the correct length of b...
- Sat Jan 01, 2022 1:04 am
- Forum: Talking LiveCode
- Topic: Add Binary - 32 bits
- Replies: 15
- Views: 8646
Re: Add Binary - 32 bits
Thanks guys for your all your help I'm only using LiveCode version 652 so I don't have those inbuilt functions. It's okay I have it working so it is what it is 

- Sat Jan 01, 2022 12:48 am
- Forum: Talking LiveCode
- Topic: Add Binary - 32 bits
- Replies: 15
- Views: 8646
Re: Add Binary - 32 bits
Thanks for the info the only thing is I don't have those functions listed in the dictionary
- Fri Dec 31, 2021 7:40 pm
- Forum: Talking LiveCode
- Topic: Add Binary - 32 bits
- Replies: 15
- Views: 8646
Re: Add Binary - 32 bits
Hi Richard Happy New Year, Yes SHA-256 is not included in the LiveCode engine that's why I created my own functions to accomplish that. This is the last function I need to minimise to speed up the processing of the blocks. Maybe the inbuilt functions in LiveCode can't do what I need 

- Fri Dec 31, 2021 1:15 pm
- Forum: Talking LiveCode
- Topic: Add Binary - 32 bits
- Replies: 15
- Views: 8646
Add Binary - 32 bits
Hi Everyone, All the best in the new year and in the future :) I'm trying to reduce all the functions I have written for SHA-256. The add binary function I have written needs to be shortened as it gets called most of the time. Can anyone reduce this code using LiveCodes inbuilt functions? The functi...
- Fri Dec 31, 2021 11:47 am
- Forum: Talking LiveCode
- Topic: Infection Simulation
- Replies: 5
- Views: 3508
Re: Infection Simulation
All the best in the new year, just a suggestion could you introduce icons 32x32 pixels so it's more visual. An example could be infected = sad face vs not infected = happy face vs in-between
,
,:l


- Wed Dec 22, 2021 1:57 pm
- Forum: Bug Triage
- Topic: Text string bug
- Replies: 37
- Views: 5247
Re: Text string bug
Okay thanks, I see what's happening now
thats very interesting. Thank you for showing me an example I was going to get around it by converting the 3 characters to ascii numbers but your example is heaps better. Cheers
- Wed Dec 22, 2021 4:01 am
- Forum: Bug Triage
- Topic: Text string bug
- Replies: 37
- Views: 5247
Text string bug
Im checking if character 1 to 3 of text string = 000 it returns true for the following sets of 3 characters 0E0 0E1 0E2 0E3 0E4 0E5 0E6 0E7 0E8 0E9
Example: put "0E0" = "000' returns true - this should return false
Example: put "0E0" = "000' returns true - this should return false