itctravel Posted September 11, 2012 Posted September 11, 2012 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!
jdelaney Posted September 11, 2012 Posted September 11, 2012 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.
Moderators JLogan3o13 Posted September 11, 2012 Moderators Posted September 11, 2012 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. "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum!
water Posted September 11, 2012 Posted September 11, 2012 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 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki
itctravel Posted September 11, 2012 Author Posted September 11, 2012 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.
Moderators JLogan3o13 Posted September 11, 2012 Moderators Posted September 11, 2012 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. "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum!
itctravel Posted September 12, 2012 Author Posted September 12, 2012 Hey Guys, with your help, I now completed my script and am very happy with the results. Thanks to all for your guidence!
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now