change the value of an already defined textbox

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
ROBROS
Posts: 226
Joined: Thu May 25, 2017 6:30 pm
DBs Used: DBF
Location: D 83071 Stephanskirchen
Has thanked: 77 times
Been thanked: 28 times

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: 3436
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Has thanked: 279 times
Been thanked: 177 times
Contact:

Post by mol »

you can use ONLOSTFOCUS event of first textbox
put there:
SetProperty("Form","SecondBox", "Value", cDoW(this.Value))

ROBROS
Posts: 226
Joined: Thu May 25, 2017 6:30 pm
DBs Used: DBF
Location: D 83071 Stephanskirchen
Has thanked: 77 times
Been thanked: 28 times

Post by ROBROS »

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

Robert


Post Reply