List Info

Thread: Re: Shares Program




Re: Shares Program
country flaguser name
United States
2007-09-03 15:08:14

I suggest using two timers and the random number generator function in VB6.
The function name is probably rand(), or something like it. If it's like most
software generated random number generators, it will give you a random
value between 0 and .1.  Just multiply the result by 100 and add it to your price.
You can AND it will some other value to limit the range something less.
One timer would go off every two seconds to come up with a random number
to add to your price, and then set the font color to red and start the second
timer to timeout in 1-second. When it times out it turns the font back to the
original color.

Steve


----- Original Message ----
From: dirty_oodus3 <dirty_oodus3yahoo.co.uk>
To: helpwithvbyahoogroups.com
Sent: Sunday, September 2, 2007 9:53:20 AM
Subject: [helpwithvb] Shares Program

Hi everyone,

I was wondering if you could help with this little program i have in
visual basic 6.

I have to produce a program that allows the user to buy and sells
shares (mock program lol).

Could you help me with this? I would like every 2 seconds a new text
file to be read and this would update the prices shown on the form.

And possibly when a price change is made the price that has changed
flashes red for a second?

Do you think reading this information from a text file is the best
way to achieve this?

If you could help me i would greatly appreciate it or any advise
would be welcomed.

Many thanks


__._,_.___
Recent Activity
Visit Your Group
Search Ads

Get new customers.

List your web site

in Yahoo! Search.

Find Enlightenment

Yoga groups and

resources on

Yahoo! Groups.

Re: Shares Program
country flaguser name
United States
2007-09-04 13:44:53

Thanks Steve,

Do you reckon you could help me out with any code?

Or anyone?

Im a bit of a beginner and im finding tough to implement the below?

Still trying

Thanks in advnace to steve or anyone else that can help

