mibuso.com

Microsoft Business Solutions online community
It is currently Thu Jun 20, 2013 12:11 pm

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: How can I read the value of a textbox
PostPosted: Wed Jul 07, 2004 2:00 pm 
Offline

Joined: Wed Jul 07, 2004 10:20 am
Posts: 80
Location: Work
Country: Netherlands (nl)
I want to know in the trigger "OnInputChange" what the current value of the textbox is? I know there is OnAfterInput, but this trigger never fires when you press the del or backspace.

I want to know what key someone pressed...

Guido


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 07, 2004 2:28 pm 
Offline

Joined: Wed Jun 16, 2004 5:50 pm
Posts: 188
Location: Germany
Country: Germany (de)
Hi. I Thinks that the Trigger OnInputChange fires only when the User is making entry in the Text Box, when he Is writing something...

Pressing Delete or Backspace isn't IMHO an Entry.

when you Delete anything Press Enter, that must be work. :lol:

_________________
www.lovebenz.de - Forum for the Mercedes C-Class W203


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 07, 2004 2:47 pm 
Offline

Joined: Wed Jul 07, 2004 10:20 am
Posts: 80
Location: Work
Country: Netherlands (nl)
I got that far. That's because another event is triggered when pressing enter. I downloaded the calculator example from the webpage. I made the exnter work like the '=' button. But I want to use the del and/or the backspace button to delete one entry.

THis is where the problem is, I don't know when del or backspace is being pushed. If I have the value of the textbox, I can check what the current value is and make my decission what has been entered. Now I have a variable as SourceEntry. But this isn't updated in the trigger. So I only have the old value. I could use he if oldvalue = newvalue, but then I have no idea if someone pressed enter of del/BS


I also tried using this method to read the textbox:

MyText := CurrForm.MyTextbox

But now I always get the text 'In Use' ..

Guido


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 08, 2004 9:12 am 
Offline

Joined: Thu Mar 07, 2002 8:01 am
Posts: 40
Location: NRW
Country: Germany (de)
Hi all,

With the OnInputChange-Trigger you can get, when there are made changes in the Textbox, but there is no way to get the actual value after every changing of the Textbox. Only Navision knows the real idea behind this Trigger. :?

Regards,
Frank


Top
 Profile E-mail WWW  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: Google [Bot] and 20 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum


Search for:
Jump to: