Stringrequest as a number

Feature requests for future versions of Hollywood can be voiced here
Post Reply
amyren
Posts: 439
Joined: Thu May 02, 2019 11:53 am

Stringrequest as a number

Post by amyren »

I think it could be convenient if when settiing the #NUMERICAL option for stringrequest that the resulting variable then would be stored as a value instead of a string.
Sometimes when using stringrequest one can get away with using the result as a number but in other cases you get the "comparing a string with a number error".
So to be sure one have to use an extra line to convert the string variable to a value.

I've been thinking it could be convenient if when settiing the #NUMERICAL option for stringrequest that the resulting variable then would be stored as a value instead of a string.

I cant come up with any case where this creates a problem since you still can use the value in a string if needed.
Or may this cause complications?
User avatar
airsoftsoftwair
Posts: 5903
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Stringrequest as a number

Post by airsoftsoftwair »

amyren wrote: Sat Feb 07, 2026 6:30 pm Or may this cause complications?
Well, semantic complications ;) The function is called StringRequest() so making such a function return a number doesn't make much sense from a semantic point of view ;)
Post Reply