Never been to DZone Snippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

« Newer Snippets
Older Snippets »
Showing 1-3 of 3 total  RSS 

Ruby - Trace Variable Global

// Tracciare variabili Globali

trace_var:$variabileGlobale, proc{ print "variabileGlobale modificata al valore --> ", $variabileGlobale, " "}

appuifw.note allow global note in pys60 1.3.1

# note in 1.2 
note(text, type)
# note in 1.3.1
note(text[, type[, global]])

type = 'info' (default) or 'error', 'conf'
global = 1 # display even if app is in background
import appuifw
appuifw.note(u'Hello World')             # simplest case
appuifw.note(u'Cannot connect', 'error') # show error
appuifw.note(u'New message', 'info', 1)  # alert from background

func to determine is a word is global

global?: func [
	{find out, if the given Word is a Global Word}
	word [word!]
][
	same? word bind word 'system
]
« Newer Snippets
Older Snippets »
Showing 1-3 of 3 total  RSS