1. Re: Parsing a Die Roll string
Christian Cuvier wrote:
>
> CK,
>
> I will send you to morrow morning a slightly modified die_roller plus my
> include file that does the parsing. I'd like to test it more tonight, but
> seems to work as expected.
>
> Q1: Are you insisting on using Highest instead of H, or Lowest rather than L?
> I'm not sure that "3Highest2" is clearer than "3H2".
No, I'm not insistent! 'H' and 'L' work fine.
> Q2: I'm missing the whole point of a separate EditText1 coupled to list_Dice.
It was just a way where the user could enter new dice formulas that
would become part of the list of available dice formulas. If there's a
better way, let me know.
> I'd make more sense out of an editable dropdown list (say list_Dice), where
> you can enter new custom roll strings as well as previously entered ones.
> Currently, you can't even copy from list_Dice to paste into EditText1, which
> would be a poor man's alternative.
The key is, if there's a new dice formula in EditText1, use it AND copy
it to list_Dice. If it's not new, and there's a selected item in list_Dice,
use the selected item as the dice formula.
> Perhaps you'd like to save the data in list_Dice to a .ini file so that it
> becomes persistent?
Yes, that would be cool.
-=ck
"Programming in a state of EUPHORIA."
http://www.cklester.com/euphoria/