Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Generate SHA1 in VFP
Message
De
06/11/2023 20:06:15
 
 
À
06/11/2023 18:44:31
Information générale
Forum:
Visual FoxPro
Catégorie:
Visual FoxPro et .NET
Divers
Thread ID:
01687209
Message ID:
01687210
Vues:
49
>Is there a way to generate SHA1 in VFP?
>
>Right now I'm using MySQL to generate SHA1
>
>
>STORE calcSqlConnect() TO dlnConnHandle
>TEXT TO dlcSQL TEXTMERGE noshow
>select sha1('abcde')
>ENDTEXT 
>STORE SQLEXEC(dlnConnHandle, dlcSql, 'dummy') TO dlnSql
>
>
>But then I don't know how to take out the return value
>
>Thanks for the help
>
>Jerry

Without changeing much you could replace the line
select sha1('abcde')
with
select sha1('abcde') AS sha1
And after running the SQLEXEC() you could access it like a field of the "dummy" cursor, for example:
? dummy.sha1
Hope it helps.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform