Troubles with the new UUID function

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Troubles with the new UUID function

Post by Simon » Thu Jul 11, 2013 10:38 pm

HI,
Using LC 6.1 and the example given in the dictionary:

Code: Select all

put uuid(random) into tRandomUUID
Throws this error in the messagebox:
Script compile error:
Error description: Function: missing '('
Win7 machine.

Tried md5 still an error.

Aside from that what I see from "put uuid()" is a randomly generated... well uuid, each time it is run. This then says that the function cannot be used in a registration tool unless it is recorded. Is that true? Or is there a way to use it like Apples uuid unique to each unit?

Thanks,
Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4172
Joined: Sun Jan 07, 2007 9:12 pm

Re: Troubles with the new UUID function

Post by bn » Thu Jul 11, 2013 10:59 pm

Hi Simon,

try

Code: Select all

put uuid("random")
Kind regards
Bernd

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Troubles with the new UUID function

Post by Simon » Fri Jul 12, 2013 3:13 am

Thanks Bernd, that works.
Will try to figure out what namespace_id means now. :)

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Troubles with the new UUID function

Post by Klaus » Fri Jul 12, 2013 6:24 pm

Oh, looks like an error in the dictionary!
And I don't have the slightest idea about namespace_id, too :-D

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Troubles with the new UUID function

Post by Simon » Fri Jul 12, 2013 7:12 pm

"combine" in the dictionary has "teh" :)
Good to know they are human.

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

Post Reply