Hello,
I have made some addin in VB.NET 2003 for EG 4.1 that worked just fine, but it´s not working in EG 4.2 any more. I have tried to recompile the addin in Visual Studio 2005 using EG 4.2 SAS.Shared.AddIns.dll, but with no success. The problem is that the property SasCode() doesn´t take variables from function Show() which are posted from the form.
Example:
In show() I have eg.:
Dim frm As MyAddinForm = New MyAddinForm
If frm.ShowDialog(Owner) = Windows.Forms.DialogResult.OK Then
var1 = frm.var ' variable var is declared by pressing OK button on the form
Return ShowResult.RunNow
Else : Return ShowResult.Canceled
End If
And in SasCode() I have eg.:
sb.Append(String.Format("{0};" & Environment.NewLine, var1))
SasCode=sb.tostring
Compiling the addin and running it in EG 4.2 the variable var1 is not worked with. When stating variable in SasCode(), thus eg
var1="something"
sb.Append(String.Format("{0};" & Environment.NewLine, var1))
SasCode=sb.tostring
addin works with it just fine. That´s why I think the problem is in transfering the variable from Show() to SasCode().
Please let me know where the problem can be, I´d be very grateful.
Sorry for my english and thank you very much for the advice 🙂
Pavel
... View more