Sample code for 30+ languages & platforms
PowerBuilder

Generate UUID

See more Encryption Examples

Demonstrates how to generate a random UUID string (also known as GUID) having the standard UUID format such as "de305d54-75b4-431b-adb2-eb6b9e546014".

Chilkat PowerBuilder Downloads

PowerBuilder
integer li_rc
oleobject loo_Crypt
string ls_Uuid

loo_Crypt = create oleobject
li_rc = loo_Crypt.ConnectToNewObject("Chilkat.Crypt2")
if li_rc < 0 then
    destroy loo_Crypt
    MessageBox("Error","Connecting to COM object failed")
    return
end if

ls_Uuid = loo_Crypt.GenerateUuid()

Write-Debug ls_Uuid


destroy loo_Crypt