Sign in to follow this  
Followers 0
Ysengrim

re-entering input

5 posts in this topic

I'm stuck and can use some help.

I've got 1 page with several fields for input

GUICtrlCreateLabel()

GUICtrlCreateInput ($1)

GUICtrlCreateInput ($2)

GUICtrlCreateInput ($3)

After pressing button i check if inputs are valid

select

Case GUICtrlRead($1) = not valid then goback

endselect

But here I got a problem with going back and re-enter only the input that's not valid

GUICtrlDelete(wrong input) doesnt work well

My questio :

How can I refresh page so that all the texts and the valid inputs stays on the screen and only the not valid input would be erased and give the possibility to re-enter

And then i can hit the button again to check again till all inputs are valid before continu program?

thanks for helping out

Share this post


Link to post
Share on other sites



Hi,

pseudocode

Func _check()

if guictrlread($input) = "not valid" Then guictrlsetdata($input, 0)

and so on.

Endfunc


Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

thnx but the problem is i have inputs with lots of choises

for example : i have to check if input is a real date

if it is its ok if it is not the user must have to reenter a date till its a valid one

the problem is not the checking itself thats working but if the checking sees that an input was not valid to go back to the screen and empty the input and give the user a new chanche of input without erasing the other inputs and variables

Edited by Ysengrim

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Hi,

there is no problem.

I would do this : one mask with lets say 5 inputs and one button

button press starts the checking func.

if vaild ok, if not then set data to "" for that inputs.

Mega

Edited by Xenobiologist

Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Share this post


Link to post
Share on other sites

its working

thnx guys !!!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0