vb@rchiv
VB Classic
VB.NET
ADO.NET
VBA
C#
Top-Preis! AP-Access-Tools-CD Volume 1  
 vb@rchiv Quick-Search: Suche startenErweiterte Suche starten   Impressum  | Datenschutz  | vb@rchiv CD Vol.6  | Shop Copyright ©2000-2025
 
zurück

 Sie sind aktuell nicht angemeldet.Funktionen: Einloggen  |  Neu registrieren  |  Suchen

Suche Visual-Basic Code
Re: Tabelle in XML umwandeln 
Autor: gaschi14
Datum: 22.04.08 11:24

'*****************************************************************
'* S_Head table header Information
'*****************************************************************
    Dim row As Integer
    Dim col As Integer
    Dim i As Integer
    Dim intColName As Integer
    Dim strLabel As String
    Dim strAddress As String
    Dim strTableBodyStrt As String
    Dim blRanks As Boolean
 
    Const intTableHRowBegin As Integer = 5
    Const intTableHColBegin As Integer = 0
    Const intLabel As Integer = 1
    Const strRotate As String = 270
    Const strRowspan As String = 6
 
    blRanks = False
    i = intTableHRowBegin
    Range(strStrtCell + "1").Offset(intLabel, 0).Select
    strLabel = Range(strStrtCell + "1").Offset(intLabel, 0).Value
 
    If strLabel = "Component" Then
       i = 8
    End If
 
    If strLabel = "FBDIMM" Then
        strTableBodyStrt = "ICC_Idle_0"
        'strTableBodyStrt = "PCC_Idle_0"
    Else
        strTableBodyStrt = "IDD0"
    End If
 
    Range(strStrtCell + "1").Offset(i, 0).Select
 
   Set xmlS_HeadElement = xml.createElement("S_Head")
   xmlS_TableElement.appendChild xmlS_HeadElement
 
    While Range(strStrtCell + "1").Offset(i, 0).Value <> strTableBodyStrt
        Set xmlS_HRowElement = xml.createElement("S_HRow")
        xmlS_HeadElement.appendChild xmlS_HRowElement
        subxmlAttribute "rowsep", "1", xmlS_HRowElement
 
        For col = 0 To (intCols - 1)
        Range(strStrtCell + "1").Offset(i, col).Select
        Select Case i
            Case 5
 
                If col = 0 Then
                    Set xmlS_HCellElement = xml.createElement("S_HCell")
                    xmlS_HRowElement.appendChild xmlS_HCellElement
                    subxmlAttribute "colname", col + 1, xmlS_HCellElement
 
                    Set xmlS_HCellBodyElement = xml.createElement("S_HCellBody")
                    xmlS_HCellElement.appendChild xmlS_HCellBodyElement
                    subxmlText Range(strStrtCell + "1").Offset(i, col).Value, _
                      xmlS_HCellBodyElement
                ElseIf (col > 0) And col < (intCols - 2) Then
                    Set xmlS_HCellElement = xml.createElement("S_HCell")
                    xmlS_HRowElement.appendChild xmlS_HCellElement
                    subxmlAttribute "colname", col + 1, xmlS_HCellElement
 
                    Set xmlS_HCellBodyElement = xml.createElement("S_HCellBody")
                    xmlS_HCellElement.appendChild xmlS_HCellBodyElement
                    subxmlText Range(strStrtCell + "1").Offset(i, col).Value, _
                      xmlS_HCellBodyElement
                    If (intCols > 6) Then
                        subxmlAttribute "rotate", strRotate, xmlS_HCellElement
                     End If
                ElseIf (col = intCols - 2) Then
                    Set xmlS_HCellElement = xml.createElement("S_HCell")
                    xmlS_HRowElement.appendChild xmlS_HCellElement
                    subxmlAttribute "colname", col + 1, xmlS_HCellElement
 
                    Set xmlS_HCellBodyElement = xml.createElement("S_HCellBody")
                    xmlS_HCellElement.appendChild xmlS_HCellBodyElement
                    subxmlText Range(strStrtCell + "1").Offset(i, col).Value, _
                      xmlS_HCellBodyElement
                    subxmlAttribute "rowspan", strRowspan, xmlS_HCellElement
alle Nachrichten anzeigenGesamtübersicht  |  Zum Thema  |  Suchen

 ThemaViews  AutorDatum
Tabelle in XML umwandeln3.158gaschi1422.04.08 11:21
Re: Tabelle in XML umwandeln1.555gaschi1422.04.08 11:21
Re: Tabelle in XML umwandeln1.384gaschi1422.04.08 11:23
Re: Tabelle in XML umwandeln1.350gaschi1422.04.08 11:24
Re: Tabelle in XML umwandeln1.344gaschi1422.04.08 11:25
Re: Tabelle in XML umwandeln1.295gaschi1422.04.08 11:26
Re: Tabelle in XML umwandeln1.307gaschi1422.04.08 11:27
Re: Tabelle in XML umwandeln1.275gaschi1422.04.08 11:27
Re: Tabelle in XML umwandeln1.354gaschi1422.04.08 11:27
Re: Tabelle in XML umwandeln1.361gaschi1422.04.08 11:28
Re: Tabelle in XML umwandeln1.347gaschi1422.04.08 11:28
Re: Tabelle in XML umwandeln1.357gaschi1422.04.08 11:29
Re: Tabelle in XML umwandeln1.325gaschi1422.04.08 11:29
Re: Tabelle in XML umwandeln1.322gaschi1422.04.08 11:30
Re: Tabelle in XML umwandeln1.411gaschi1422.04.08 11:30

Sie sind nicht angemeldet!
Um auf diesen Beitrag zu antworten oder neue Beiträge schreiben zu können, müssen Sie sich zunächst anmelden.

Einloggen  |  Neu registrieren

Funktionen:  Zum Thema  |  GesamtübersichtSuchen 

nach obenzurück
 
   

Copyright ©2000-2025 vb@rchiv Dieter Otter
Alle Rechte vorbehalten.
Microsoft, Windows und Visual Basic sind entweder eingetragene Marken oder Marken der Microsoft Corporation in den USA und/oder anderen Ländern. Weitere auf dieser Homepage aufgeführten Produkt- und Firmennamen können geschützte Marken ihrer jeweiligen Inhaber sein.

Diese Seiten wurden optimiert für eine Bildschirmauflösung von mind. 1280x1024 Pixel