Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
STRTRANS and Slashes
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01274617
Message ID:
01274627
Views:
10
>Jay,
>
>Those two slashes must be together, like '\\' and there should be not more than those two? If that is true, maybe you could do the work in KeyPress instead, something like
>
>
>loForm			= Createobject('myForm')
>loForm.Show(1)
>
>define class myForm as Form
>	add object myTextBox as Textbox
>
>	procedure myTextBox.KeyPress(nKeyCode, nShiftAltCtrl)
>	
>		nodefault
>		if nKeyCode # 92 or At('\', this.Value) = 0
>			Dodefault(nKeyCode, nShiftAltCtrl)
>			if nKeyCode = 92 and nShiftAltCtrl = 0
>				Dodefault(nKeyCode, nShiftAltCtrl)
>			endif
>		endif
>	
>	endproc
>	
>enddefine
>
>
>This way you are even saving keystrokes to the user <g> (Not completely sure if it is free of side efects)

What if you typed \ by mistake? <g> Now you would have to delete 2 letters :)
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform