SMath Studio Forum
»
SMath Studio
»
Questions
»
insert statement in between statements in an existing line structure
  Rank: Member Groups: Registered
Joined: 23/03/2021(UTC) Posts: 11  Location: Austin TX
|
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
|
|
|
|
  Rank: Advanced Member Groups: Registered
Joined: 21/10/2016(UTC) Posts: 84
Was thanked: 21 time(s) in 17 post(s)
|
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 user thanked MarB for this useful post.
|
|
|
  Rank: Advanced Member Groups: Registered
Joined: 11/01/2018(UTC) Posts: 122   Location: Wisconsin Was thanked: 56 time(s) in 35 post(s)
|
Originally Posted by: MarB  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: . . .  Hope this helps, - Kenny Lemens, P.E. |
|
 1 user thanked Kenny Lemens for this useful post.
|
|
|
  Rank: Member Groups: Registered
Joined: 23/03/2021(UTC) Posts: 11  Location: Austin TX
|
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 (21kb) downloaded 19 time(s).
|
|
|
|
  Rank: Member Groups: Registered
Joined: 23/03/2021(UTC) Posts: 11  Location: Austin TX
|
I guess the attempts worked, in spite of the flashing red message.
|
|
|
|
  Rank: Member Groups: Registered
Joined: 23/03/2021(UTC) Posts: 11  Location: Austin TX
|
|
|
|
|
  Rank: Member Groups: Registered
Joined: 23/03/2021(UTC) Posts: 11  Location: Austin TX
|
As an afterthought, I downloaded the file I uploaded and it opened on my laptop with my installation of SMath Studio.
|
|
|
|
 Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,797  Was thanked: 974 time(s) in 802 post(s)
|
Hello, Joe. Your 'while' loop may be short of productive ! ? Maybe not a case of 'while', rather a cumulative. Cheers ... Jean. Page39 Joe.sm (42kb) downloaded 6 time(s).
|
|
|
|
  Rank: Member Groups: Registered
Joined: 23/03/2021(UTC) Posts: 11  Location: Austin TX
|
True Jean, Thanks. As a contrived example it has no further existence in a productive worksheet of mine.
|
|
|
|
SMath Studio Forum
»
SMath Studio
»
Questions
»
insert statement in between statements in an existing line structure
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.