change the value of an already defined textbox

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
ROBROS
Posts: 256
Joined: Thu May 25, 2017 6:30 pm
DBs Used: DBF
Location: D 83071 Stephanskirchen

change the value of an already defined textbox

Post by ROBROS »

Hi friends,
I have defined a date textbox with value nil, works. Another textbox is defined with value nil too.After having entered the date for the date textbox I want the value for the second textbox to be the cDoW(date from the date textbox). Is there a way, or must I define the second textbox after I have entered the date for the date textbox.
TIA
Robert
User avatar
mol
Posts: 3720
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

Re: change the value of an already defined textbox

Post by mol »

you can use ONLOSTFOCUS event of first textbox
put there:
SetProperty("Form","SecondBox", "Value", cDoW(this.Value))
ROBROS
Posts: 256
Joined: Thu May 25, 2017 6:30 pm
DBs Used: DBF
Location: D 83071 Stephanskirchen

Re: change the value of an already defined textbox

Post by ROBROS »

Thank you mol, works fine, again a new method. Another question: Where can I find such information?

Robert
Post Reply