Jump to content
Sign in to follow this  
bn880

Strings and characters...  suma?

Recommended Posts

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. smile.gif

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) tounge.gif

Otherwise we would appreciate hearing if there are no plans on string functions. smile.gif

Share this post


Link to post
Share on other sites

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

Thank you. We appreciate the info.

Share this post


Link to post
Share on other sites

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 smile.gif

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

We already know, aint gonna happen. smile.gif

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×