Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Generate SHA1 in VFP
Message
From
06/11/2023 20:06:15
 
 
To
06/11/2023 18:44:31
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro and .NET
Miscellaneous
Thread ID:
01687209
Message ID:
01687210
Views:
48
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform