EQ2Interface.com
Search Downloads


Go Back   EQ2Interface > Developer Discussion > UI Developer Discussion

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Unread 10-08-2010, 10:45 PM
kdmorse kdmorse is offline
A Young Mystail Rat
 
Join Date: Jan 2005
Server: Antonia Bayle
Posts: 7
Default String Compare?

Is it possible to do primitive string compares at all? I seem to be drawing a blank.

Really, I'm looking for the logical equivalent of:

if Parent.Text5.Text == "" then
Parent.Temp = Parent.Input5.Text
else Parent.Temp = Parent.Text5.Text

Based on some things I've seen, I'm fumbling around with
Parent.Temp = Parent.Text5.Text eq '' ? Parent.Input5.Text : Parent.Text5.Text

Doesn't work of course, but that's what I'm aiming for. If one box has text in it, use that text. If not, use a different box....

Elsewhere, I'd love a 'Begins' type text compare. So I can compare the beginning of the string, but not the entire string (as the tail end changes) - but I suspect that's impossible with the tools at hand...

Thanks,

-Ken
Reply With Quote
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 03:38 PM.


Our Network
EQInterface | EQ2Interface | WoWInterface | LoTROInterface | ESOUI | MMOUI