You made me go look at RRBMY8. I'm Confused, can someone smart tell me when do  you use quotes and when do you not (or do they both work)?
 
Here is code form the EEP in Sales Transactions form
 
SWITCH (.vMode)
  CASE 'ENTER'
    PROPERTY EGB_First ENABLED FALSE
    PROPERTY EGB_Prev ENABLED FALSE
    PROPERTY EGB_Next ENABLED FALSE
    PROPERTY EGB_Last ENABLED FALSE
    PROPERTY EGB_Add ENABLED FALSE
    PROPERTY EGB_Del ENABLED FALSE
    PROPERTY EGB_Refresh ENABLED FALSE
    PROPERTY DBEdit_Company SET_FOCUS 'TRUE'
   
BREAK  CASE 'VIEWALL'
    PROPERTY DBComboBox_PaymentTerms ENABLED 'FALSE'
    PROPERTY EGB_Add ENABLED FALSE
    PROPERTY EGB_Del ENABLED FALSE
    PROPERTY EGB_Save ENABLED FALSE
    PROPERTY EGB_Cancel CAPTION 'Close'
    PROPERTY EGB_Cancel FONT_COLOR 'RED'
    PROPERTY EGB_Refresh ENABLED FALSE
    PROPERTY EGB_Next SET_FOCUS 'TRUE'
    BREAK
  DEFAULT
    BREAK
ENDSW
RETURN
[EMAIL PROTECTED] wrote: -----

To: [email protected] (RBG7-L Mailing List)
From: Doug Hamilton <[EMAIL PROTECTED]>
Sent by: [email protected]
Date: 03/28/2005 11:22PM
Subject: [RBG7-L] - RE: GetProperty TEXTVALUE problem

I did try without the quotes - no luck.
I'm not using any variables on the form - dbedits only;  no recalcs.
Thanks for the suggestions.
If the quotes aren't s'posed to be there, why does R:Docs show 'em?
I'm gonna have a beer.

Doug


[EMAIL PROTECTED] wrote:
I believe that John Engwer is correct. Removethe quotes. I have also had it drive me to drink when using the 'GetpropertyTextvalue' command on a variable checkbox. Be careful if you define the variablein variables section of the form,  as any time you perform a recalc or update/saverowit will recalculate the variable and change it back to the default. I havelearned to define the variables in the 'On after start EEP' of the form. 
Another one that got me was using the Getproperty to get the new valueof a DBchebox when changed by a user. I used it to validate if a user isalowed to change the value by comparing to another variable. If the userwas not allowed to do this I user the Property to change it back. The problemis that it will re-loop through your EEP when you user the property command.I ended up using nested 'If...Then...staments to stop this. Probably worthlessinformation to most people, but if it can save one programer from frustration...then it was worth writing about.       
Here is code from a working form: (I always call my Component ID (Fieldname_CID) and the variables (vFieldname) so I can remember the name.
Getproperty Serv_BTN_CID Textvalue vServ_BTN
Property Serv_BTN_CID Textvalue programmer.vServe_BTN
If you use 'True' or 'False' in the command do not enclose it in quotes.
Property Serv_BTN_CID ENABLED TRUE

Reply via email to