Put the SelectAll command in the ON ENTRY EEP for each field. 

When the user enters the field, the field should be selected/high lighted. 



If you want to be even more effective place something like the following 

in the On Entry EEP. 



GETPROPERTY compID textvalue 'vCheck' 

If vCheck is null then 

Property compID SELECTALL 'True' 

 else 

Property compID LASTCHAR 'True' 

Endif 



This will evalute your current data.  If it is null then the field will be 
selected/highlighted 

for data entry over write.   If data exists, it puts the cursor at the end of 
the existing 

data.  This would help accidental deletions of current or wanted data. 



On some form controls, such as DB edits, under the object property, is an 

AUTOSELECT option.  If this is selected, the control is supposed to 
automatically 

select/highlight the field as you move into it.  This is an option as well. 



-Bob 



----- Original Message ----- 
From: "Jim Belisle" <[email protected]> 
To: "RBASE-L Mailing List" <[email protected]> 
Sent: Monday, February 22, 2010 12:29:27 PM GMT -06:00 US/Canada Central 
Subject: [RBASE-L] - Re: On Key Press 




Bob, 



The minute I saw your response, I figured you had it right, and you did. 

That cares for the OKP variable. 

I will have to experiment on the other forms if that is the best way to care 
for them. 

The var in the other forms are lookup variables but with many of our orders, 
the ship to information is often different. 

That will bring up the NULLS that have to be deleted in each field. 

That is a bother to the order enter person as well as our quoting process since 
they have the same lookup var. 



I normally have each different field with a different componentID.  I read 
though you can have the same compID for multiple fields. 

If I put the same compid on all the shipping fields and used the below property 
command to focus the first field (in this case the ship to name) would the 
other fields select the complete null as I enter them or would I have to FOCUS 
each field and SELECTALL each field? 



I hope I made myself clear on what I want to do. 



Jim 




From: [email protected] [mailto:[email protected]] On Behalf Of 
[email protected] 
Sent: Monday, February 22, 2010 12:10 PM 
To: RBASE-L Mailing List 
Subject: [RBASE-L] - Re: On Key Press 




Jim, 



Property "component ID" set_focus 'True' 

Property "component ID" SELECTALL 'True' 



Should cause the named component to be selected/highlighted.  When 

you start typing, the existing value (thus the null sign) should go away. 



You will need to put the above Property commands  in the On Key Press EEp. 



It may be that I have the order reversed on the above.  You may need to 

select all first then set focus.  I do not remember which, but if I remember 
correctly, 

it does make a difference.  You can try either way. 



-Bob 



----- Original Message ----- 
From: "Jim Belisle" <[email protected]> 
To: "RBASE-L Mailing List" <[email protected]> 
Sent: Monday, February 22, 2010 11:51:44 AM GMT -06:00 US/Canada Central 
Subject: [RBASE-L] - Re: On Key Press 

Karen, Mike, 



I tried your suggestion on my OKP field and it did not change anything. 

The var vKeyword comes up as a NULL even though I set the var vKeyword = ‘ ‘ 



When I click on the field, I still have to delete the NULL sign. 



Along the same line, I have the following var that are used in both the quote 
and order forms. 



   SET VAR vDistName TEXT = NULL 

   SET VAR vDistAddress TEXT = NULL 

   SET VAR vDistCity TEXT = NULL 

   SET VAR vDistState TEXT = NULL 

   SET VAR vDistZip TEXT = NULL 

   SET VAR vContactName TEXT = NULL 

   SET VAR vDistPhone1 TEXT = NULL 

   SET VAR vDistFax TEXT = NULL 

   SET VAR vDistEMail TEXT = NULL 

   SET VAR vShipName TEXT = NULL 

   SET VAR vShipAddress TEXT = NULL 

   SET VAR vShipCity TEXT = NULL 

   SET VAR vShipState TEXT = NULL 

   SET VAR vShipZip TEXT = NULL 

Most of the times they are filled in automatically because they are lookup 
variables, but sometimes not. 



Which way would be best? 



SET VAR vdistname TEXT 

Or 

SET VAR vdistname TEXT = ‘ ‘ 





Jim 






From: [email protected] [mailto:[email protected]] On Behalf Of 
[email protected] 
Sent: Monday, February 22, 2010 11:35 AM 
To: RBASE-L Mailing List 
Subject: [RBASE-L] - Re: On Key Press 



Do you keep the null set to the default -0- before you bring the form up? 
I never do... maybe you can 
         set null ' '   (space between the quotes) 
before you bring up the form and then set it back to -0- after you exit. 

Karen 




I have an On Key Press form associated with a Variable Radio Group. 

Once one of the boxes on the VRG is checked, the NULL associated with the OKP 
has to be deleted out before starting to type. 

Which property command do I use to make the NULL go away so our people can type 
immediately and not have to delete the NULL manually? 

  

Jim 

Reply via email to