global variables
Sarah Reichelt
sarahr at genesearch.com.au
Wed Feb 4 21:08:05 EST 2004
On 5 Feb 2004, at 11:39 am, hershrev wrote:
> And while we are at it , why doesn't this work , meaning the
> gmyEditLine remains empty
>
> global myQuery,mySelectedLine,myDbId,myEditLine
> on mouseUp
> put line mySelectedLine of myPkid into myEditLine
> put "SELECT company,last_name FROM contacts WHERE (pk ='"&
> myEditLine &"')" into myQuery
> put revDataFromQuery(,,myDbId,myQuery)into field "find Field"
> end mouseUp
>
> And if i do it in the message box: put line mySelectedLine of myPkid
> into myEditLine, it does work
>
Is myPkid a global variable also? It looks like this script doesn't
know that it is, so it can't get any data from it.
Sarah
More information about the use-livecode
mailing list