Linux -Blue forest free software | Return to home page | Site Map | Search WWW | Contact Us |
Your current position : Homepage > Free Software > Technological exchanges >Application Programming


    

Blue Forest http://www.lslnet.com at 8:28 on August 25, 2006

Help cut off the string appeared to use GUID

I would like to use to generate record guid as the main key to the formation of sgl guid combinations phrase implementation.
Generation below
Function chgDate4ID ()
'Primary key used to generate data tables
Set objTypeLib = CreateObject ( "Scriptlet.TypeLib")
Myguid = objTypeLib.Guid
Myguid = replace (myguid, "-", "")
Myguid = replace (myguid "participate", "")
Myguid = replace (myguid "(", "")
ChgDate4ID=Trim (myguid)
End Function


However, in actual use, the phrase always found splicing to the formation of the guid sgl here has been interrupted, the phrase has disappeared behind combinations, as
Insert into entertainmentinfo (pid, b_subject, b_place, b_object, b_type, b_begindate, b_enddate, b_content, sysdate. b_manager) values ( 'DCD0BAB91FBB4D568ECAF14980A0DE89

Is this how is?

The GUID is generated because this form of ASP
{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx} E
Backing magnitude, because the ballots + e is the result.
So you use the light that is useless.
My method is as follows.

'Generation GUID
CreateGUID function ()
Dim objTypeLib
Set objTypeLib = CreateObject ( "Scriptlet.TypeLib")
Then if err<>0
OScript ( "alert ( 'server, could not generating GUID') ;history.back ()")
Erroneamente = 0
Set objTypeLib = nothing
Response.end
End if
CreateGUID = Mid (objTypeLib.Guid,2,36)
Set objTypeLib = nothing
End function

With a mid function, he started 36 from the second, we want content.




 Privacy Policy  Copyright © 1999-2000 LSLNET.COM. All rights reserved. Blue Forest website owners. E-mail : Webmaster@lslnet.com