VoyForums
[ Show ]
Support VoyForums
[ Shrink ]
VoyForums Announcement: Programming and providing support for this service has been a labor of love since 1997. We are one of the few services online who values our users' privacy, and have never sold your information. We have even fought hard to defend your privacy in legal cases; however, we've done it with almost no financial support -- paying out of pocket to continue providing the service. Due to the issues imposed on us by advertisers, we also stopped hosting most ads on the forums many years ago. We hope you appreciate our efforts.

Show your support by donating any amount. (Note: We are still technically a for-profit company, so your contribution is not tax-deductible.) PayPal Acct: Feedback:

Donate to VoyForums (PayPal):

Login ] [ Contact Forum Admin ] [ Main index ] [ Post a new message ] [ Search | Check update time ]
Subject: Re: Hej hej


Author:
mr_zipox
[ Next Thread | Previous Thread | Next Message | Previous Message ]
Date Posted: 08:14:20 11/15/03 Sat
In reply to: Eq 's message, "Hej hej" on 10:40:45 11/14/03 Fri

Hur mycket mesk man har är bara en enkel variabel men vad jag antar att du menar är hur man räknar ut hur mycket mesk man kan göra.
Det är lite klurit.
Men här kommer min kåd för det.


Dim IL As Byte
sockerr = 0
jästt = 0
meskc = 0
IL = 0

sockerr = socker
jästt = jäst

sockerr = sockerr / 60
If sockerr < jästt Then IL = 2 Else IL = 1
' If socker < 60 Then IL = 3
Select Case IL
Case 1
Do While jästt > 0
sockerr = sockerr - 1
jästt = jästt - 1
meskc = meskc + 20
Loop
' jästt = 0
Case 2
Do While sockerr > 0
sockerr = sockerr - 1
jästt = jästt - 1
meskc = meskc + 20
Loop
' sockerr = 0
Case 3

End Select

sockerr = sockerr * 60
Label24.Caption = "Du kan göra " & meskc & " liter mäsk."
If meskc < 1 Then Command16.Enabled = False Else Command16.Enabled = True

[ Next Thread | Previous Thread | Next Message | Previous Message ]


Post a message:
This forum requires an account to post.
[ Create Account ]
[ Login ]
[ Contact Forum Admin ]


Forum timezone: GMT-8
VF Version: 3.00b, ConfDB:
Before posting please read our privacy policy.
VoyForums(tm) is a Free Service from Voyager Info-Systems.
Copyright © 1998-2019 Voyager Info-Systems. All Rights Reserved.