NetTalk Central

Author Topic: How to change Browse Button TextValue?  (Read 4606 times)

johanco123

  • Full Member
  • ***
  • Posts: 245
    • View Profile
    • Email
How to change Browse Button TextValue?
« on: October 07, 2015, 01:14:20 AM »
Hi
I have a memory form with 2 browses on it. I want to change the Insert button text value to 'Add Estimate'
I use   p_web.site.InsertButton.TextValue = 'Add Estimate'

It change now the Insert to Add Estimate, BUT it changes now the insert on both Browse and not on the one browse where I added the code.

How can I change only the one Browse button values and not both of them. The browse without the  p_web.site.InsertButton.TextValue = 'Add Estimate' must not change.

Regards
Johan

terryd

  • Hero Member
  • *****
  • Posts: 759
    • View Profile
    • Davcomm
    • Email
Re: How to change Browse Button TextValue?
« Reply #1 on: October 07, 2015, 01:59:45 AM »
Hi Johan
Where did you put the code?
I would suggest in the browse that you want the Insert button name to change in the
GenerateUpdateButtonsAbove or GenerateUpdateButtonsBelow Routine (depending where you locate your update buttons) after the Start
Terry Davidson
Windows 10 64 bit/Windows7 64bit
Clarion 9.1.11529/Clarion10 12567
Nettalk 913
Nettalk 1015
StringTheory267/Winevent515/XFiles298/MessageBox239/Cryptonite186

johanco123

  • Full Member
  • ***
  • Posts: 245
    • View Profile
    • Email
Re: How to change Browse Button TextValue?
« Reply #2 on: October 07, 2015, 03:36:43 AM »
Hi Terry
Thank you for your help. The code is in the GenerateUpdateButtonsBelow  Start Routine. It still change both the browses Insert Names. Any other suggestions please.

Tanks Johan

terryd

  • Hero Member
  • *****
  • Posts: 759
    • View Profile
    • Davcomm
    • Email
Re: How to change Browse Button TextValue?
« Reply #3 on: October 07, 2015, 04:35:32 AM »
Hi Johan
I duplicated your problem in the Web21 example in the Update customers form.
It doesn't seem to affect any other browses just the browses on the form.
I would suggest putting the code p_web.site.InsertButton.TextValue = 'Insert' in the other browse until Bruce can advise any other options.
This seems to work in the example
Terry Davidson
Windows 10 64 bit/Windows7 64bit
Clarion 9.1.11529/Clarion10 12567
Nettalk 913
Nettalk 1015
StringTheory267/Winevent515/XFiles298/MessageBox239/Cryptonite186

johanco123

  • Full Member
  • ***
  • Posts: 245
    • View Profile
    • Email
Re: How to change Browse Button TextValue?
« Reply #4 on: October 07, 2015, 05:56:01 AM »
Tanks I follow your suggestion and it is working now.
Regards
Johan

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: How to change Browse Button TextValue?
« Reply #5 on: October 08, 2015, 07:31:11 AM »
Set it to whatever you like in the browse, right before it's used.
Set it back to Insert when it's done being used in that browse.

cheers
Bruce