Forums.MrPLC.com: Open a File for View - Forums.MrPLC.com

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Open a File for View Rate Topic: -----

#1
User is offline   lostcontrol 

  • Sparky
  • PipPipPip
  • Group: MrPLC Member
  • Posts: 370
  • Joined: 27-May 09
  • Country:New Zealand
    New Zealand
How does one go about opening a text file with a dynamic name in a CX-Supervisoir script?

I can open notepad no problem, but cannot wokr out how to make it reference the dynamic filename. I have tried VB type syntax that I have used in other applications, but does not seem to work in VBScript... :shrug:
0

#2
User is offline   Berti Baker 

  • Sparky
  • PipPipPip
  • Group: MrPLC Member
  • Posts: 220
  • Joined: 26-July 06
  • Country:United Kingdom
    United Kingdom

View Postlostcontrol, on 27 October 2010 - 02:47 AM, said:

How does one go about opening a text file with a dynamic name in a CX-Supervisoir script?

I can open notepad no problem, but cannot wokr out how to make it reference the dynamic filename. I have tried VB type syntax that I have used in other applications, but does not seem to work in VBScript... :shrug:

Hi,

Maybe too late, but for reference... anywhere you that you can type
... "C:\my filename here" ...
you can replace with the name of any text point. So you can assign the value of the text point (or edit the value) and then call your code.

If you want to add the specific code in question I'm sure you'll get it corrected.
Regards,
BB

This post has been edited by Berti Baker: 20 January 2011 - 12:13 PM

0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users