@ hh, good sleuth… OK thanks all for confirming.. .I will report this. …. [pauses for a trip to the QA Center]
Bug is in: http://quality.livecode.com/show_bug.cgi?id=18032 The context is working on a script only stack. there is are no buttons to use, hence the dependency on the msg box. For now I'm using a work around like this fetchRandomMediaItem ("media_type","art/painting") command FetchRandommediaItem pCriteria # do stuff with item 1 of pCriteria item 2 of pCriteria. Since it appears that param 1 can be anything and is not evaluated… yep… it fails because "art/painting" cannot be evaluated but "8/2" can command testParams pParam1, pParam2 put pParam1 & cr & pParam2 after tOutput put tOutput end testParams save and be sure the stack is open! (just because you are editing the script does not mean it is in the msg path... another possible bug) in msg box enter testParams "1+2", "3+4" result: 1+2 7 "nasty" I don't have errors with LC 6/7/8 from a script (not msg). From msg box I have also no errors when using LC 6 and 7. But from msg box with LC 8. This is probably a bug in LC 8, that msg box command tries to *evaluate* the second param. You can see this if you use for example fetchRandomMediaItem "a/b", "a=a" _______________________________________________ use-livecode mailing list [email protected] Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
