Der folgende Visual Basic-Code initiiert eine OLE DB-Verbindung zu SQL Anywhere
The following Visual Basic code initiates an OLE DB connection to SQL Anywhere
Mit Hilfe der AllowBreakIntoCode -Eigenschaft können Sie festlegen, ob der Benutzer Visual Basic-Code anzeigen kann, nachdem in einem Modul ein Laufzeitfehler eingetreten ist.
You can use the AllowBreakIntoCode property to specify whether or not the user can view Visual Basic code after a run-time error occurs in a module.
Mit Änderungen zur Entwurfszeit, die in der Regel über Visual Basic-Code durchgeführt werden, können Sie auch Kombinationsfeld-Steuerelemente hinzufügen oder ändern.
The design-time changes you'll usually make from Visual Basic code are ones that add or modify combo box controls.
Der folgende Visual Basic-Code verwendet z.B. die Anweisung DDEPoke , um eine SQL-Anweisung zu erstellen und dann das Ergebnis der Abfrage anzufordern.
For example, the following Visual Basic code uses the DDEPoke statement to build an SQL statement and then request the results of the query.
Sie können die Anzeige von Warnungen und anderen Meldungen während der Ausführung von Microsoft Visual Basic -Code vorübergehend anhalten, indem Sie die SetWarnings -Methode verwenden, um die Warnmeldungen -Aktion auszuführen.
You can temporarily stop the display of warnings and other messages while Microsoft Visual Basic code is running by using the SetWarnings method to carry out the SetWarnings action.
Oft ist es sinnvoll, zum Verbessern der Geschwindigkeit, mit der Ihr Microsoft Visual Basic -Code ausgeführt wird, einen effizienteren Ansatz zu wählen. Bestimmte Techniken können Ihnen helfen, die Ausführung Ihres Codes zu beschleunigen.
Often, the best way to improve the speed at which your Microsoft Visual Basic code runs is to choose a more efficient approach. However, certain techniques can help make your code run faster.
Fügen Sie der Ereignisprozedur Visual Basic -Code hinzu, um im zweiten Formular die Datensätze anzuzeigen, deren Feldwerte mit denen eines entsprechenden Felds im ersten Formular übereinstimmen.
Add Visual Basic code to the event procedure to display records in the second form that have field values that match a related field on the first form.
Potentially sensitive or inappropriate content
Examples are used only to help you translate the word or expression searched in various contexts. They are not selected or validated by us and can contain inappropriate terms or ideas. Please report examples to be edited or not to be displayed. Potentially sensitive, inappropriate or colloquial translations are usually marked in red or in orange.