Jump to content

parse tabbed string into array


monte
 Share

Recommended Posts

hello. I am trying to parse a tabbed delimited string into an array using stringsplit(). The tabbed string contains:

This is the contents of the clipboard

I want to parse element 4 from the array: 'contents'.

here's what I've got:

#include <array.au3>

$vClipboardData=clipget()

$vElement=stringsplit(vClipboardData, "")

msgbox(0,"my string is:", $vElement[4])

My problem is that I cannot find the "tab" delimiter syntax for the stringsplit function. Thanks in advance for any help you may be able to provide.

Link to comment
Share on other sites

hello. I am trying to parse a tabbed delimited string into an array using stringsplit(). The tabbed string contains:

This is the contents of the clipboard

I want to parse element 4 from the array: 'contents'.

here's what I've got:

#include <array.au3>

$vClipboardData=clipget()

$vElement=stringsplit(vClipboardData, "")

msgbox(0,"my string is:", $vElement[4])

My problem is that I cannot find the "tab" delimiter syntax for the stringsplit function. Thanks in advance for any help you may be able to provide.

Try this:

$vClipboardData=clipget()
$vElement=stringsplit($vClipboardData, @TAB)
msgbox(0,"my string is:", $vElement[4])

And you don't need #include<array.au3> for this small script.

Edited by flaxcrack

[quote] Gilbertson's Law: Nothing is foolproof to a sufficiently talented fool.Sandro Alvares: Flaxcrack is please not noob! i can report you is stop stupid. The Post[/quote]I made this: FWD & MD5PWD()

Link to comment
Share on other sites

Thank you so much flaxcrack! And for the quick reply! I checked the autoit forums and googled for hours and found nothing! Oh what stumped me for hours....and you solved it in seconds! Thank you again. I appreciate it!

Link to comment
Share on other sites

Thank you so much flaxcrack! And for the quick reply! I checked the autoit forums and googled for hours and found nothing! Oh what stumped me for hours....and you solved it in seconds! Thank you again. I appreciate it!

Wow Monte! Thank you! You made my day! :lmao:

[quote] Gilbertson's Law: Nothing is foolproof to a sufficiently talented fool.Sandro Alvares: Flaxcrack is please not noob! i can report you is stop stupid. The Post[/quote]I made this: FWD & MD5PWD()

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...