Well I just wrote a two page letter explaining my registry problem, but I went back FURTHER in the code to the point where the variable is retrieved from a textbox in the OPTIONS screen.
This is baffling, this app started as a PB/DLL 5.0 app, used a resource file etc and slowly but surely it's almost 99% DDT now.
But I missed this line...
The app would retrieve the value from the textbox, write it to the registry.
It always WROTE to the registry: C:\Winlog\
But then I READ the registry and it immediately came out as C:\Winlog\\ so I suspected my registry reading code got changed somehow..
So I go back to where the value is obtained in the options dialog and do a msgbox on teh ascii value of the right character and walah, it's 0...
So, WHY does GetText append a chr$(0) but DDT does not?
Control Get Text CbHndl,%IDTEXTBOX To g_sLogPath
' g_sLogPath = GetText(GetDlgItem(CbHndl, %IDTEXTBOX))
------------------
Scott
[This message has been edited by Scott Turchin (edited July 11, 2001).]
This is baffling, this app started as a PB/DLL 5.0 app, used a resource file etc and slowly but surely it's almost 99% DDT now.
But I missed this line...
The app would retrieve the value from the textbox, write it to the registry.
It always WROTE to the registry: C:\Winlog\
But then I READ the registry and it immediately came out as C:\Winlog\\ so I suspected my registry reading code got changed somehow..
So I go back to where the value is obtained in the options dialog and do a msgbox on teh ascii value of the right character and walah, it's 0...
So, WHY does GetText append a chr$(0) but DDT does not?
Control Get Text CbHndl,%IDTEXTBOX To g_sLogPath
' g_sLogPath = GetText(GetDlgItem(CbHndl, %IDTEXTBOX))
------------------
Scott
[This message has been edited by Scott Turchin (edited July 11, 2001).]
Comment