This is just strange. I am getting an error on execution after adding the following function to an app.
+ Code Snippetfunction _CW_DynamicUp(index)
UpItm$=Cmd(index).Label
UpItmVal$=Cmd(index).StrVal
UpItmComb$=UpItm$+" "+UpItmVal$
PanelList(0,index).PItemStr=UpItmComb$
endfunction
It works fine if I change the UpItmComb$ to the following...
+ Code Snippetfunction _CW_DynamicUp(index)
UpItm$=Cmd(index).Label
UpItmVal$=Cmd(index).StrVal
UpItmComb$=UpItm$+UpItmVal$
PanelList(0,index).PItemStr=UpItmComb$
endfunction
Here is the error I get:CodeWatch.exe has encountered a problem and needs to close. We are sorry for the inconvenience.
Detailed information Error Signature:AppName: codewatch.exe AppVer: 1.0.0.0 ModName: compress.dll
ModVer: 1.0.1.2 Offset: 000026c9
Now what's even more strange is I am sure I have done this before, and not encountered issues. In fact I had something similar in another function.
I will try using an ASCII string for the space. But does anyone know whats up????
[EDIT]:Well this works as well.
+ Code Snippetfunction _CW_DynamicUp(index)
UpItm$=Cmd(index).Label
UpItmVal$=Cmd(index).StrVal
UpItmComb$=UpItm$+space$(1)+UpItmVal$
PanelList(0,index).PItemStr=UpItmComb$
endfunction
So I'll stick with that. But is there something wrong with adding a " " to a string? And if so, how com the compiler doesn't catch it?