Showing results 1 to 1 of 1

Thread: Regular issue with VBA progress bar and RTFunction end sync

  1. #1
    Join Date
    21.09.2020
    Posts
    1

    Default Regular issue with VBA progress bar and RTFunction end sync

    I have a problem with this type of code

    Public Sub ExportAllArchive()

    Dim VarPercentage As Variable


    Set VarPercentage = thisProject.Variables.Item("VarAuxPercentage")
    ' VarAuxPercentage is linked to a numeric and is rapresented graphically during the export state '


    thisProject.RtFunctions.Item("Open_Image_Export_Status").Start
    ' Open a image with progress bar '

    VarPercentage.Value = 0
    thisProject.RtFunctions.Item("ExportArchive0").Start
    ' Export of an archive from approx 10MB in 5-10second '


    VarPercentage.Value = 10
    thisProject.RtFunctions.Item("ExportArchive1").Start
    ' Export of an archive from approx 10MB in 5-10second '


    ......


    VarPercentage.Value = 100
    thisProject.RtFunctions.Item("ExportArchive10").Start
    ' Export of an archive from approx 10MB in 5-10second '




    thisProject.RtFunctions.Item("Funz_Close_Image_Export_Status").Start
    ' Close a image with progress bar '

    I don't understand why exports don't keep up with my variable growth export status percentage
    How can I write code to increase the percentage variable at the end of each finished export function? With the following code, I still have 100, even during the current export. CyberGhost black friday
    Last edited by samajkapoor : 22nd September 2020 at 10:23

Similar Threads

  1. Time Sync using MODBUS Variable
    By mn3020 in forum VBA
    Replies: 1
    Last Post: 2nd March 2020, 10:10
  2. Replies: 4
    Last Post: 1st October 2019, 09:00
  3. Problem with VBA and RTFunction
    By doublem in forum VBA
    Replies: 0
    Last Post: 20th September 2019, 14:42
  4. Zenon Time Sync
    By Praveen Kumar Karthikeyan in forum zenon Supervisor
    Replies: 1
    Last Post: 3rd September 2019, 08:38
  5. How to create a rtfunction with vb
    By gozzi in forum VBA
    Replies: 2
    Last Post: 8th March 2011, 11:19

Posting Rules

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •