Search found 9 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: 10431
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 6:07 am
- Forum: Talking LiveCode
- Topic: Add Binary - 32 bits
- Replies: 15
- Views: 6176
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: 6176
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: 6176
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: 6176
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: 6176
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: 6176
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: 6176
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: 2732
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