You are not logged in.

#1 20 Jan 2014 15:12

singhai.nish
Member
Registered: 20 Jan 2014
Posts: 1

Share variable between functions

Hi,

gtkdialog gui seperate buttons use seperate functions in their GUI. A variable (newFolderName) is being set in one function (funcA) and it needs to be called in another function (funcB). I thought using global variable (like in python) concept should work however it does not.

How else is it possible to do share variables between functions.

Example

funcA() {
newFolderName=v01
}

funcB() {
mkdir newFolderName
}

funcA and funcB are called as action to button

<button>
<label>Confirm</label>
<action>funcConfirmDisplayText</action>
</button>

<button>
<label>Start</label>
<action>funcStart</action>
</button>

Offline

Board footer

Powered by