Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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:

 

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

Posted
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.
  • Leaders
Posted

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:

Dim Obj as New MyClass()

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...