--- In helpwithvb%40yahoogroups.com">helpwithvbyahoogroups.com, Steve Trigero <seecwriter...>
wrote:
>
&gt; I suggest using two timers and the random number generator function
in VB6.
>; The function name is probably rand(), or something like it. If it's
like most
> software generated random number generators, it will give you a
random
> value between 0 and .1. Just multiply the result by 100 and add it
to your price.
&gt; You can AND it will some other value to limit the range something
less.
> One timer would go off every two seconds to come up with a random
number
> to add to your price, and then set the font color to red and start
the second
> timer to timeout in 1-second. When it times out it turns the font
back to the
> original color.
&gt;
> Steve
&gt;
>
> ----- Original Message ----
>; From: dirty_oodus3 <dirty_oodus3...>
> To: helpwithvb%40yahoogroups.com">helpwithvbyahoogroups.com
&gt; Sent: Sunday, September 2, 2007 9:53:20 AM
> Subject: [helpwithvb] Shares Program
>
>
>
>
>
>
>
>
>
>
>
>
>
> Hi everyone,
>
>
>
> I was wondering if you could help with this little program i have
in
>
> visual basic 6.
>
>
>
> I have to produce a program that allows the user to buy and sells
>
> shares (mock program lol).
>
>
>
> Could you help me with this? I would like every 2 seconds a new
text
>
> file to be read and this would update the prices shown on the form.
&gt;
>
>
> And possibly when a price change is made the price that has changed
>
> flashes red for a second?
>
>
>
> Do you think reading this information from a text file is the best
>
> way to achieve this?
&gt;
>
>
> If you could help me i would greatly appreciate it or any advise
>
> would be welcomed.
>
>
>
> Many thanks
&gt;
>
>
>
>
>
>
>
>
>
>
>
>
>
> <!--
>
> #ygrp-mkp{
> border:1px solid #d8d8d8;font-family:Arial;margin:14px
0px;padding:0px 14px;}
&gt; #ygrp-mkp hr{
> border:1px solid #d8d8d8;}
> #ygrp-mkp #hd{
>; color:#628c2a;font-size:85%;font-weight:bold;line-
height:122%;margin:10px 0px;}
&gt; #ygrp-mkp #ads{
&gt; margin-bottom:10px;}
> #ygrp-mkp .ad{
>; padding:0 0;}
> #ygrp-mkp .ad a{
> color:#0000ff;text-decoration:none;}
&gt; -->
&gt;
>
>
> <!--
>
> #ygrp-sponsor #ygrp-lc{
> font-family:Arial;}
> #ygrp-sponsor #ygrp-lc #hd{
>; margin:10px 0px;font-weight:bold;font-size:78%;line-height:122%;}
> #ygrp-sponsor #ygrp-lc .ad{
>; margin-bottom:10px;padding:0 0;}
> -->
&gt;
>
>
> <!--
>
> #ygrp-mlmsg {font-size:13px;font-family:arial, helvetica, clean,
sans-serif;}
>; #ygrp-mlmsg table {font-size:inherit;font:100%;}
> #ygrp-mlmsg select, input, textarea {font:99% arial, helvetica,
clean, sans-serif;}
> #ygrp-mlmsg pre, code {font:115% monospace;}
> #ygrp-mlmsg * {line-height:1.22em;}
> #ygrp-text{
> font-family:Georgia;
> }
> #ygrp-text p{
> margin:0 0 1em 0;}
> #ygrp-tpmsgs{
> font-family:Arial;
> clear:both;}
> #ygrp-vitnav{
> padding-top:10px;font-family:Verdana;font-size:77%;margin:0;}
> #ygrp-vitnav a{
> padding:0 1px;}
&gt; #ygrp-actbar{
> clear:both;margin:25px 0;white-space:nowrap;color:#666;text-
align:right;}
> #ygrp-actbar .left{
&gt; float:left;white-space:nowrap;}
> .bld{font-weight:bold;}
> #ygrp-grft{
> font-family:Verdana;font-size:77%;padding:15px 0;}
> #ygrp-ft{
> font-family:verdana;font-size:77%;border-top:1px solid #666;
&gt; padding:5px 0;
> }
> #ygrp-mlmsg #logo{
&gt; padding-bottom:10px;}
>
> #ygrp-vital{
> background-color:#e0ecee;margin-bottom:20px;padding:2px 0 8px 8px;}
&gt; #ygrp-vital #vithd{
> font-size:77%;font-family:Verdana;font-weight:bold;color:#333;text-
transform:uppercase;}
> #ygrp-vital ul{
> padding:0;margin:2px 0;}
> #ygrp-vital ul li{
> list-style-type:none;clear:both;border:1px solid #e0ecee;
> }
> #ygrp-vital ul li .ct{
>; font-weight:bold;color:#ff7900;float:right;width:2em;text-
align:right;padding-right:.5em;}
> #ygrp-vital ul li .cat{
&gt; font-weight:bold;}
> #ygrp-vital a{
> text-decoration:none;}
>
> #ygrp-vital a:hover{
> text-decoration:underline;}
>
> #ygrp-sponsor #hd{
>; color:#999;font-size:77%;}
&gt; #ygrp-sponsor #ov{
>; padding:6px 13px;background-color:#e0ecee;margin-bottom:20px;}
> #ygrp-sponsor #ov ul{
> padding:0 0 0 8px;margin:0;}
>; #ygrp-sponsor #ov li{
> list-style-type:square;padding:6px 0;font-size:77%;}
> #ygrp-sponsor #ov li a{
> text-decoration:none;font-size:130%;}
> #ygrp-sponsor #nc{
>; background-color:#eee;margin-bottom:20px;padding:0 8px;}
&gt; #ygrp-sponsor .ad{
>; padding:8px 0;}
> #ygrp-sponsor .ad #hd1{
&gt; font-family:Arial;font-weight:bold;color:#628c2a;font-
size:100%;line-height:122%;}
> #ygrp-sponsor .ad a{
> text-decoration:none;}
> #ygrp-sponsor .ad a:hover{
> text-decoration:underline;}
> #ygrp-sponsor .ad p{
> margin:0;}
> o{font-size:0;}
&gt; .MsoNormal{
> margin:0 0 0 0;}
> #ygrp-text tt{
> font-size:120%;}
&gt; blockquote{margin:0 0 0 4px;}
&gt; .replbq{margin:4;}
> -->
&gt;

__._,_.___
.

__,_._,___
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )