global variables

hershrev hershbp at realtorsgroup.us
Wed Feb 4 21:48:24 EST 2004


Your a guineas .
I'd wouldn't get it .
But I'm wondering why from the message box it did work?
Thanks again.
On Wednesday, February 4, 2004, at 09:08 PM, Sarah Reichelt wrote:

> 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
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>



More information about the use-livecode mailing list