1 страниц (6 вхождений)
String function in user function - Сообщения
I tried from my computer at work to enter a string in SMath Live and could not. When ever I type " the unit cursor appears.
Ed
It appears string functions findstr and subst don't work in user functions, maybe others. Probably because when the function is created the parameter is null not a string. The string functions must test for a string.


Ed
325 сообщений из 2 052 понравились и 1 не понравились пользователям.
Группа: Moderator
Hello Ed,
Quite strange, but this will work as a workaround.
[LIVE width=305 height=338]http://smath.info/live/?file=3340[/LIVE]
Actually, it seems that line() is needed in order to use string functions>
[LIVE width=311 height=203]http://smath.info/live/?file=3342[/LIVE]
Regards,
Radovan
Quite strange, but this will work as a workaround.
[LIVE width=305 height=338]http://smath.info/live/?file=3340[/LIVE]
Actually, it seems that line() is needed in order to use string functions>
[LIVE width=311 height=203]http://smath.info/live/?file=3342[/LIVE]
Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
Radovan,
I'm using 0.89 Stable and I tried to duplicate your example and get the same error message. Thanks.
I'm using 0.89 Stable and I tried to duplicate your example and get the same error message. Thanks.
Ed
Still fiddling with this I can't find a string function that will work in a user function. Using 0.89 Stable on Win 7.

PS
Something else weird. In SMath Live when I type double quote I get units cursor. I can't enter strings in SMath Live. Radovan, how did you do it?

PS
Something else weird. In SMath Live when I type double quote I get units cursor. I can't enter strings in SMath Live. Radovan, how did you do it?
Ed
325 сообщений из 2 052 понравились и 1 не понравились пользователям.
Группа: Moderator
Hello Ed,
Do not know about this. It might be a bug. My advice is to use the 0.89.8 until the release of the next version.
I do not have problems with it. When I insert double quotes there can be string inserted. On the other way, it might be faster to make a *.sm file first and then to use "Upload page (.sm)" from the SMath Studio Live palette.
Regards,
Radovan
WroteStill fiddling with this I can't find a string function that will work in a user function. Using 0.89 Stable on Win 7.
Do not know about this. It might be a bug. My advice is to use the 0.89.8 until the release of the next version.
WroteSomething else weird. In SMath Live when I type double quote I get units cursor. I can't enter strings in SMath Live. Radovan, how did you do it?
I do not have problems with it. When I insert double quotes there can be string inserted. On the other way, it might be faster to make a *.sm file first and then to use "Upload page (.sm)" from the SMath Studio Live palette.
Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
1 пользователям понравился этот пост
Edward Ulle 10.12.2011 15:16:00
1 страниц (6 вхождений)
-
Новые сообщения
-
Нет новых сообщений