08-28-2023, 12:07 PM
(08-25-2023, 07:31 PM)SMcNeill Wrote:@SMcNeill could you provide a few examples showing off the different `prompt$` options?Code: (Select All)Sub ExtendedInput (prompt$, result$) 'Over Engineered Input
'limit VALUES:
'1 = Unsigned
'2 = Integer
'4 = Float
'8 = Who cares. It's handled via internal variables and we don't need to know a type for it.
'Uses {} at the start of the prompt to limit possible input
'P = Password
'U = Unsigned
'I = Integer
'F = Float
'L## = Length of max ##
'X##, Y## = LOCATE before printing
'D = Disable paste option
'V = Move CTRL-V to AFTER paste
'H = Hide Input after finished. (Won't leave prompt, or user input on the screen.)
End Sub
This is pretty kick ass idea using a DSL or micro-format for more complex args to `SUB` or `FUNCTION` hadn't occurred to me.
I'd love to see a few examples of this!
Thanks