Thread Tools Display Modes
Prev Previous Post   Next Post Next
01-07-11, 10:07 AM   #1
Sythalin
Curse staff
 
Sythalin's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2006
Posts: 680
strsplit delimiter issue

lua Code:
  1. -- CFM_LoadBox = "Blackwing Lair - Chaosinc"
  2.         b:SetScript("OnClick", function()
  3.             -- was going to prevent reloading, but it's much simpler to just do it this time
  4.             local realm, name = strsplit(" - ", UIDropDownMenu_GetText(CFM_LoadBox))
  5.             print(realm)
  6.             print(name)
  7.         end)

This is ending up printing realm, but not the name. I'm pretty sure I'm just the delimiter, but everything I've tried so far has just screwed it up more.
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » strsplit delimiter issue


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