Click here to Skip to main content
15,902,198 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionControl master/wave/mic of soundcard Pin
Me kiter11-Sep-08 8:01
Me kiter11-Sep-08 8:01 
AnswerRe: Control master/wave/mic of soundcard Pin
jzonthemtn11-Sep-08 10:05
jzonthemtn11-Sep-08 10:05 
Questionmetaphones Pin
lawasso11-Sep-08 4:16
lawasso11-Sep-08 4:16 
AnswerRe: metaphones Pin
leppie11-Sep-08 4:34
leppie11-Sep-08 4:34 
QuestionVBScript - View Source Pin
Reelix11-Sep-08 3:55
Reelix11-Sep-08 3:55 
AnswerRe: VBScript - View Source Pin
jzonthemtn11-Sep-08 6:24
jzonthemtn11-Sep-08 6:24 
GeneralRe: VBScript - View Source Pin
Reelix11-Sep-08 20:11
Reelix11-Sep-08 20:11 
QuestionVB.net Searching File for string Pin
Maffyx11-Sep-08 3:29
Maffyx11-Sep-08 3:29 
Ok I have a file that I want to search for an ID number, this number has some data in a string of integers after it. I want to be able to search for the ID number and then record the last number of the string. I'll post some sample data here:


<code>[6661] = "0:3;3;1861999.8;2454571.3;2716464.2;1469749.8",</code>
[12024] = "774:1;1;60000.0;60000.0;60000.0;60000.0",
[7431] = "866:1;1;20000.0;20000.0;20000.0;20000.0",
[12030] = "1191:1;1;33000.0;33000.0;33000.0;33000.0",
[15602] = "336:1;1;28844.0;28844.0;28844.0;28844.0",
[15349] = "769:1;1;70000.0;70000.0;70000.0;70000.0",



The way the integers are read is

The item number for Flurry Axe is 871. The following entry in my Auc-Stat-Simple.lua represents it

[871] = "0:11;14;2805857.8;2670179.1;2780751.9;2991890.6",

To take it one piece at a time:


1) [871] = Item #
2) "0:" = Suffix number
3) "11;" = ???
4) "14;" = ???
5) "2805857.8;" = This correlates with the 3 day average from Stat-Simple, as you can see in the picture of the Tooltip I've attached.
6) "2670179.1;" = This correlates with the 7 day average from Stat-Simple
7) "2780751.9;" = This correlates with the 14 day average from Stat-Simple
8) "2991890.6" = This correlates with the the Average Mimimum BuyOut from Stat-Simple


I want to know how to search for the Item# and then take the last number (8), and then store it. After I have it stored I need to know how to convert that number to a certain format. The format of the number is in an in game currency. The set up would be Gold(g),Silver(s),Copper(c) so number 8 would be formatted as 299g 18s 91c. So we'll look at the first string of data in the code box.

[6661] = "0:3;3;1861999.8;2454571.3;2716464.2;1469749.8",

I want to be able to search for 6661 for the ItemID then get the 8th number in that string which is 1469749.8. I want that number to be converted to this format 146g 97s 50c. My main issue is searching for the ItemID and then I guess I would have to figure out how to split the last number, as well as round the decimal if there is one.

If you want to look at the file that needs to be searched it can be found here http://rapidshare.com/files/144373662/Auc-Stat-Simple.lua.html[^]Virus Scan here for those who want it:http://www.virustotal.com/analisis/49bb2fc360d420da5100356a2603dc12[^] If you want to view the contents of the file, just open it with notepad.
AnswerRe: VB.net Searching File for string Pin
jzonthemtn11-Sep-08 6:28
jzonthemtn11-Sep-08 6:28 
GeneralRe: VB.net Searching File for string Pin
Maffyx11-Sep-08 10:31
Maffyx11-Sep-08 10:31 
GeneralRe: VB.net Searching File for string Pin
Maffyx13-Sep-08 18:58
Maffyx13-Sep-08 18:58 
GeneralRe: VB.net Searching File for string Pin
Maffyx13-Sep-08 20:05
Maffyx13-Sep-08 20:05 
GeneralRe: VB.net Searching File for string Pin
Maffyx13-Sep-08 20:42
Maffyx13-Sep-08 20:42 
QuestionVBA Quicky Pin
harveyhanson11-Sep-08 0:51
harveyhanson11-Sep-08 0:51 
AnswerRe: VBA Quicky Pin
ChandraRam11-Sep-08 1:20
ChandraRam11-Sep-08 1:20 
QuestionInternet Explorer Toolbar Pin
Gagan.2011-Sep-08 0:38
Gagan.2011-Sep-08 0:38 
AnswerRe: Internet Explorer Toolbar Pin
harveyhanson11-Sep-08 0:52
harveyhanson11-Sep-08 0:52 
GeneralRe: Internet Explorer Toolbar Pin
Gagan.2011-Sep-08 18:13
Gagan.2011-Sep-08 18:13 
AnswerRe: Internet Explorer Toolbar Pin
LloydA11112-Sep-08 12:41
LloydA11112-Sep-08 12:41 
QuestionRe: Internet Explorer Toolbar Pin
Gagan.2012-Sep-08 17:03
Gagan.2012-Sep-08 17:03 
QuestionWindows Services Pin
Gagan.2011-Sep-08 0:32
Gagan.2011-Sep-08 0:32 
AnswerRe: Windows Services Pin
jzonthemtn11-Sep-08 1:28
jzonthemtn11-Sep-08 1:28 
QuestionRe: Windows Services Pin
Gagan.2011-Sep-08 18:21
Gagan.2011-Sep-08 18:21 
AnswerRe: Windows Services Pin
jzonthemtn12-Sep-08 2:18
jzonthemtn12-Sep-08 2:18 
AnswerRe: Windows Services Pin
LloydA11112-Sep-08 12:50
LloydA11112-Sep-08 12:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.