Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to create a GUID?
Message
From
22/08/2002 12:36:19
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00692332
Message ID:
00692522
Views:
16
>>Has someone made use of CoCreateGUID() API to create GUID in Visual FoxPro? I have found a few samples but before converting it, I thought someone else already did it.
>>
>>...a few minutes after this post, I found Cetin's example here which works great.
>
>See Re: GUID Message #541174 or Re: Smallest GUID Making Code Ever Message #638589.

So, with the smallest GUID approach, I don't need to use the API, right?

I tried it and in order to get the proper string that I need, I have to do this:
oGUID = CreateObject("scriptlet.typelib")
? '{'+Strextract(oGUID.GUID, "{", "}" )+'}'
as the base value is having two weird characters at the end.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform