Re: Object Referencing in LC 9.0.0
Here's the revised function call: on seSetObjectState objRef, objState if objRef is empty then pass seSetObjectState put the long id of objRef into t1 put the long id of btn "Lib" of cd "LibMgr" of stack "MasterLibrary" into t2 if t1 = t2 and objState = "applied" then send "updateMasterIndex" to cd "LibMgr" of stack "MasterLibrary" in 1 ticks end if pass seSetObjectState end seSetObjectState So it looks like the message was being received with objRef empty causing the issue. (I used my Script Tracker to generate a diff of v47 to v48 to find the change.) [This is more for anyone finding this thread in the future since Mike already found and fixed the issue.] On Tue, May 29, 2018 at 10:26 AM, Bob Sneidar via use-livecode < use-livecode@lists.runrev.com> wrote: > I cannot make heads nor tails of your post. The asterisks and words > running together make it impossible to read. > > Bob S > > > > On May 26, 2018, at 13:34 , Michael Doub via use-livecode < > use-livecode@lists.runrev.com> wrote: > > > > Can someone using 9.0.0 help me out? > > > > This used to work in LC 7 but now generates an error on the second line > (*put*thelongidofobjRef intot1). What is the new correct syntax? This > popped up in the MasterLibrary. > > > > -= Thanks > > Mike > > > > > > *on*seSetObjectState objRef, objState* > >put*thelongidofobjRef intot1 * > >put*thelongidofbtn"Lib"ofcd"LibMgr"ofstack"MasterLibrary"intot2* > >if* t1 = t2 andobjState = "applied"*then** > >send*"updateMasterIndex"tocd"LibMgr"ofstack"MasterLibrary" > in1ticks* > >end* *if** > >pass*seSetObjectState* > > end*seSetObjectState > > > > ___ > > use-livecode mailing list > > use-livecode@lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > ___ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Android USB port
its very rare that something is not possible i hope you find the help you need.. I have yet to use livecode for mobile dev desktop...different story.dunno if u've tried the forumthe (gitter) chatroom may also be good place to ask advanced questions too. On Sun, Jun 10, 2018 at 11:44 AM, Douglas Ruisaard via use-livecode < use-livecode@lists.runrev.com> wrote: > Thanks, Tom ... got a chuckle out of your reply! To be fair, Erik > Beugelaar *did* reply back on April 24 (I must have missed it) and > suggested looking into Jave FFI (supported by LC v9) for possible > methodologies. I have NO CLUE regarding Java... and, cynical as it may be, > I don't expect to be able to learn it at my age. I would be quite > interested in anyone with that ability and knowledge to assist ... quite > negotiable. I'm looking for (ideally) a native LC solution. Given the > scope and flexibility of LC, it's hard to imagine that there isn't a way to > access the Android USB port. > > Apple, if it isn't known, requires you to sell your first-born, sign a > contract in blood and then embed a "special" hardware chip in your device > in order to ALLOW USB connectivity. I'm good with using BlueTooth for > iOS... but Android has me stumped unless this community can lend a hand. > It'd be right-neighborly of ya to do so! > > > > > I can't help you but i loved your testimonial. > > > > Douglas Ruisaard > Trilogy Software > (250) 573-3935 > > > > ___ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Android USB port
Thanks, Tom ... got a chuckle out of your reply! To be fair, Erik Beugelaar *did* reply back on April 24 (I must have missed it) and suggested looking into Jave FFI (supported by LC v9) for possible methodologies. I have NO CLUE regarding Java... and, cynical as it may be, I don't expect to be able to learn it at my age. I would be quite interested in anyone with that ability and knowledge to assist ... quite negotiable. I'm looking for (ideally) a native LC solution. Given the scope and flexibility of LC, it's hard to imagine that there isn't a way to access the Android USB port. Apple, if it isn't known, requires you to sell your first-born, sign a contract in blood and then embed a "special" hardware chip in your device in order to ALLOW USB connectivity. I'm good with using BlueTooth for iOS... but Android has me stumped unless this community can lend a hand. It'd be right-neighborly of ya to do so! > > I can't help you but i loved your testimonial. > Douglas Ruisaard Trilogy Software (250) 573-3935 ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Anything LiveCode Can Learn From GO
LC and Go have entirely different target marketsbut since you can easily make 1 application talk to another application using sockets . or open process.. the LC and Go make a wonderful partnership if you need to build UI ...but also do High Performance Computing. The 2 can make a great couple indeed. But neither can replace the other. On Sun, Jun 10, 2018 at 10:27 AM, Rick Harrison via use-livecode < use-livecode@lists.runrev.com> wrote: > Hi Sannyasin, > > I found a quick small snippet of some “Hello World” GO code and have > listed it below. > > I much prefer LiveCode syntax over this stuff any day. > Stick with LiveCode, it’s just better! > > Just my 2 cents for the day. > > Cheers, > > Rick > > Add a test to the stringutil package by creating the file$GOPATH/src/ > github.com/user/stringutil/reverse_test.go containing the following Go > code. > > package stringutil > > import "testing" > > func TestReverse(t *testing.T) { > cases := []struct { > in, want string > }{ > {"Hello, world", "dlrow ,olleH"}, > {"Hello, 世界", "界世 ,olleH"}, > {"", ""}, > } > for _, c := range cases { > got := Reverse(c.in) > if got != c.want { > t.Errorf("Reverse(%q) == %q, want %q", c.in, got, > c.want) > } > } > } > Then run the test with go test: > > $ go test github.com/user/stringutil > ok github.com/user/stringutil 0.165s > > > > On Jun 9, 2018, at 10:55 PM, Sannyasin Brahmanathaswami via use-livecode > wrote: > > > > https://medium.com/exploring-code/why-should-you-learn-go-f607681fad65 > > > > BR > > ___ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Anything LiveCode Can Learn From GO
Hi Sannyasin, I found a quick small snippet of some “Hello World” GO code and have listed it below. I much prefer LiveCode syntax over this stuff any day. Stick with LiveCode, it’s just better! Just my 2 cents for the day. Cheers, Rick Add a test to the stringutil package by creating the file$GOPATH/src/github.com/user/stringutil/reverse_test.go containing the following Go code. package stringutil import "testing" func TestReverse(t *testing.T) { cases := []struct { in, want string }{ {"Hello, world", "dlrow ,olleH"}, {"Hello, 世界", "界世 ,olleH"}, {"", ""}, } for _, c := range cases { got := Reverse(c.in) if got != c.want { t.Errorf("Reverse(%q) == %q, want %q", c.in, got, c.want) } } } Then run the test with go test: $ go test github.com/user/stringutil ok github.com/user/stringutil 0.165s > On Jun 9, 2018, at 10:55 PM, Sannyasin Brahmanathaswami via use-livecode > wrote: > > https://medium.com/exploring-code/why-should-you-learn-go-f607681fad65 > > BR ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode