Click here to Skip to main content
15,885,435 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questionvb6 to .net Pin
dvdljns28-Nov-12 7:42
dvdljns28-Nov-12 7:42 
AnswerRe: vb6 to .net Pin
Zaf Khan28-Nov-12 16:58
Zaf Khan28-Nov-12 16:58 
GeneralRe: vb6 to .net Pin
dvdljns1-Dec-12 5:47
dvdljns1-Dec-12 5:47 
GeneralRe: vb6 to .net Pin
Zaf Khan1-Dec-12 8:00
Zaf Khan1-Dec-12 8:00 
AnswerRe: vb6 to .net Pin
Dave Kreskowiak28-Nov-12 18:04
mveDave Kreskowiak28-Nov-12 18:04 
QuestionDeleting a datarow, creating a query to find the row. - ANSWERED, Thank yo Pin
JRHibner27-Nov-12 23:30
JRHibner27-Nov-12 23:30 
AnswerRe: Deleting a datarow, creating a query to find the row. Pin
Andy_L_J28-Nov-12 22:30
Andy_L_J28-Nov-12 22:30 
GeneralRe: Deleting a datarow, creating a query to find the row. Pin
JRHibner1-Dec-12 7:21
JRHibner1-Dec-12 7:21 
I was attempting to use the sample code above like this:

VB
Dim tRow As PlazimorphDBDataSet.PlazimorphGenesRow
Dim genename As String
genename = MTBGeneLabel.Text.ToString()
tRow = Me.PlazimorphGenesTA.FillByGene(Me.PlazimorphDBDataSet.PlazimorphGenes, genename)
tRow.Delete()
Me.PlazimorphGenesTA.Update(Me.PlazimorphDBDataSet.PlazimorphGenes)



I did go into the database designer and create the specific query on the table. It looks SELECT code section you posted above.

The error I'm getting is specific to this line:

tRow = Me.PlazimorphGenesTA.FillByGene(Me.PlazimorphDBDataSet.PlazimorphGenes, genename)


I'm getting
"Value of type 'Integer' cannot be converted to 'PlazimorphAdmin.PlazimorphDBDataSet.PlazimorphGenesRow'"

I thought Visual Studio would automatically add the stored procedure. Maybe I need to add it as you suggest.

If I change the line to this:

tRow = Me.PlazimorphGenesTA.FillByGene(genename)

I get the following two errors:

"Argument not specified for parameter 'genename' of 'Public Overrideable Overloads Function FillByGene(dataTable as PlazimorphDBDataSet.PlazimorphGenesDataTable, genename as String) As Integer'."

and

"Value of type 'String' cannot be converted to 'PlazimorphAdmin.PlazimorphDBDataSet.PlazimorphGenesDataTable'."

And If I use this version:

tRow = Me.PlazimorphGenesTA.FillByGene(tPlazimorphGenes, genename)

I get
"Value of type 'Integer' cannot be converted to 'PlazimorphAdmin.PlazimorphDBDataSet.PlazimorphGenesRow'"

The query I have attached to the table is this:

SELECT Gene, FindMethod, TDiscovery, TReplicate, AA_A, AA_T, AA_G, AA_C, ImageFileName, Description, SpxReplicationItem, IconFileName, Complete, Image, Icon, Type,
UniqueID, Chromosome, Rarity, ParentGene, Name
FROM PlazimorphGenes
WHERE (Gene = @genename)


I have a solid background in visual basic programming but haven't work this much with a database.
GeneralRe: Deleting a datarow, creating a query to find the row. Pin
Andy_L_J1-Dec-12 20:27
Andy_L_J1-Dec-12 20:27 
GeneralRe: Deleting a datarow, creating a query to find the row. Pin
JRHibner9-Dec-12 14:55
JRHibner9-Dec-12 14:55 
QuestionModified Registry Key Pin
alirezamansoori27-Nov-12 18:52
alirezamansoori27-Nov-12 18:52 
AnswerRe: Modified Registry Key Pin
Richard MacCutchan28-Nov-12 0:02
mveRichard MacCutchan28-Nov-12 0:02 
GeneralRe: Modified Registry Key Pin
alirezamansoori28-Nov-12 0:39
alirezamansoori28-Nov-12 0:39 
GeneralRe: Modified Registry Key Pin
Richard MacCutchan28-Nov-12 1:15
mveRichard MacCutchan28-Nov-12 1:15 
QuestionLooking for idea for learning book Pin
NaZReD24-Nov-12 9:08
NaZReD24-Nov-12 9:08 
AnswerRe: Looking for idea for learning book Pin
Eddy Vluggen27-Nov-12 12:58
professionalEddy Vluggen27-Nov-12 12:58 
QuestionInstall SQL Server on Another Computer without reach there Pin
Umesh Bachchani24-Nov-12 7:03
Umesh Bachchani24-Nov-12 7:03 
AnswerRe: Install SQL Server on Another Computer without reach there Pin
Eddy Vluggen27-Nov-12 12:59
professionalEddy Vluggen27-Nov-12 12:59 
Question8queen ga write in vb Pin
bakhshipoor21-Nov-12 9:42
bakhshipoor21-Nov-12 9:42 
AnswerRe: 8queen ga write in vb Pin
David Mujica21-Nov-12 10:16
David Mujica21-Nov-12 10:16 
AnswerRe: 8queen ga write in vb Pin
Richard MacCutchan21-Nov-12 22:13
mveRichard MacCutchan21-Nov-12 22:13 
QuestionOnline handwriting recognition system using vector machine Pin
HafiqWiselman21-Nov-12 1:39
HafiqWiselman21-Nov-12 1:39 
RantRe: Online handwriting recognition system using vector machine Pin
Richard Deeming21-Nov-12 2:16
mveRichard Deeming21-Nov-12 2:16 
GeneralRe: Online handwriting recognition system using vector machine Pin
HafiqWiselman21-Nov-12 3:22
HafiqWiselman21-Nov-12 3:22 
QuestionControlling Monitor brightness from VB6 Pin
Muhammed Niyas19-Nov-12 23:59
Muhammed Niyas19-Nov-12 23:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.