insert statement in between statements in an existing line structure

insert statement in between statements in an existing line structure - insert statement in between statements in an existing line structure - Сообщения

#1 Опубликовано: 07.08.2022 21:08:20
Joe Cahill

Joe Cahill

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

Группа: User

Sorry if this has been addressed before, if so simply point me there, my several searches did not turn up anything,

In writing programs I often find I need to create statements above statements I've already written, and I don't know how to provoke an empy statement placeholder inside an existing line structure.

I've been getting the function I want by having nested line structures, where the nesting is functionally meaningless, just a way to workaround my ignorance of the right way.

Thanks Joe
#2 Опубликовано: 08.08.2022 04:26:44
Martin_B

Martin_B

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

Группа: User

Just use the argument divider (comma or semicolon, dependent on the settings) while the cursor is at the appropriate position (line beginning or ending).
1 пользователям понравился этот пост
Joe Cahill 08.08.2022 12:22:00
#3 Опубликовано: 08.08.2022 11:56:02
⚜ Kenny Lemens, P.E. ᵂᴵ

⚜ Kenny Lemens, P.E. ᵂᴵ

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

Группа: User

Wrote

Just use the argument divider (comma or semicolon, dependent on the settings) while the cursor is at the appropriate position (line beginning or ending).



Below is a picture with regards to MarB's instructions. In addition, there is the ability to click'n-drag the statement to increase the number of line items:

. . . SMATH_insertLine.jpg

Hope this helps,
- 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
1 пользователям понравился этот пост
Joe Cahill 08.08.2022 12:22:00
#4 Опубликовано: 08.08.2022 12:21:15
Joe Cahill

Joe Cahill

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

Группа: User

It worked, thank you all.

I've attamept to attach the problem example that Jean Giraud suggested would be helpful, along with the illustration of the solution that MarB and Kenny Lemens described, but my attempts appear to fail. Sorry.

debug example - statement insertion in a line structure.sm (20 КиБ) скачан 44 раз(а).
#5 Опубликовано: 08.08.2022 12:23:03
Joe Cahill

Joe Cahill

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

Группа: User

I guess the attempts worked, in spite of the flashing red message.
#6 Опубликовано: 08.08.2022 18:39:11
Joe Cahill

Joe Cahill

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

Группа: User

Hmmm, interesting.

Here's a screen snap of it open with the version of SMath Studio shown also and a pdf ->

Показать спойлер



debug example - statement insertion in a line structure.pdf (114 КиБ) скачан 31 раз(а).
#7 Опубликовано: 08.08.2022 18:42:19
Joe Cahill

Joe Cahill

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

Группа: User

As an afterthought, I downloaded the file I uploaded and it opened on my laptop with my installation of SMath Studio.
#8 Опубликовано: 09.08.2022 10:12:23
Jean Giraud

Jean Giraud

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

Группа: User

Hello, Joe.
Your 'while' loop may be short of productive ! ?
Maybe not a case of 'while', rather a cumulative.
Cheers ... Jean.

Page39 Joe.sm (41 КиБ) скачан 21 раз(а).
#9 Опубликовано: 09.08.2022 18:27:02
Joe Cahill

Joe Cahill

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

Группа: User

True Jean, Thanks. As a contrived example it has no further existence in a productive worksheet of mine.
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений