Creating value expression​s dynamicall​y with strings and numbers?

Hello everybody!
I'm having a problem regarding passing arguments (DLL-Adapter) from different locations to a function in TestStand 3.5.
Here is what I have:
FileGlobals.Data.MyArray
and
StationGlobals.Data.MyArray
Which means there are 2 arrays of the same type, one stored in the sequence and one globally. "Data" is just a container.
The type of MyArray is a custom one each element containing a string and a number: Array[n].Name and Array[n].Nr
Now I want to pass (string) arguments of the array to a function using a value expression of: FileGlobals.Data.MyArray[Step.index].Name
Whereas Step.index is a local property (number) of a custom step. It's working well!
Here is the actual problem:
Since I have to sources, FileGlobals OR StationGlobals, I want to specify dynamically which string to pass.
Therefore I introduced a property Step.ThisIsMyScope . It's a string containing either "FileGlobals" or "StationGlobals".
I have been experimenting in expressions like
Step.ThisIsMyScope + ".Data.MyArray[" + Step.index + "].Name"
or Evaluate(...) , etc.
Nothing worked.
I do not want to use the API, though I managed to do things with getValString and temporary saving the Value in the step, but that's not nice nor transparent enough.
May anyone help me?
Thank you very much,
Stefan

Hi,
have you tried Evaluate(Step.ThisIsMyScope + ".Data.MyArray[" + Step.index + "].Name")
or
(Step.ThisIsMyScope == "FileGlobals"  )  ?  (FileGlobals.Data.MyArray[ Step.index].Name)  :  (StationsGlobals.Data.MyArray[ Step.index].Name)
Regards
Ray Farmer
Message Edited by Ray Farmer on 04-05-2007 10:09 AM
Regards
Ray Farmer

