|
#1
|
||||
|
||||
|
The following is code that will allow for the "real-time" removal of spaces in an Input object.
Note: Change the Input object names as needed Add this code to the On Key of the intended Input object. Code:
--The number '32' equals the ASCII Decimal SPACE
if e_Key == 32 then
strInput1 = Input.GetText("Input1")
strInput1 = String.Replace(strInput1, " ", "", false)
strInput1Length = String.Length(strInput1)
Input.SetText("Input1", strInput1)
Input.SetSelection("Input1", strInput1Length+1, strInput1Length+1)
end
http://www.amsuser.com/ams/examples/...-Intrigued.apz |
|
#2
|
|||
|
|||
|
Quote:
Thanks! Another version: Code:
--The number '32' equals the ASCII Decimal SPACE if e_Key == 32 then strCache = Input.GetText(this); local strCache = String.Replace(strCache, " ", "", false); local strCacheLength = String.Length(strCache); Input.SetText(this, strCache); Input.SetSelection(this, strCacheLength + 1, strCacheLength + 1); end |
![]() |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Input object loses focus after Internet | dthompson16 | AutoPlay Media Studio 5.0 | 6 | 08-26-2004 08:55 AM |
| Input object graying out | dthompson16 | AutoPlay Media Studio 5.0 | 7 | 07-28-2004 08:28 PM |
| Function: Test Whether An Input Object Is Empty | Lorne | AutoPlay Media Studio 5.0 Examples | 0 | 06-08-2004 03:18 PM |
| INFO: Difference between the Media Player Object and the AVI Object | Support | AutoPlay Media Studio 4.0 Examples | 0 | 10-29-2002 03:15 PM |
| HOWTO: Make a Media Player Object Go Full Screen | Support | AutoPlay Media Studio 4.0 Examples | 0 | 10-23-2002 12:23 PM |
All times are GMT -6. The time now is 11:56 PM.









Linear Mode

