Thread: String Compare?
View Single Post
  #2  
Unread 10-08-2010, 11:27 PM
EQAditu's Avatar
EQAditu EQAditu is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Mar 2005
Server: Permafrost
Posts: 256
Default

Normally you can only do one evaluation per line, so try the following:

ISEMPTY=Parent.Text5.Text==''
Parent.Temp=ISEMPTY ? Parent.Input5.Text : Parent.Text5.Text


Or you can try to wrap the encoded apostrophes with parenthesis: ('')
I've never had great luck with comparing null strings but maybe one of those will work. Putting a null string into a variable and trying to compare with that variable doesn't work because the engine sees that no variable with a value exists by that name, so it treats the variable name as plain text.


We don't have any ability to do substring operations except for things like "123,456" put into a Location property of a Widget can be split by the comma by referencing the Left and Top properties.
Reply With Quote