StrataFrame Forum

Bug regarding "Return Alternate On Null/Set Null on Alternate"

http://forum.strataframe.net/Topic7767.aspx

By Ben Dornis - 3/28/2007

It would appear that the builders for the "Return Alternate On Null/Set Null on Alternate" as missing an "End If" in the "Set" block



'''

''' FieldName

'''


'''


BusinessFieldDisplayInEditor(), _

Description("FieldName"), _

DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)> _

Public Property [FieldName]() As System.Int32

Get

Dim loValue As Object

loValue = Me.CurrentRow.Item("FieldName")

If loValue Is DBNull.Value Then

Return -1

Else

Return CType(loValue, System.Int32)

End If

End Get

Set(ByVal value As System.Int32)

If value <> -1 Then

Me.CurrentRow.Item("FieldName") = value

Else

Me.CurrentRow.Item("FieldName") = DBNull.Value

End Set

End Property
By StrataFrame Team - 3/29/2007

Got it fixed.  Here's the AddIns assembly you'll need to copy to the C:\Program Files\Common Files\MicroFour\StrataFrame folder and also dump into your GAC...
By Ben Dornis - 3/29/2007

Thanks for the quick fix. Testing it now.



-Ben
By Ben Dornis - 3/30/2007

I probably should have checked it out before I posted earlier but it appears that the same problem exists in the "(value type)" as well...just thought I would let you know .
By StrataFrame Team - 4/2/2007

Aha, thanks for the notice, I'll get it fixed.