EQ2Interface

EQ2Interface (https://www.eq2interface.com/forums/index.php)
-   UI Developer Discussion (https://www.eq2interface.com/forums/forumdisplay.php?f=3)
-   -   Testing for no value (https://www.eq2interface.com/forums/showthread.php?t=9836)

RickF7666 11-24-2007 07:19 PM

Testing for no value
 
Okay, I'm trying to test for the lack of a last name and I have no idea how to test for nothing. Any help would be appreciated.

Thanks

Othesus 11-24-2007 08:06 PM

The DynamicData can be tricky since you don't always know what information is there. Have you tried the Visible flag for LastNameText?

Landiin 11-24-2007 08:30 PM

Quote:

Originally Posted by RickF7666 (Post 66904)
Okay, I'm trying to test for the lack of a last name and I have no idea how to test for nothing. Any help would be appreciated.

Thanks


The way I would do it is

OnEvent="DoWhatEver=(eX_Text ? True : False) ex_Test=Lastname.LocalText==''"

Just make sure Text and LocalText for the Lasname object is empty.

The True and False can be what ever, I just add them so you knew where true and false is.

RickF7666 11-25-2007 12:50 AM

Thanks for the suggestion but I tried that one and it didn't work. I think the problem might be that we don't know what the dynamic data LastName is set to if you don't have a last name. Is it that there isn't any data in LastName or is it something that we just can't see.

I've tried to set a DynamicDataFilter so that it just came back with a boolean value of the state of the last name. But I don't think I know how to do that properly or even if you can do that. All the examples for DynamicDataFilter use four characters but the field actually has eight characters.

It always seems that when I try to do something new with the interface it's way more complicated then it looked initially.:(

Any more ideas?

RickF7666 11-25-2007 01:01 AM

Quote:

Just make sure Text and LocalText for the Lasname object is empty.
Okay, I guess it might help if I read your entire post and not just most of it. Once I deleted Text and LocalText it worked.:o

Thanks for everything.


All times are GMT -5. The time now is 02:28 PM.

vBulletin® - Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
© MMOUI