Pass value from fill-in to Varaible Help

ebuabeng

New Member
hi all,

I develop in VB, now I have Design a GUI using Appsbuilder


with a Fill-in(by name txtStartDate with an initial value = 01/01/2005) in progress, i want to be able to pick the value i put into the fill-in ito a variable (v-StartDate) so i use the following assigment statement under a command button press event :


do

Assign
v-StartDate = txtStartDate .


Display V-StartDate .

When i ran this script, the program displays only the initial value(01/01/2005) on the form(even though i have changed or modified the initial value ).
If i modify the initial value in run mode and press the button

I still get the initial value....
In a nut shell , i want to be able to pick a value from a fill-in( i.e text box in VB ) into a variable and use it.

Can any one help me with this ?
 

cgdev

New Member
When you modify any data in frame it changes only screen-buffer and not the actual value of the variable.

You can resolve this by two ways:

1) Assign the screen-buffer value to txtStartDt on leave event of txtStartDt.

2) If you don't want to change the initial value in txtStartDt then on press event of the button assign the screen-buffer value instead of txtStartDt.

Screen-buffer value can be accessed using txtStartDt:screen-value.. confirm the attribute. You might need to convert this to date format based the data type of the v_startdate.

I hope this will help you..

Thanks & Regards,
Guru
 

ebuabeng

New Member
thanks

hi friend,

it worked.

do u have any material , so i can learn progress software development ?





thanks again
 
Top