Similar Messages

  • Is there a way to create a year at a glance with detail and print?

    Is there a way to create a year at a glance with detail and print?

    To do what Dave indicated you need to do, it depends on what version of Acrobat you have:
    Acrobat 8: Advanced > Enable Usage Rights in Adobe Reader
    Acrobat 9: Advanced > Extend Features in Adobe Reader
    Acrobat 10: File > Save As > Reader Extended PDF > Enable Additional Features
    Acrobat 11: File > Save as Other > Reader Extended PDF > Enable More Tools (includes form fill-in & save)
    I wonder what it will be next time?

  • I am running Yosemite and have just bought Pro Tools Express with the intent to Upgrade to Pro Tools 11. Pro Tools Express is not compatible with Yosemite and will not install. How can I get this done?

    I am running Yosemite and have just bought Pro Tools Express with the intent to Upgrade to Pro Tools 11. Pro Tools Express is not compatible with Yosemite and will not install. How can I get this done?

    I have had this problem for close to a year. I have an Extreme base station, two Airport Express's and multiple G4 Mac's with up to date software. I have spent a huge amount of time trouble shooting, resetting, reapplying software and finally calling Applecare without any help. It would be great to get this problem solved.
    Powerbook G4   Mac OS X (10.4.7)  

  • Hi all! What is the best way to create the correct space for baseball jersey names and numbers? along with making sure they are the right size for large printing.

    What is the best way to create the correct space for baseball jersey names and numbers? along with making sure they are the right size for large printing.

    Buying more hard drive space is a very valid option, here.  Editing takes up lots of room, you should never discount the idea of adding more when you need it.
    Another possibility is exporting to MXF OP1a using the AVC-I codec.  It's not lossless, but it is Master quality.  Plus the file size is a LOT smaller, so it may suit your needs.

  • Pass Values to Edit Form thru Query String and Save in List

    I have developed a custom Edit form from SharePoint Designer and I am passing values thru Query String as below;
    http://<>/cli/acc/Lists/GIInfo/testEdit.aspx?ID=262&com=POD_Send
    And, user supposed to save the form directly without changing the values came thru Query String as below. 
    Now, issue is, when user saves the form, values is not getting saved. It saves when we change the value in text box or when we do a text change event in form. Becasue data binding says Text Change even in data binding property.
    __designer:bind="{ddwrt:DataBind('u',concat('ff22',$Pos),'Text','TextChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@Actions')}"/>
    Kindly guide me what is the issue, or correct approach to do that? I want to pass values to Edit Form thru Query string and save in List without changing those.
    -Rajesh A.

    I know this is late, but i found a very good solution on this post and credit goes to the author.
    https://social.msdn.microsoft.com/Forums/sharepoint/en-US/4be1be38-0663-4b80-8f28-45f38f98f9d0/sharepoint-designer-2010-custom-newformaspx-data-in-textbox-fields-dont-save-on-submission?forum=sharepointcustomizationprevious
    The issue was resolved by changing the textbox values,
    <asp:TextBox runat="server" id="ff1{$Pos}" Name="Title" Text="" Value="{$Destination}"  __designer:bind="{ddwrt:DataBind('i',concat('ff1',$Pos),'Text','TextChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@Title')}">
    instead of
    <asp:TextBox runat="server" id="ff1{$Pos}" Name="Title" Text="{$Destination}"  __designer:bind="{ddwrt:DataBind('i',concat('ff1',$Pos),'Text','TextChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@Title')}">

  • Not allowing to create field starting with underscore and numbers

    Hi All
    I'm trying to create a datatype in PI 7.1 with element starting with underscore and numbers like _Name , 1.0.Name. when I'm trying to activate the dataype. I'm getting the error Activation of the change list canceled.please help me out
    Thanks in advance.

    What exactly are you viewing in production - a data type? You could be viewing an external message. Reconfirm.
    rgds
    gab

  • I would like to read a file and display the results in a table containing both strings and numbers?

    Hi,
    I just need a simple way of doing this as at the moment, i read one line at the time containing strings and numbers, whenever i convert this line to an array i loose the strings, if i want to display it, it displays as a group of lines while i would like to display it as a table with column headers. The file is an .xls worksheet.
    Any suggestions?
    Thanks
    Me

    Hi,
    Look at attach vi.
    If this is not what you need please clarify.
    With ActiveX you can Open Excel, interact with it (read and write values to cells...
    But if you can read it this way, I think it's easier.
    Hope this helps,
    Paulo
    Attachments:
    XL.zip ‏24 KB

  • Storing strings and numbers in a spreadsheet

    in this file i understand that the data types are incorrect. but what i dont know is how to fix it so i can write arrays filled with strings and arrays filled with numbers to seperate columns in an excel spreadsheet.
    Solved!
    Go to Solution.

    sorty here it is.  thanks.
    Attachments:
    learning with kevin 17.vi ‏119 KB

  • Haven't been able to use pages for a while.  Keep getting following message.  Have tried reinstalling iWork, but no luck.  Same problems with Keynote and Numbers/Users/scottmcdonald/Desktop/Screen Shot 2012-03-14 at 9.39.52 PM.png

    Haven't been able to use pages for a while.  Keep getting following message.  Have tried reinstalling iWork, but no luck.  Same problems with Keynote and Numbers/

    Have you moved Pages from its installed location? Or just dragged a copy to your current system?
    It can't find some of its resources apparently.
    Peter

  • I purchased a IPad Air with Pages and Numbers included. I was told I could use these apps on my mac book and other devices. How do I sync or access these from my mac.

    I purchased a IPad Air with Pages and Numbers included. I was told I could use these apps on my other devices like my MacBook. How do I sync or add these to my macBook?

    the free apps are only for ios device (iphone ipad ipod touch) and do not work on mac computers. if you do get pages and numbers on your mac though you can sync the information using icloud

  • I need to have endnotes at the end with sections and numbering beginning again for each section. I also need to be able to write Chapter

    I need to have endnotes at the end with sections and numbering beginning again for each section. I also need to be able to write Chapter #s above each section of endnotes. How do I do this, please?

    I have precisely the same problem and am wondering if anyone has found a workaround for what seems to be a bug or an unattended issue in Pages. Hopefully the next update (whenever it arrives, I hope it arrives soon) will take care of this.

  • My contacts all got deleted from my phone, and was replaced with names and numbers of people I've never met before.

    My phone was working as normal, then all of a sudden when I checked my text messages all the names of my contacts got replaced by their actual phone numbers. When I checked my contacts, it looks like everyone got deleted from my phone, and was replaced with names and numbers of people I've never met before. Even when I check my icloud for a backup it has the same issue. I don't know how this is possible and not certain as to how to rectify and get my contacts back.

    Hi Also iPhone, need update to ios 8.1.2 do this over WiFi Use same Apple ID & Password. Cheers Brian

  • Question: When I want to send SMS and click on the contact, the contact came out with names and numbers, as if the whole contacts are there in the phone. When I open the contact, I can only see 3 contact names and the rest of 4000  contacts are not listed

    Question: When I want to send SMS and click on the contact, the contact came out with names and numbers, as if the whole contacts are there in the phone. However, when I open the contact, I can only see 3 contact names and the rest of 4000 plus contacts are not listed, and it makes you difficult to call through contact

    The iPhone remembers information about previous contacts.
    Complelely independently, you have a Contacts app with a contacts list.  It sounds like your contacts list has 3 names on it.  You need to add a few names.

  • Can i safely trash Iwork '08 since i have already Installed Iwork '11 or will i loose my documents made with pages and numbers '08???

    can i safely trash Iwork '08 since i have already Installed Iwork '11 or will i loose my documents made with pages and numbers '08???

    You can have multiple versions installed simultaneously.  It won't hurt to delete the '08 apps, because the '09 apps will convert '08 to '09, but there is no reason to do the deletion.
    You say that you have iWork '11.  If that's true, it's really big news.  More likely, you have iWork '09.
    Jerry

  • How to read a C structure with string and int with a java server using sock

    I ve made a C agent returning some information and I want to get them with my java server. I ve settled communication with connected socket but I m only able to read strings.
    I want to know how can I read strings and int with the same stream because they are sent at the same time:
    C pgm sent structure :
    char* chaine1;
    char* chaine2;
    int nb1;
    int nb2;
    I want to read this with my java stream I know readline methode to get the first two string but after two readline how should I do to get the two int values ?
    Any idea would be a good help...
    thanks.
    Nicolas (France)

    Does the server sent the ints in little endian or big endian format?
    The class java.io.DataInputStream (with the method readInt()) can be used to read ints as binary from the stream - see if you can use it.

Maybe you are looking for

  • Using JavaBean with JSP...will not work no matter what

    Hi guys. Sorry that this is such a common, newb question, but I don't know where else to turn. I'm new to web application development, Tomcat, and JSP. I'm trying to use a simple JavaBean in a JSP to store some user information. The JSP is located in

  • Report error after upgrading to 2.1

    Hello, I upgrade my MBAM integrated with SCCM 2012 setup to 2.1 from 2.0 and now I get an error whenever I run the reports.  The error is the same wither I run the report from SSRS or from the SCCM console.  Any ideas? Error : the 'MBAM Policy' view

  • Can the Microsoft word software be downloaded to an iPad with retina display?

    IM getting a new iPad this year and i was wondering if the computer software of Microsoft word (preferably 2010) software could be downloaded to the iPad itself or if i had to use the iPad apps such as keynote and etc..

  • WAN Port disconnecting Ethernet between Gigaset 4300 DSL modem

    I have a WRT400N setup as a wireless/wired router on a Windstream DSL modem.  The Ethernet light on the Modem keeps going out and it log's a disconnect.  At the same time, the internet connection light on the WRT400N goes out.  I disconnect the route

  • Create a network with a wireless modem?

    Hi just got a macbook pro not quite new. Am wondering can I set up a network to share files and stuff from my windows xp sp3 computer? I have a wireless modem with a built in router from the phone company. Do I need to buy anything like airport extre