Login | |
|
 |
RE: Re: Love calculator script for "pinocchioh &q... - 2/2/2006 7:18:27 AM
|
|
 |
|
| |
kirrilian
Posts: 628
Score: 3
Joined: 3/15/2005
From:
Status: offline
|
id use a scripting dictionary to store the letters that have already been used, that would be easiest how many people did this pinocchioh person pm to get them to write this script for them?
_____________________________
Have you searched here ? VBScript Fundamentals My Site
|
|
| |
|
|
|
 |
RE: Re: Love calculator script for "pinocchioh &q... - 2/2/2006 7:22:15 AM
|
|
 |
|
| |
Cybex
Posts: 412
Score: 0
Joined: 9/14/2005
From: Florida
Status: offline
|
I got the same PM request for help. Cybex
_____________________________
Common sense is not so common.
|
|
| |
|
|
|
 |
RE: Re: Love calculator script for "pinocchioh &q... - 2/2/2006 7:25:39 AM
|
|
 |
|
| |
Cybex
Posts: 412
Score: 0
Joined: 9/14/2005
From: Florida
Status: offline
|
I seriously doubt their teacher has covered using dictionaries yet... He needs to do most of this himself or he will just be worse off later on... I have no problem helping him but he needs to understand this if it is part of a class. Why would you take the class if you didn't want to learn it? Cybex
_____________________________
Common sense is not so common.
|
|
| |
|
|
|
 |
RE: Re: Love calculator script for "pinocchioh &q... - 2/2/2006 7:59:49 AM
|
|
 |
|
| |
Cybex
Posts: 412
Score: 0
Joined: 9/14/2005
From: Florida
Status: offline
|
First thing you have to do is get the variable strings into the script. (inputbox) Then you have to break the string up letter by letter. (Mid in a For Next) Push each letter into an array as a unique element in the array. Then loop through each element in each of the arrays and compare it to the other elements, if it matches count it (start variable = 1 and then on match variable = variable + 1) After you have compared each element in both arrays you should have a total value to finish the math against. This is barebones, but it gives you an idea. I got the first half coded in about 10 minutes. The match count is somewhat trickier. I doubt I will post my script but please post yours and we will help you along. Cybex
_____________________________
Common sense is not so common.
|
|
| |
|
|
|
 |
RE: Re: Love calculator script for "pinocchioh &q... - 2/2/2006 11:46:48 AM
|
|
 |
|
| |
Cybex
Posts: 412
Score: 0
Joined: 9/14/2005
From: Florida
Status: offline
|
Bull, if you are going to give it to him aleast post it publicly to help others that are willing to read and learn. He is getting it written for him, why does he get to establish how it gets posted? Cybex ***EDIT*** I don't have anything against helping him it just seems shady the way he PM everyone asking for someone to write it for him and then he doesn't want it posted in the open forum so his instructor can't see where he got the code or something. I work with a few people who have degrees and certs that dont know their a** from a hole in the ground so I disagree with giving people the answers versus helping them understand the problem.
< Message edited by Cybex -- 2/2/2006 3:04:03 PM >
_____________________________
Common sense is not so common.
|
|
| |
|
|
|
 |
RE: Re: Love calculator script for "pinocchioh &q... - 2/2/2006 7:31:14 PM
|
|
 |
|
| |
ginolard
Posts: 1068
Score: 21
Joined: 8/10/2005
Status: offline
|
quote:
then it counts the first and the last cum *snigger* I think your Love Calculator might be getting a little TOO over-eager.
|
|
| |
|
|
|
 |
RE: Re: Love calculator script for "pinocchioh &q... - 2/3/2006 12:52:44 AM
|
|
 |
|
| |
Country73
Posts: 733
Score: 10
Joined: 8/25/2004
From: USA
Status: offline
|
Just wanted to make a little comment on this current post. This forum was setup to help out other scripters (give them a helping hand and share the knowledge for anyone that visits this site). I don't believe this forum was setup for individuals to locate specific individuals to do their work for them. Helping out a fellow scripter is fine, but the information should be passed along for everyone else.
|
|
| |
|
|
|
 |
RE: Re: Love calculator script for "pinocchioh &q... - 2/3/2006 1:59:53 AM
|
|
 |
|
| |
kirrilian
Posts: 628
Score: 3
Joined: 3/15/2005
From:
Status: offline
|
actually this is for school work looks like. i dont mind helping, but i wont write something for someone that they need to learn themselves
_____________________________
Have you searched here ? VBScript Fundamentals My Site
|
|
| |
|
|
|
|
|