Sign in to follow this  
Followers 0
itctravel

making 2 variables from comma seperated data

7 posts in this topic

I have data that gets returned from an outside app that has 2 datafields that are seperated with a comma i.e. data1,data2.

How would I go about defining the data before the comma to a variable i.e. $Var1 and after the comma $Var2 ?

Thanks for any insight!

Share this post


Link to post
Share on other sites



stringsplit, stringregexp, stringinstring in conjunction with stringleft and string right


IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window.

Share this post


Link to post
Share on other sites

Hi, itctravel. You already have a thread going where you ask this question. Please stick to a single thread rather than creating multiples. It makes it easier for those trying to assist.


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites

Search the forum for "CSV read write" and you will find a lot of code which should at least give a kick start.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

Thanks Water, I will check out your example.

I did end up finding 'StringSplit' before posting but couldn't figure how to make it do what I wanted to. I am sure the example you mention should help me piece it together.

JLogan3o13 I am not trying to get anyone upset, I thought this question to be independent of my previous post.

Share this post


Link to post
Share on other sites

Hi, itctravel. No one is upset :) We just like to keep to one topic at a time, so those attempting to help don't have to flip back and forth between threads. If your previous thread is resolved, you can go into it and edit your original post to reflect that.


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites

Hey Guys, with your help, I now completed my script and am very happy with the results. Thanks to all for your guidence!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0