Hi
This is Prashant here I am using Powerbuilder 12.5.2 Classical, Windows 7 64 Bit. I need to update value of type REG_SZ, I can read it using RegString! but failed to write the value. My code is as following.
```
String ls_key, ls_val,ls_bin
int li_rtn
ls_key ="HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Monitors\Redirected Port\Ports\RPT1:"
RegistryGet( ls_key, "Arguments", RegString!, ls_val)
Messagebox("before info",ls_val)
ls_val = '@D:\myjpgfiles\jpgwriter.txt -c "<</Orientation 2>> setpagedevice" -'
//ls_bin = '2740443a5c6d796a706766696c65735c6a70677772697465722e747874202d6320223c3c2f4f7269656e746174696f6e20323e3e207365747061676564657669636522202d'
//Argument type is REG_SZ
li_rtn = RegistrySet( ls_key, "Arguments", RegString!, ls_val)
IF li_rtn = -1 THEN
Messagebox("Error","Could not set registry")
ELSE
RegistryGet( ls_key, "Arguments", RegMultiString!, ls_val)
Messagebox("after info",ls_val )
END IF
```