Tab insert unit

Tab insert unit - Is it my or SMath error? - Messages

#1 Posted: 11/19/2023 4:02:27 PM
Valery Ochkov

Valery Ochkov

55 likes in 633 posts.

Group: User

Is it my or SMath error?
I'm used to typing the unit like this. I type, for example, m or kg and press tab. But it’s not a unit m, but a user variable m.
Check please!
mm.png
#2 Posted: 11/19/2023 5:43:26 PM
ioan92

ioan92

171 likes in 102 posts.

Group: User

Wrote

Is it my or SMath error?
I'm used to typing the unit like this. I type, for example, m or kg and press tab. But it’s not a unit m, but a user variable m.
Check please!
mm.png



You point a wrong problem.
There is no error. First "m" is the name of a variable named by "m", with the content affected by you of 1kg. The second "m" in blue is a unit name for the meter.
Everything is right with the only condition to use them in the appropriate place.
It is easy to differentiate the two because the units are (by default) colored in blue.
Do to others as you would like them to do to you! Knowledge is of no value unless you put it into practice - Chekhov
1 users liked this post
Valery Ochkov 11/19/2023 5:57:00 PM
#3 Posted: 11/19/2023 5:57:33 PM
Valery Ochkov

Valery Ochkov

55 likes in 633 posts.

Group: User

I type the letter m and then press the tabulator. The meters must be entered, not the user variable m.
The dropdown list of variables starting with the letter m can be disabled!
If I enter a variable m, then I don’t need to press the Tab key!

I wrote about this error to the developer!
#4 Posted: 11/19/2023 10:26:16 PM
ioan92

ioan92

171 likes in 102 posts.

Group: User

I dislike being unpolite but, IMHO, you persevere on being wrong.
If you hadn’t affected the letter “m” to a variable, your expectation was been exhausted.
The SMath list is intended to help you on avoiding any error.
Do to others as you would like them to do to you! Knowledge is of no value unless you put it into practice - Chekhov
#5 Posted: 11/19/2023 10:42:57 PM
Valery Ochkov

Valery Ochkov

55 likes in 633 posts.

Group: User

Wrote

I dislike being unpolite but, IMHO, you persevere on being wrong.
If you hadn’t affected the letter “m” to a variable, your expectation was been exhausted.
The SMath list is intended to help you on avoiding any error.


Let's wait for the answer from the developer (Andrey Ivashov), who personally taught me that if I type the letter m and press the Tab key, I will get a meter.

#6 Posted: 11/19/2023 10:49:16 PM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

Just type an apostrophe '. Then the placeholder switches from rectangle to oval shape and the dynamic assistant just displays units.

Even without typing the ' you can still use the dynamic assistant but you will have to navigate with the arrow keys before confirming your selection with tab.
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
2 users liked this post
Valery Ochkov 11/19/2023 10:53:00 PM, ioan92 11/20/2023 12:37:00 AM
#7 Posted: 11/20/2023 2:11:54 AM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

If I enter a variable m, then I don’t need to press the Tab key!


Doing right/wrong is a matter of choice.
Thermies:=1 ... 1 is a multiplier of your choice
copy Thermies, paste in the empty place holder of result.


#8 Posted: 11/20/2023 2:34:19 AM
Valery Ochkov

Valery Ochkov

55 likes in 633 posts.

Group: User

Wrote

Wrote

If I enter a variable m, then I don’t need to press the Tab key!


Doing right/wrong is a matter of choice.
Thermies:=1 ... 1 is a multiplier of your choice
copy Thermies, paste in the empty place holder of result.



Однажды возле дома ходжи рассорились два его соседа. Хай подняли такой, что ходжа был вынужден выйти к ним. Он отвел первого в сторонку. Тот изложил ему все и в конце спросил: "Ну как? Разве я неправ?" Ходжа охотно поддержал его: "Ты прав, братец! Сейчас я обьясню этому шакалу, что ты прав. Иди спокойно себе". Ходжа подошел ко второму, тот рассказал ему дело, разумеется, пристрастно, в выгодном для себя свете. "Ну, ходжа, что ты скажешь? Разве я не прав?" Ходжа ответил: "Конечно, ты прав! Я ему так и обьяснил, собаке, и он, видишь, понял твою правоту и ушел устыженный!".
Ходжа довольный вошел домой, но тут жена потребовала обьяснений: "Эфенди, я тут слышала все, говорили вы возле окна. Как же это получается? И тот прав, и этот прав! Разве могут быть правы одновременно два спорящих человека?" Ходжа спокойно сказал: "И ты права, жена! Успокойся"
#9 Posted: 11/20/2023 11:20:17 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

How can two arguing people be right at the same time ?
They argue top/down ... down/top.
Ducks dine bottom up.
Unit system is very poor for Process Control Instrumentation
m/s ... kg/m³ ... T/hr
You know how to characterize specific user units
Cheers ... Jean.

Inst_CornThermies [PROCEDURE].sm (71 KiB) downloaded 23 time(s).
#10 Posted: 11/21/2023 7:57:19 AM
⚜ Kenny Lemens, P.E. ᵂᴵ

⚜ Kenny Lemens, P.E. ᵂᴵ

74 likes in 164 posts.

Group: User

Greetings,

Wrote

Let's wait for the answer from the developer (Andrey Ivashov), who personally taught me that if I type the letter m and press the Tab key, I will get a meter.


What Mr. Ivashov says is true for most cases; open a new worksheet and keypress 「m」 + 「TAB⭾」, you will get the units m as meters (ie., 「'm」 ). The issue you are facing is due to your declaration of "m", thus your variable is added to the Dynamic Assistant and and since you typed in 「m」, it only makes sense that you are able to use the variable you created.

Maybe this will help you, what Mr. Ivashov said is a rough rule of thumb, the 'correct procedure' to enter in meters is one of the following ways:
  1. Use the [Insert] menu ; [Unit...]
  2. Type the unit directly: keypress: 「'」 + 「m」
  3. Activate the 'Active Dynamic Assistance' (i.e., keypress: 「Ctrl」 + 「Space」)
    • Scroll down until the desired entry has focus
    • Keypress 「TAB⭾」 (or 「Enter⮐」) to insert item into worksheet

May this be of Good Help;
⚜ Kenny Lemens, P.E. ᵂᴵ
"No matter where you go, there you are." -Buckaroo BanzaiHotkeys: https://en.smath.com/forum/resource.ashx?a=45771&b=2
2 users liked this post
Valery Ochkov 11/21/2023 12:08:00 PM, ioan92 11/21/2023 2:41:00 PM
  • New Posts New Posts
  • No New Posts No New Posts