2 Replies Latest reply on Oct 1, 2010 3:16 PM by Benjamin Abshire

    Cannot get a string variable from a DataCard from within a Task script!

    Benjamin Abshire

      All, Has anyone successfully gotten a string variable from a DataCard from within a Task script? I am attempting to use a data card to get a change approvers name before releasing a drawing. Every time I enter a string the task fails with no real explanation. If I enter a number it works. If I enter a number and string (something like “1test”) it also fails. I have simplified my task code (below) to illustrate. Screen shots of my variable definition, data card, input and results are attached. I am using EPDM version 10.01.0616. The use of {} or [] doesn’t seem to make any difference. The help file suggests {} but the Print and Convert tasks use [] in their scripts. Sub main() Dim Y as String Dim Z as String Y = [ChangeApprover] Z = {ChangeApprover} msgbox "Standard Brackets  = " & Y & "  Curved Brackets = " & Z End Sub Thanks