PDA

View Full Version : Quotation mark


siray
12-23-2008, 02:47 PM
hi all,
I need your help ;)

how to write these keywords in ListBox.SetItemData("ListBox1", 16, "......."); ?

":8080"":3128"":80" filetype:txt

im confuse when i try to mix the quotation marks

many thanks :lol

Derek
12-23-2008, 03:11 PM
Can you explain what you are trying to do here?
It looks like you are specifying different proxy settings on one line, but i can't really see how that's gonna work.

siray
12-23-2008, 03:27 PM
yup, Derek...

what i want to do is when i double click the listbox, google search will automatically displaying the result of that keyword in browser (":8080"":3128"":80" filetype:txt)

The result like this (http://www.google.co.id/search?hl=id&q=%22%3A8080%22%22%3A3128%22%22%3A80%22+filetype%3 Atxt&btnG=Telusuri+dengan+Google&meta=&aq=f&oq=)

But first, i have to write that keyword in ListBox.SetItemData("ListBox1", 16, ".......");

My question is how to concatenate the Listbox.SetItemData's quotation marks with that keyword's quotation marks?

sorry 4 my english and thank you

ShadowUK
12-23-2008, 03:52 PM
ListBox.SetItemData("ListBox1", 1, '":8080"":3128"":80" filetype:txt');

siray
12-23-2008, 04:37 PM
ListBox.SetItemData("ListBox1", 1, '":8080"":3128"":80" filetype:txt');

Thanks Shadow,
but this is what displayed in google search box with no result:

:8080:3128:80 filetype:txt (without quotation mark)

what i want is something like this : google result (http://www.google.com/search?hl=en&q=%22%3A8080%22%22%3A3128%22%22%3A80%22+filetype%3 Atxt&btnG=Google+Search&aq=f&oq=)

actually this is my entire scripts:
ListBox.SetItemData("ListBox1", 16, '":8080"":3128"":80" filetype:txt');
strGetDat = ListBox.GetItemData("ListBox1", 16);
File.OpenURL("http://www.google.com/search?query="..strGetDat, SW_SHOWNORMAL);

It's done when im using input object, but not work with listbox.

Thanks

ShadowUK
12-24-2008, 12:47 PM
Thanks Shadow,
but this is what displayed in google search box with no result:

:8080:3128:80 filetype:txt (without quotation mark)

what i want is something like this : google result (http://www.google.com/search?hl=en&q=%22%3A8080%22%22%3A3128%22%22%3A80%22+filetype%3 Atxt&btnG=Google+Search&aq=f&oq=)

actually this is my entire scripts:


It's done when im using input object, but not work with listbox.

Thanks

Why don't you set your ListBox data to change the " to a !, Then when you run the web function. Call String.Replace to replace the ! to a ".

Derek
12-24-2008, 04:27 PM
The item data is set just fine. The problem is passing the " into Google. Doesn't wanna work for some reason.

Imagine Programming
12-24-2008, 04:47 PM
The item data is set just fine. The problem is passing the " into Google. Doesn't wanna work for some reason.

Hmm, google is not filtering them out... weird

siray
12-25-2008, 02:57 PM
thanks all ;)

RizlaUK
12-28-2008, 08:50 AM
but, it works fine without the quotation marks

strGetDat=":8080 :3128 :80 filetype:txt"

-- Test
File.OpenURL("http://www.google.com/search?query="..strGetDat, SW_SHOWNORMAL);

siray
12-29-2008, 03:22 PM
ThANKS mr. Dean....:lol

It works!:)

Many thanks :yes :yes