i was wondering if there is a way to join my text version and my integer version together and just have a screen that lets the user choose their input type? if there is a tutorial on this then just point me at it (i kinda looked first but didnt find anything or if i did i didnt know what is was) im finding its easiest for me to learn one command at a time and then experiment with it alone and together with every thing i know already, and with this simple conv program is actually good because i work on 1 thing at a time!!!!
I'm sorry, I completely missed this thread yesterday.
I think you are in engineering overkill at this point. :) But, I'm going to see if I can accomplish it with val. —hartnell
After I began writing this, it was obvious that even using val, which converts a string to a number, is overkill. Just dim the input variable as a string and treat the numbers as if they were numbers in a string. :)
dim answer as string
print "Choose 1 or 'one'"
input ">", answer
if answer = "1" then print "you chose 1"
if answer = "one" then print "you chose 'one'"
sleep
end
For the entering of numbers, you'll still want to use an integer.
-hartnell
i was thinking more along the lines of (and this isnt how i would write it this just an example to help understand what im asking):
input "choose which version you would like (either integer input ie; [choose '1' for pounds] or text input ie; [type 'lbs' for pounds]
if integer then
load file scu_int.exe
elseif text then
load file scu_txt.exe
end if
now im wondering how to accomplish (or if its even possible) the "load file….." part
good morning all (yawn). ok im gonna try that! ok im working on my second project(and probably "in engineering overkill")
but have you ever played the dice game "10,000" or "farkle" (as ive seen it called in the midwest)its alot like yahtzee. if not then heres the skinny of it: a player gets 5 (some ppl play with 6) dice and at minimum has to roll atleast a one or a 5, (thats the very minimum if you dont roll any point value dice then turns over) but then theres 3 of a kind, a straight, and that sorts of scoring. a player can keep rolling as long as they got a point value, minus the dice that scored; ie: if a player got three 6's (in one roll, you cant keep 2 from 1 roll and one from another to make three of a kind) then they keep those three and roll the last two. 1s and 5s are the only single digit dice that can score, so if the player gets two 1s or 5s (or combo of two) then the player gets to roll all five again and their score keeps adding up until they decide to stop rolling (if you only have 1 die and you decide to roll it and it doesnt score then your turns over and you lose all the points accumulated for that roll) ok now that weve got the idea of the game i was wondering if any1(hartnell most likely) had any pointers on 1) any loops to make less works 2) the scoring and 3) anything else i may want to consider thanx in advance