bn880 5 Posted March 4, 2003 I would like to ask if there is currently a workaround to extracting the characters of a string in OFP. It appears that we have no ability to take a custom string and perform any operations on it. Yes strings can be concatenated and compared to a previously assembled string, but all this locks the ability to translate a string into a series of ASCII key codes. We have tried various approaches, but are usually locked with the error that the command will not work on a String. Commands such as select, set, -. Please consider overloading array functions to work with strings, with this all subsequent functions could be created, to create a full string library allowing for every desired operation. string = "suma" letter3 = string select 3; ?(letter3 == "a"): string set [3,"o"]; or some other string function(s) Otherwise we would appreciate hearing if there are no plans on string functions. Share this post Link to post Share on other sites
suma 8 Posted March 4, 2003 I can confirm there are no plans on string functions to current OFP and OFPR products. As for future products, it is very likely it will be added, but I cannot tell it for sure yet. Share this post Link to post Share on other sites
bn880 5 Posted March 4, 2003 Thank you. We appreciate the info. Share this post Link to post Share on other sites
Dschulle 0 Posted March 10, 2003 Would be enough to have a function, which converts a string into an array of characters. A lot of new features could be build then Example:</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">_strArray = Str2Array "Hallo" <span id='postcolor'> _strArray then equals ["H","a","l","l","o"] Share this post Link to post Share on other sites
Bullz_eye_on_my_back 0 Posted March 10, 2003 hhmm...yes....kind of thinking scripts to make morris code signals with lights or flares possible.... its possible now, but would be more user friendly Share this post Link to post Share on other sites
bn880 5 Posted March 11, 2003 We already know, aint gonna happen. Share this post Link to post Share on other sites