Jump to content

Go To Script Line [#]


Stuart Taylor
 Share

This topic is 5772 days old. Please don't post here. Open a new topic instead.

Recommended Posts

I would like "Go To Script Line" in script maker

Then i could set the script line number as the script parameter.

Go To Script Line [Get ( ScriptParameter ) ]

This would allow more dynamic scripts for custom menus without the need for If statements

Example:

New Record=

Script Parameter = Get (LayoutNumber)*2+1

Allow User Abort [off]

Go To Script Line [Get ( ScriptParameter ) ]

Perform Script [New Contact] //Layout 1

Exit Script

Perform Script [New Invoice] //Layout 2

Exit Script

Perform Script [New Task] //Layout 3

Exit Script

Link to comment
Share on other sites

...Really? If you just used if statements it would be:

Set Variable( $x ; Get(ScriptParameter) )

If[ $x = "New Contact]

Perform Script[New Contact]

Else If[ $x = "New Invoice"]

Perform Script[New Invoice]

Else If[ $x = "New Task"]

Perform Script[New Task]

End If

Link to comment
Share on other sites

That's the attitude i used to take... used to take.

A lot can be accomplished with plug-ins, especially things like the VB plugin from Grokit tools... gives you full access to windows -- can do almost anything you want.. though at this stage i use it mainly for interacting with CMD line apps, FTP, .dll's (inc SMS) and general file / folder manipulations -- mind you all of this is possible to some extent w/o the plug-in... but it's a whole lot more error prone.

That's just one example.

Link to comment
Share on other sites

This topic is 5772 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.