boltc Posted November 3, 2006 Share Posted November 3, 2006 jep i know.. i am the biggest noob i ever saw:)i still cant get this work..Func _plusminfunc($input, $knop)if (GUICtrlRead( $knop ) <<<<<<<<<< IS NOT >>>>>>>>>> "=") Then Local $read = GUICtrlRead( $input ) Local $plusmin = StringLeft( $read, 1 ) Switch $plusmin Case "-" GUICtrlSetData( $input, StringTrimLeft( $read, 1 ) ) Case Else GUICtrlSetData( $input, "-" & $read ) EndSwitch EndIfendfunci want to run this func only when $knop is not "= "but dont know what to put there Link to comment Share on other sites More sharing options...
xcal Posted November 3, 2006 Share Posted November 3, 2006 (edited) if GUICtrlRead($knop) <> '= ' Then Look up operators. Edited November 3, 2006 by xcal How To Ask Questions The Smart Way Link to comment Share on other sites More sharing options...
Snarg Posted November 3, 2006 Share Posted November 3, 2006 (edited) i want to run this func only when $knop is not "= " but dont know what to put thereSomething like this maybe? If (GUICtrlRead( $knop )) <> "=" Then _plusminfunc($input, $knop) Func _plusminfunc($input, $knop) if (GUICtrlRead( $knop )) <> 0 Then Local $read = GUICtrlRead( $input ) Local $plusmin = StringLeft( $read, 1 ) Switch $plusmin Case "-" GUICtrlSetData( $input, StringTrimLeft( $read, 1 ) ) Case Else GUICtrlSetData( $input, "-" & $read ) EndSwitch EndIf endfunc Edit: Sorry, you ment the literal "=". Edited. Edited November 3, 2006 by Snarg A little reading goes a long way. Post count means nothing. Link to comment Share on other sites More sharing options...
Somerset Posted November 3, 2006 Share Posted November 3, 2006 Something like this maybe? If (GUICtrlRead( $knop )) <> "=" Then _plusminfunc($input, $knop) Func _plusminfunc($input, $knop) if (GUICtrlRead( $knop )) <> 0 Then Local $read = GUICtrlRead( $input ) Local $plusmin = StringLeft( $read, 1 ) Switch $plusmin Case "-" GUICtrlSetData( $input, StringTrimLeft( $read, 1 ) ) Case Else GUICtrlSetData( $input, "-" & $read ) EndSwitch EndIf endfunc Edit: Sorry, you ment the literal "=". Edited.(GUICtrlRead( $knop )) shouldn't have () that it should be more like GUICtrlRead( $knop ) Link to comment Share on other sites More sharing options...
boltc Posted November 3, 2006 Author Share Posted November 3, 2006 thankyou guys.. i didnt know what the operators are for is not:) greets Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now