| View previous topic :: View next topic |
| Author |
Message |
feejo
Joined: 16 Jun 2007 Posts: 280
|
Posted: Fri Dec 12, 2008 5:03 pm Post subject: How to do if a=negative signe |
|
|
In my variable a I have the - (negative signe). It dose not work. I paste from clipboard, maybe there is a space into the variable, how can I remove it?
Thanks |
|
| Back to top |
|
 |
Dra_Gon
Joined: 25 May 2007 Posts: 373
|
Posted: Fri Dec 12, 2008 5:16 pm Post subject: |
|
|
HUH? Um, when you paste something from the clipboard {regardless of wherever you got it from in the first place} you can remove any unwanted characters.
I don't know if that answers your question but without a clearer question we can't be much help.
Ciao,
Dra'Gon _________________
For a good laugh {hopefully} >> megamatts.50megs.com
My WritersCafe profile>>
http://www.writerscafe.org/writers/BlueDragonFire/ |
|
| Back to top |
|
 |
evan Guest
|
Posted: Fri Dec 12, 2008 5:27 pm Post subject: |
|
|
| Code: | StringReplace, clipboard, clipboard, -, , All
|
|
|
| Back to top |
|
 |
garry
Joined: 19 Apr 2005 Posts: 2212 Location: switzerland
|
Posted: Fri Dec 12, 2008 7:23 pm Post subject: |
|
|
if you want remove minus see ABS
| Code: | A:=-6
B:=ABS(A)
msgbox,%A%`n%B%
|
|
|
| Back to top |
|
 |
tank
Joined: 21 Dec 2007 Posts: 3700 Location: Louisville KY USA
|
Posted: Fri Dec 12, 2008 11:51 pm Post subject: |
|
|
| Code: | if (a="-")
;execute code here
msgbox executed true |
_________________
We are troubled on every side‚ yet not distressed; we are perplexed‚
but not in despair; Persecuted‚ but not forsaken; cast down‚ but not destroyed; |
|
| Back to top |
|
 |
|