austin_medic 109 Posted November 15, 2015 So I'm trying to use ctrlSetStructuredText in one of my dialogs, but it keeps spitting out generic error in expression for some reason. The idea of the whole thing is to have server save data, then have the ability for admins to pull data from server based off a name search, the server will send all info that returns a hit to their client where the data can be displayed in a dialog. the script that generates the error: _index = _this select 0; _data = matchData select _index; 1100 ctrlSetStructuredText (parseText format ["Name: %1 <br/> Dir: %2 <br/> Position: %3",_data select 0,_data select 1,_data select 2]); My dialog itself: class searchByName { idd = 1; onLoad = "uiNamespace setVariable ['searchByName', _this select 0];"; class controls { class topBar: RscText { idc = 1000; text = "Search by Name"; //--- ToDo: Localize; x = 0.362187 * safezoneW + safezoneX; y = 0.206 * safezoneH + safezoneY; w = 0.308437 * safezoneW; h = 0.028 * safezoneH; }; class matchList: RscListbox { idc = 1500; onLBSelChanged = "[_this select 1] call AUSMD_fnc_changeData;"; x = 0.362187 * safezoneW + safezoneX; y = 0.318 * safezoneH + safezoneY; w = 0.111562 * safezoneW; h = 0.364 * safezoneH; }; class clientInfo: RscStructuredText { idc = 1100; x = 0.480312 * safezoneW + safezoneX; y = 0.318 * safezoneH + safezoneY; w = 0.18375 * safezoneW; h = 0.364 * safezoneH; }; class searchBar: RscEdit { idc = 1400; x = 0.362187 * safezoneW + safezoneX; y = 0.248 * safezoneH + safezoneY; w = 0.229687 * safezoneW; h = 0.056 * safezoneH; }; class searchButton: RscButton { onButtonClick = "[] spawn AUSMD_fnc_searchStart;" idc = 1600; text = "Search"; //--- ToDo: Localize; x = 0.598437 * safezoneW + safezoneX; y = 0.248 * safezoneH + safezoneY; w = 0.0525 * safezoneW; h = 0.056 * safezoneH; }; }; }; Anything wrong with the above? Share this post Link to post Share on other sites
killzone_kid 1326 Posted November 15, 2015 https://community.bistudio.com/wiki/ctrlSetStructuredText Syntax:control ctrlSetStructuredText structuredTextParameters:control: ControlstructuredText: Structured TextReturn Value:NothingIt wants Control you give it Number Share this post Link to post Share on other sites
austin_medic 109 Posted November 15, 2015 Thanks solved the problem after a bit of tweaking. Share this post Link to post Share on other sites