Click here to Skip to main content
14,876,655 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: VB6 Pin
Dave Kreskowiak28-Aug-20 18:49
mveDave Kreskowiak28-Aug-20 18:49 
AnswerRe: VB6 Pin
CHill607-Sep-20 4:18
mveCHill607-Sep-20 4:18 
AnswerRe: VB6 Pin
Eddy Vluggen8-Sep-20 10:42
professionalEddy Vluggen8-Sep-20 10:42 
GeneralRe: VB6 Pin
CHill609-Sep-20 22:57
mveCHill609-Sep-20 22:57 
GeneralRe: VB6 Pin
Eddy Vluggen10-Sep-20 12:41
professionalEddy Vluggen10-Sep-20 12:41 
QuestionWhy Data Visualization is important? Pin
Member 1492367226-Aug-20 7:54
MemberMember 1492367226-Aug-20 7:54 
AnswerRe: Why Data Visualization is important? Pin
Dave Kreskowiak26-Aug-20 10:51
mveDave Kreskowiak26-Aug-20 10:51 
QuestionLoop DataTable per assegnare valori alle rows non ci riesco Pin
Fabrizio Leoncini21-Aug-20 0:33
MemberFabrizio Leoncini21-Aug-20 0:33 
Buongiorno a tutti come potete vedere ne codice ho un insert into in database in un datatable con 24 campi vorrei assegnare i parametri della funzione alle rows mediante un loop ma non riesco davvero a capire come posso fare se per favore qualcuno mi puo aiutare .
Vi ringrazio e posto il codice:

<ComponentModel.DataObjectMethod(ComponentModel.DataObjectMethodType.Insert, True)>
 Public Function InsertValorePrevisto(ByVal ValorePrevistoPezzoUno As String, 
 ByVal ValorePrevistoPezzoDue As String, ByVal ValorePrevistoPezzoTre As String,
 ByVal ValorePrevistoPezzoQuattro As String, ByVal ValorePrevistoPezzoCinque As String, 
 ByVal ValorePrevistoPezzoSei As String,ByVal ValorePrevistoPezzoSette As String, 
 ByVal ValorePrevistoPezzoOtto As String, ByVal ValorePrevistoPezzoNove As String,
 ByVal ValorePrevistoPezzoDieci As String, ByVal ValorePrevistoPezzoUndici As String, 
 ByVal ValorePrevistoPezzoDodici As String,ByVal ValorePrevistoPezzoTredici As String, 
 ByVal ValorePrevistoPezzoQuattordici As String, ByVal ValorePrevistoPezzoQuindici As String,
 ByVal ValorePrevistoPezzoSedici As String, ByVal ValorePrevistoPezzoDiciasette As String, 
 ByVal ValorePrevistoPezzoDiciotto As String,ByVal ValorePrevistoPezzoDiciannove As String,
 ByVal ValorePrevistoPezzoVenti As String) As Integer


        'Parametri per relazione fra le tabelle con valori assegnati in testata uguali per tutte
     Dim IDIntestazione As Integer = PropIdIntestazione
     Dim NumOrdine As String = PropNumeroOrdine
     Dim CodArticolo As String = PropCodiceArticolo
     Dim RigaOrdNum As Integer = PropRigaOrdNum


    Dim ValorePrevisto As New dbGestTestReport6DataSet.tblValPrevistiDataTable
    Dim ValorePrevistoRow As dbGestTestReport6DataSet.tblValPrevistiRow =ValorePrevisto.NewtblValPrevistiRow


        ValorePrevistoRow.IDIntestazione = IDIntestazione
        ValorePrevistoRow.NumOrdine = NumOrdine
        ValorePrevistoRow.CodArticolo = CodArticolo
        ValorePrevistoRow.RigaOrdNum = RigaOrdNum

        ValorePrevistoRow.ValorePrevistoPezzoUno = ValorePrevistoPezzoUno
        ValorePrevistoRow.ValorePrevistoPezzoDue = ValorePrevistoPezzoDue
        ValorePrevistoRow.ValorePrevistoPezzoTre = ValorePrevistoPezzoTre
        ValorePrevistoRow.ValorePrevistoPezzoQuattro = ValorePrevistoPezzoQuattro
        ValorePrevistoRow.ValorePrevistoPezzoCinque = ValorePrevistoPezzoCinque
        ValorePrevistoRow.ValorePrevistoPezzoSei = ValorePrevistoPezzoSei
        ValorePrevistoRow.ValorePrevistoPezzoSette = ValorePrevistoPezzoSette
        ValorePrevistoRow.ValorePrevistoPezzoOtto = ValorePrevistoPezzoOtto
        ValorePrevistoRow.ValorePrevistoPezzoNove = ValorePrevistoPezzoNove
        ValorePrevistoRow.ValorePrevistoPezzoDieci = ValorePrevistoPezzoDieci
        ValorePrevistoRow.ValorePrevistoPezzoUndici = ValorePrevistoPezzoUndici
        ValorePrevistoRow.ValorePrevistoPezzoDodici = ValorePrevistoPezzoDodici
        ValorePrevistoRow.ValorePrevistoPezzoTredici = ValorePrevistoPezzoTredici
        ValorePrevistoRow.ValorePrevistoPezzoQuattordici = ValorePrevistoPezzoQuattordici
        ValorePrevistoRow.ValorePrevistoPezzoQuindici = ValorePrevistoPezzoQuindici
        ValorePrevistoRow.ValorePrevistoPezzoSedici = ValorePrevistoPezzoSedici
        ValorePrevistoRow.ValorePrevistoPezzoDiciasette = ValorePrevistoPezzoDiciasette
        ValorePrevistoRow.ValorePrevistoPezzoDiciotto = ValorePrevistoPezzoDiciotto
        ValorePrevistoRow.ValorePrevistoPezzoDiciannove = ValorePrevistoPezzoDiciannove
        ValorePrevistoRow.ValorePrevistoPezzoVenti = ValorePrevistoPezzoVenti

        ValorePrevisto.AddtblValPrevistiRow(ValorePrevistoRow)
        Dim rowsAffected As Integer = AdapterValorePrevisto.Update(ValorePrevisto)
        Return rowsAffected

    End Function

