Jump to content

Setting portal row number as a variable


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

Recommended Posts

how would i set a variable that equals the number of the portal row.

eg

Say i assigned a script to a portal field, and i clicked on row 4 how could i get the variable to equal 4

Edited by Guest
Link to comment
Share on other sites

Hi latinoheat,

You haven't said what this is for, but here's how: Add this line to the beginning of your portal script -

Set Variable [ $PortalRow ; Value: Get(PortalRowNumber) ]

If the variable must persist after the script ends, add another $ to the front of variable name (thus changing it from script variable to global variable). But script parameter would work just as well here. You put script parameter of Get(PortalRowNumber) in the Optional Script Parameter portion when defining the button. Then in script, just substitute Get(ScriptParameter) whereever you need it.

LaRetta

Link to comment
Share on other sites

This topic is 6512 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
×
×
  • Create New...

Important Information

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