Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Pfad aufteilen

Empfohlene Antworten

Guten Abend zusammen,

ich habe in der Variabel "pfad" folgendes stehen:

C:\Dateien\Programm\test.zip

wie kann ich es aufteilen also:

Festplatte: C:\

Pfad: Dateien\Programm\

Datei test.zip

Danke euch!

Ich benutze Visual Basic.NET ( Windows XP )

MfG stephan

für VB6 gabs ne split funktion... mit der man nen string anhand eines zeichens (in diesem fall "\") teilt und das ganze dann in einem array zurückbekommt... schau doch mal obs sowas auch für .NET gibt

Hallo,

habe es gerade rauusbekommen!

for each d As System.IO.Fileinfo

Ordner = d.directory

File = d.Name

exit

Neue Frage, ich habe diese Funktion:

    Public Function connect(ByVal server As String, ByVal username As String, ByVal password As String, ByVal database As String) As MySqlConnection

        connStr = String.Format("server={0};user id={1}; password={2}; database={3}; pooling=false", _

        server, username, password, database)


        conn = New MySqlConnection(connStr)

        On Error Resume Next

        conn.Open()


        Return conn

    End Function


    Public Function connect_close() As MySqlConnection

        conn.Close()


        Return conn

    End Function


    Public Function read(ByVal table As String, ByVal tables As String, ByVal conn As MySqlConnection, ByVal argument As String) As DataTable

        Dim data As DataTable

        Dim da As MySqlDataAdapter


        data = New DataTable(table)


        da = New MySqlDataAdapter("SELECT " + tables + " FROM " + table + " " + argument, conn)


        Try

            da.Fill(data)

        Catch ex As Exception

            MsgBox("Es konnte keine Verbindung hergestellt werden: " + ex.Message)

        End Try


        Return data

    End Function

wie kann ich nun was in die DB schreiben? Habe schon versucht einfach den SELECT Befehl durch INSERT INTO zu ersetzten.

Geht aber nicht!

Bitte um hilfe.

Danke

Hi,

Mit SQL kenne ich mich bestens aus!

ICh kann PHP und MYSQL und kann dort ohne Probleme jeden MySql Query Befehl machen und das leuft sowohl UPDATe als INSERT und SELECT

also an msql Kenntnissen hängt es nicht!!! :D

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Konto

Navigation

Suchen

Suchen

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.