thanks, for the information, i appreciate it
 
Thanks,
Matthew D. Brock

________________________________
 From: Bill Downall <[email protected]>
To: RBASE-L Mailing List <[email protected]> 
Sent: Thursday, March 13, 2014 2:23 PM
Subject: [RBASE-L] - Re: Changing caption on a Form
 


Matthew,

"Before Design" does not run when you use a form. It runs only when you open 
the form to design the form. You could have put that SET VAR in the "On Before 
Start" EEP, and it would have worked. Typically, the "Before Design" eep is 
used to predefine variables and create any temporary tables you will need while 
you are working on the form.

The "Dynamic" caption becomes useful when you want the caption to change while 
the form is up. For example, if a user clicks on a customer in a variable list, 
Customer identifying information could become the new form caption.

Bill





On Thu, Mar 13, 2014 at 3:13 PM, Matthew Brock 
<[email protected]> wrote:

That did it. The problem was i was trying to test the form before using it and 
was setting the variable in the
>Layout/On Before Design Action. And that does not work. But if set and call 
>before Running the form it works fine.
> 
>Thanks,
>Matthew D. Brock
>
>
>________________________________
> From: Bill Downall <[email protected]>
>To: RBASE-L Mailing List <[email protected]> 
>Sent: Thursday, March 13, 2014 1:35 PM
>Subject: [RBASE-L] - Re: Changing caption on a Form
> 
>
>
>Matthew,
>
>
>So in a program file -- before you load the form with an EDIT or ENTER or 
>BROWSE command -- you are setting the variable?
>
>
>Then just do this:  
>
>
>In the "On Before Start" EEP, be sure the variable exists, and is not cleared 
>or changed from what your external program put in it:
>
>
>SET VAR vCaption TEXT
>
>
>In the "On After Start" EEP, use your PROPERTY command:
>
>
>PROPERTY RBASE_FORM CAPTION .vCaption
>
>That works for me. R:BASE eXtreme 9.5 (64), U.S. Version, Build: 9.5.4.30310
>
>
>Bill
>
>
>
>On Thu, Mar 13, 2014 at 11:39 AM, Matthew Brock 
><[email protected]> wrote:
>
>I am trying to do a simple operation like setting a caption on a form and it 
>is not working.
>>
>>
>>1st i set a variable which later on will be set at runtime
>>SET VARIABLE vCaption TEXT = 'This is the Caption'
>>
>>
>>Then i try to set the form property in "On After Start"
>>PROPERTY RBASE_FORM CAPTION .vCaption
>>
>>
>>And when i run the  form i get an output for the Caption as ".vCaption" 
>>instead of the "This is the Caption"
>>
>>
>>It seems like there is a lot of work to do simple items in RBase that can 
>>easily be done in other programmming languages.
>>
>>
>> Thanks,
>>Matthew D. Brock
>>
>>
>
>
>

Reply via email to