1. Olan Knight
  2. PowerBuilder
  3. Monday, 31 August 2020 18:19 PM UTC

Update:
   After searching the Registry for duplicate entries, I found this:
    Computer\HKEY_CLASSES_ROOT\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\CSGI\ICABS4_5

   I deleted this entry manually, and then the RegistryGet () function worked correctly.

   I was NOT ableto delete this key using the RegistryDelete() function, even after I updated the rights on the key and gave full control to Administrators and all application packages.

Olan

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

PB 2019R2, b2353
Windows 64 bit platform
32 bit PB Classic application in DEBUG mode

Summary:
I am getting an invalid return value from RegistryGet(), both in DEBUG mode and at runtime.

As per the thread https://community.appeon.com/index.php/qna/q-a/registryget-and-registryset-problems
I thought this issue was resolved. It is not, or I'm missing something.

Q:  How can I get valid results from the Registry?


Details:
Here's the complete page showing the Regedit values and the DEBUG values in one image. Details are below this image.


This shows each component from the image above:

SetSQLSpy = N

Path from Regedit:
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\CSGI\ICABS4_5

ls_key from debug:
                 HKEY_LOCAL_MACHINE\Software\Wow6432Node\CSGI\ICABS4_5

ls_regstring from debug:
    SetSQLSpy

Command from debug:
    RegistryGet (ls_key, ls_regstring, RegString!, ls_sqlspy)
Result:        
    ls_sqlspy = "Y"

When I use a return code, the return code is "1":
ll_rc          = RegistryGet (ls_key, ls_regstring, RegString!, ls_sqlspy)

 

Thank You,

Olan

 

Armeen Mazda @Appeon Accepted Answer Pending Moderation
  1. Monday, 31 August 2020 19:29 PM UTC
  2. PowerBuilder
  3. # 1

Thanks for sharing the solution Olan!

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.