Register
It is currently Fri Apr 18, 2014 11:25 am

share variable between functions


All times are UTC - 6 hours


Post new topic Reply to topic  [ 1 post ] 
Author Message
 PostPosted: Mon Jan 20, 2014 7:30 am   

Joined: Mon Jan 20, 2014 7:18 am
Posts: 1
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>


How


Top
 Profile  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 9 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  


BashScripts | Promote Your Page Too
Powered by phpBB © 2011 phpBB Group
© 2003 - 2011 USA LINUX USERS GROUP