Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
element editor
#1
Here's one for ya dave.

well runtime error 380
invalid property value
Code:
Public Sub ElementEditorInit()
    frmElementEditor.txtName.Text = Trim(Element(EditorIndex).Name)
    frmElementEditor.scrlStrong.Value = Element(EditorIndex - 1).Strong
    frmElementEditor.scrlWeak.Value = Element(EditorIndex - 1).Weak
    frmElementEditor.Show vbModal
End Sub

H8ighlights this.
frmElementEditor.txtName.Text = Trim(Element(EditorIndex).Name)


____________________________________________________________
The rest of the code for that part.

Code:
Private Sub scrlStrong_Change()
    lblStrong.Caption = Element(scrlStrong.Value).Name
End Sub

Code:
Public Sub ElementEditorOk()
    Element(EditorIndex - 1).Name = frmElementEditor.txtName.Text
    Element(EditorIndex - 1).Strong = frmElementEditor.scrlStrong.Value
    Element(EditorIndex - 1).Weak = frmElementEditor.scrlWeak.Value
    Call SendSaveElement(EditorIndex - 1)
    Call ElementEditorCancel
End Sub
Code:
Public Sub ElementEditorCancel()
    InElementEditor = False
    Unload frmElementEditor
End Sub

Someone please help me.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)