Tab insert unit

Tab insert unit - Is it my or SMath error? - Сообщения

#1 Опубликовано: 19.11.2023 16:02:27
Valery Ochkov

Valery Ochkov

55 сообщений из 633 понравились пользователям.

Группа: 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 Опубликовано: 19.11.2023 17:43:26
ioan92

ioan92

171 сообщений из 102 понравились пользователям.

Группа: 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 пользователям понравился этот пост
Valery Ochkov 19.11.2023 17:57:00
#3 Опубликовано: 19.11.2023 17:57:33
Valery Ochkov

Valery Ochkov

55 сообщений из 633 понравились пользователям.

Группа: 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 Опубликовано: 19.11.2023 22:26:16
ioan92

ioan92

171 сообщений из 102 понравились пользователям.

Группа: 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 Опубликовано: 19.11.2023 22:42:57
Valery Ochkov

Valery Ochkov

55 сообщений из 633 понравились пользователям.

Группа: 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 Опубликовано: 19.11.2023 22:49:16
Martin Kraska

Martin Kraska

1222 сообщений из 2150 понравились пользователям.

Группа: 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 пользователям понравился этот пост
Valery Ochkov 19.11.2023 22:53:00, ioan92 20.11.2023 00:37:00
#7 Опубликовано: 20.11.2023 02:11:54
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: 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 Опубликовано: 20.11.2023 02:34:19
Valery Ochkov

Valery Ochkov

55 сообщений из 633 понравились пользователям.

Группа: 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 Опубликовано: 20.11.2023 23:20:17
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: 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 КиБ) скачан 19 раз(а).
#10 Опубликовано: 21.11.2023 07:57:19
⚜ Kenny Lemens, P.E. ᵂᴵ

⚜ Kenny Lemens, P.E. ᵂᴵ

74 сообщений из 164 понравились пользователям.

Группа: 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 пользователям понравился этот пост
Valery Ochkov 21.11.2023 12:08:00, ioan92 21.11.2023 14:41:00
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений