How do I declare and call the EditState method properly?

Lan Solo

Newcomer
Joined
May 28, 2003
Messages
15
Location
Alameda, CA
I am trying to call the editstate method in order to enable a record from a dataset for editing. I am not sure how to declare it, but VB STudio does not seem to like my syntax. Here is what I coded:

Code:
Private Sub mmuEditEdit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles mmuEditEdit.Click

        Call EditState(cblnEditing)

    End Sub

I get the squiggly lines under EditState and cblnEditing in the code editor and it states that neither is declared.

Thanks
 
It is described in the text I am trying to follow. It is supposed to be (I think) a statement in a sub that puts a record pulled from a database in a state that is editable. However the book is very vague as to how to use/code this method.
 
i did a search on msdn for EditState , this was the result
Search Results

--------------------------------------------------------------------------------
for "EditState" using All words
--------------------------------------------------------------------------------

Search needs a word or phrase to search for. Please try again.
Search needs a category to search for. Please try again.
Please enter a unique search to refine your results. You entered "EditState" for your previous search, and those results are reflected in the list below.

Your search using "All words" for ""EditState""
returned 0 results.

Try some of the following to improve your search:
Check your spelling.
Choose a different Search Category.
Type in a less specific search word or phrase.

i bet EditState is a function of an object / referenced item.
eg:
Visual Basic:
Dim Obj as New MyClass()

With Obj
    .Add( "my text")
    .EditState = False '// maybe it's something like this.
End With
 
Back
Top