View Single Post
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