Automatische Funktionserstellung beim Anlegen eines neuen Bildes
Hallo, ich habe mal gehört, daß man den zenOn-Editor über die VBA-Schnittstelle programmieren kann. Dazu hätte ich folgenden Fall: Jedesmal, wenn ich ein neues Bild anlege, hätte ich dazu gerne automatisch zwei Funktionen erzeugt: 1. Die Bildaufruf-Funktion,
VBA Help documentation
Since zenOn 6.22 SP1 the VBA help documentation is integrated within the general help documentation (as an extra node in the tree). With zenOn 6.22 SP0 the VBA help documentation is available at the installation path of zenOn (i.e. "C:\Program Files\COPA-DATA\zenon
Cannot add VBA macro to the function
Hi I tried to add VBA macro to the function and nothing happen. I am stuck at pop up dialog box "macro". I just want to know how do I create macro to use in my function. Thanks This is a migrated post! Originally posted on 11.06.2009 by user ekk. Please
Implementing Authorization functionality on Dyn. Elements (Click Events)
At Dynamic Elements (i.e. Text Buttons) authorization groups can be configured (so only a user with the appropriate rights can operate the element). If only VBA Click-Events (like LeftClickUp, LeftClickDown, RightClickUp, ... aso) are configured the standard
changes done in runtime are not reflected
Hi All, I want to change the identification,recourselabel etc during runtime.I have a save function in vb.The main part of Editor_Save function is like this VBA Code: thisProject.Variables.Item(icc).Tagname = thisProject.Variables.Item("strAlarmVarIdentification").Value
Zugriff auf Microsoft WebBrowser
Hi @all. Ich hoffe, ich bin hier richtig. Als Newbie im Bereich Zenon stehe ich gerade vor einem Problem. Ich habe ein Bild, welches als einziges Object einen VBerweis auf ein Microsoft-Browser Control besitzt. Unter VBA benötige ich Zugriff auf dieses
an den makierten element die eigenschaft "objekt name" aendern
hallo da "Replace Links" nur für Name und Identification funktioniert bin ich auf der suche nach einer möglichkeit in vba. gibt es eine moeglichkeit an den makierten element der aktuellen geoeffneten seite die eigenschaft "objekt name" zu aendern? (lesen/schreiben)
Objektname im VBA ermitteln
Hallo zusammen, ich habe in einem Bild mehrere Schaltflächen projektiert, bei denen ich unter VBA unter LeftClickUp das gleiche Makro auslöse. Im Makro möchte ich ermitteln von welcher Schaltfläche (Objektname) die Auslösung stattgefunden hat. Kann mir
Online Varaiable ZenOn 6.22
Guten Morgen, ich habe eine Frage zur OnlineVaraiable. Ich lege Onlinecontainer an um Z6.22 auf die Values zugreifen zu können. 1. Frage muss ich um auf die Values zugreifen zu können die OnVar immer "definen"? 2. Damit man den Sourcecode einfach halten
Option button background color wrong
I am trying to use an ActiveX UserControl that contains OptionButtons, a.k.a. Radio buttons. In the control, the background color is set to the default color and never changes, and it is fine in my PC test application, but when it is added to a Zenon
cbo DropDownButtons
Hallo ich habe ZenOn 6.22 SP1 im Gebrauch. Ich benötige eine dynamische Combobox, dieses habe ich mit einem ActiveX Element und dem entsprechenden VBA-Code realisiert. Jetzt habe ich nur noch ein kleines Problem, im gleichen Bild habe ich eine Standart
Speichern unter Dialog
Hallo, ist es möglich in der zenon runtime den Standart speichern unter dialog aufzurufen? Der Code der unter excel funktioniert scheint leider trotz der zugehörigen verweise nicht zu funktionieren VBA Code: Dim Dateiname As Variant Dateiname = Application.GetSaveAsFilename(
Archives (RT) - Read batch information
With zenOn 6.22 SP0 a new method has been implemented for read out batch infomration which are stored in the batch index file (.ari). The method Archive.BatchIndex returns for each batch following information in a String-Array: ARX-FileName;Batchname;Starttime
Missing MAPIForm object Type Libary "MAPIFVBX.TLB"
Guten Tag! Bin gerade daran einen neuen Rechner mit einem alten, auf 5.50 SP 7 laufenden Projekt zum funktionieren zu bringen. Das offenbar letzte Stück das dazu noch fehlt ist eine alte VB 4 Libary "MAPIFVBX.TLB" die ich leider nicht finde. Angeblich
Missing MAPIForm object Type Libary "MAPIFVBX.TLB"
Guten Tag! Bin gerade daran einen neuen Rechner mit einem alten, auf 5.50 SP 7 laufenden Projekt zum funktionieren zu bringen. Das offenbar letzte Stück das dazu noch fehlt ist eine alte VB 4 Libary "MAPIFVBX.TLB" die ich leider nicht finde. Angeblich
how to set the curve name as the variable identification?
How do I define the variable identification as the curve name in the picture switch function to the extended trend picture? VBA Code: Sub change_curve_varname_varid() 'this procedure changes the name of the curve from the variable name to variable identification
Archiv Werteimport über VBA
Ist es möglich über VBA Werte (z.B. aus Excel) in ein vorhandenes zenon Archiv nachzuführen ? This is a migrated post! Originally posted on 02.04.2009 by user Axel. Please be aware that information can be outdated.
Einstellungen für Remote Transport ändern
Hallo! Ich suche einen Weg die Projekteinstellungen für den Remote Transport per VBA zu ändern. Kann mir jemand auf die Sprünge helfen? Es scheint keine direkten Zugriffe im VBA dafür zu geben, kann es über INI-Einträge realisiert werden? Ich muss die
UserChange
Hi, ich hätte da eine frage zu dem User_change event. Und zwar scheint es nicht ausgeführt zu werden. Benötigen würde ich es um einen User nach seinem Logout zu löschen, oder inaktiv zu setzen. Der Code schaut bis jetzt so aus: Dim WithEvents userchange
Creating Structure Datatypes and assign variables to a specific one
Hello, I want to create a structure datatype with VBA (this could also be done manually if the VBA solution is to complex). The following part is more important for me. As next step i want to search all variables for a certain string pattern, if i find
Seltsame Unhandled Exceptions
Hallo, ich hab ein Problem mit VBA in der Runtime 6.22 SP1. Und zwar bekomme ich in unregelmäßigen, nicht reproduzierbaren Abständen Runtime error. Auch die Aktionen, die diesen Verursachen sind vollkommen unterschiedlich, wie gesagt, bis jetzt noch nicht
Größe der VBA-Datei
Hallo Die VBA-Datei unseres Hauptprojekts (Project.vba) belegt momentan 27 MB Speicher. :( Wenn ich aber alle Dateien (Formen, Module, Klassen,...) exportiere, belegen alle diese kleinen Dateien zusammen nur 5 MB. Woher kommt das? Wie kann die 27 MB wieder
Laufzeitfehler...
Hallo, ich habe ein Wizard geschrieben für die Bearbeitung von zenonSprachdatei. Testen kann ich aber nicht, weil immer ein Laufzeitfehler kommt. Keine Ahnung woran das liegen könnte...:confused: This is a migrated post! Originally posted on 05.03.2009
CD_Combobox leftklick function
Hi I've got a problem with the CD_Combobox activeX element. The leftklcikdown action seems to work a little bit "exotic". The problem is it doesn't get executed when the Element in the Editor is smaller then the Font size of the form. Ok thats not a problem,
Microsoft Forms 2.0 Object Library - Multipage ActiveX in zenon
- in zenon, create a picture and add a dynamic element of the type "ActiveX control" in the picture, and in the properties of this element, select the Multipage control: - in the VBA editor, in the menu "Extra" choose "References", and check the Microsoft
VBA Formen immer im Vordergrung
Hallo Startet man aus VBA eine Userform, so ist die immer ALxayOnTop. Wenn ein ZenOn-Bildwechsel in der RT stattfinden, wird das ZenOn Bild immer im Hintergrund aufgeschaltet. Die VBA-Form irgnorierd auch die API-Funktion AlwaysOnTop, d.h. sie ist immer
Kopieren von DynPic in VBA
Hallo derweil arbeite ich noch mit ZenOn 6.20 SP1. Ich möchte über einen Wizard Pilder (dynPicture) kopieren und diese anschliessend neu benennen. Umbennen ist kein Problem aaer die Copy bzw. SaveAs Propertys scheinen nicht zu funktionieren. Einen einzel
Function Hardcopy
Hallo, ich hab einen Code, wieso funktioniert es nicht? Ich kriege keinen Fehler und kein Bild :confused: Hilfe!!! VBA Code: Private Sub HardcopyButton_Click() Dim zPRJ As Project Set zPRJ = ApplicationED.Projects.Item(cmbProjects.ListIndex) zPRJ.DynPictures.Item("test1").Hardcopy
Bildumschaltungsfunktion eines BIldtypes CEL über VBA
Hallo Ich möchte einen Bildumschaltung eines Bildes vom Typ CEL aus VBA realisieren (Inkl. dynamischer Filterkriterien). Ich möchte hierdurch erreichen, dass ich die Bildumschaltungsparameter wie z.B. Filter -> Variablenname bzw. Kennunng dynamisch eingetragen
Variable erzeugen mit VBA
Hallo, ich habe mir Wizards programmiert mit denen ich Variablen im ZenOn Editor erzeugen kann. Wenn ich Variablen von einem eigenen Datentyp anlege sind leider alle Strukturvariablen deaktiviert. œber welche Eigenschaft oder über welches DynProperties
get heigh msforms combo box as aktiveX
Hi I have a problem to get the height in an AktiveX Combobox. I need the height to set the Font.Size of the Combobox because some boxes are on more pictures with a different size. I tried following Code on the Init function Set combobox1 = obElem.AktiveX
VBA - New Online Container in zenOn 6.22 (BulkMode)
With zenOn 6.22 SP0 a new kind of Variable Online Container has been implemented. Using this "Bulk Mode" a faster start of the zenOn Runtime can be guaranteed in comparison to the "normal" Variable Online Container. With the "normal" Variable Online Container
@Modify spontaneous value (0.000000)
I have put two variables in a onlinecontainer. of these variables i have switched off the setting : "Logging in CEL: Setting value with VBA" But still i get a message : @Modify spontaneous value (0.000000) How can I surpress this message. Thanks in advance
Eigene Meldungen im DiagViewer erzeugen
Hallo, ist es möglich, über VBA eigene Meldungen im DiagViewer zu erzeugen? Oder im Ausgabe-Fenster? Wo wird eigentlich Text von ausgegeben? This is a migrated post! Originally posted on 04.02.2009 by user maerz@staudinger-est.de. Please be aware that
How to change ComboBox Entires with VBA
Hi, I got a problem with a Combobox. Is it Possible to change the Entries via VBA in the runtime? It should show a list out of a SQL Database. Or is it possible to include an Userform in Zenon, like an normal objekt. Or is there another way to use the
Breakpoints in VBA
Hallo Die Funktionen, welche in VBA erstellt werden, werden in Zenon beim Aufruf erfolgreich abgearbeitet, jedoch funktioniert das Breakpoint setzen im VBA Editor nicht. Das heisst die Breakpoints werden einfach ignoriert, obwohl der code abgearbeitet
using a text box
Hello I want to use a value from a VBA textbox in runtime . the userform opens but i can't use the value in my makro. thank you very much This is a migrated post! Originally posted on 14.01.2009 by user beer_klinkhammer. Please be aware that information
Read Real variables in VBA
Hello I like to read a Real variable (Zenon) into VBA . But I always get an Error on this Boolean value is no problem. Can someone help me on this Thanks in advance JOulz This is a migrated post! Originally posted on 12.01.2009 by user joulz. Please be
Creating an element with dynamic positioning variables
If an element (i.e. Rectangle) should be created via VBA and it should be positioned dynamically via variables it is important that those variables (XVariable, YVariable) have to be assigned prior to the element and afterwards assigning the scaling properties
Popup variables
I'm using the same popup picture for the same function with different variables. Depending on the passed variables on the popup, I'll have to do something with them. How can I get the variable names from the popup picture and how can I get the name of
Next Page