AnswerRe: Loop DataTable per assegnare valori alle rows non ci riesco Pin
Dave Kreskowiak21-Aug-20 6:28
mveDave Kreskowiak21-Aug-20 6:28 
GeneralRe: Loop DataTable per assegnare valori alle rows non ci riesco Pin
Fabrizio Leoncini21-Aug-20 21:31
MemberFabrizio Leoncini21-Aug-20 21:31 
GeneralRe: Loop DataTable per assegnare valori alle rows non ci riesco Pin
Eddy Vluggen22-Aug-20 10:01
professionalEddy Vluggen22-Aug-20 10:01 
GeneralRe: Loop DataTable per assegnare valori alle rows non ci riesco Pin
CHill6025-Aug-20 2:17
mveCHill6025-Aug-20 2:17 
GeneralRe: Loop DataTable per assegnare valori alle rows non ci riesco Pin
Eddy Vluggen25-Aug-20 15:19
professionalEddy Vluggen25-Aug-20 15:19 
QuestionExcel vba creating a timer through doevents Pin
Mat 25720-Aug-20 3:42
MemberMat 25720-Aug-20 3:42 
AnswerRe: Excel vba creating a timer through doevents Pin
Dave Kreskowiak20-Aug-20 4:31
mveDave Kreskowiak20-Aug-20 4:31 
GeneralRe: Excel vba creating a timer through doevents Pin
Mat 25720-Aug-20 10:22
MemberMat 25720-Aug-20 10:22 
QuestionGridview RowUpdating not showing updated record in grid Pin
cmn219-Aug-20 2:58
Membercmn219-Aug-20 2:58 
AnswerRe: Gridview RowUpdating not showing updated record in grid Pin
Eddy Vluggen22-Aug-20 10:03
professionalEddy Vluggen22-Aug-20 10:03 
QuestionNArrange Pin
ChrisRaisin13-Aug-20 14:52
MemberChrisRaisin13-Aug-20 14:52 
AnswerRe: NArrange Pin
Dave Kreskowiak13-Aug-20 16:33
mveDave Kreskowiak13-Aug-20 16:33 
QuestionHow code to Print a Bit map image to pos printer via comport in VB6 Pin
Member 149097158-Aug-20 0:25
MemberMember 149097158-Aug-20 0:25 
AnswerRe: How code to Print a Bit map image to pos printer via comport in VB6 Pin
Richard MacCutchan8-Aug-20 0:46
mveRichard MacCutchan8-Aug-20 0:46 
AnswerRe: How code to Print a Bit map image to pos printer via comport in VB6 Pin
Eddy Vluggen22-Aug-20 10:07
professionalEddy Vluggen22-Aug-20 10:07 
QuestionGeoreferencing Pin
Benniit7-Aug-20 20:50
MemberBenniit7-Aug-20 20:50 
AnswerRe: Georeferencing Pin
OriginalGriff7-Aug-20 20:51
mveOriginalGriff7-Aug-20 20:51 

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.