Re: copy field to stack of unknown name
At 23:04 15/02/2005, you wrote: on mouseUp global tStackName copy field TextField of stack Armbase Database Designer to card 1 of stack tStackName end mouseUp Hi Sarah this worked. I did make one mistake tat may have exacerbated the problem , I'll have a play with it tonight and post the result. However, including the global in the button is better anyway. All the best Bob -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 265.8.7 - Release Date: 10/02/2005 ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: copy field to stack of unknown name
At 03:02 14/02/2005, you wrote: Hi Bob, Hi Sarah. I'm still stuck on this. Helpp everyone. :-) I think you are on the right track, but the stack name (or stack file name) needs to be a global or custom property if scripts in other objects are going to access it. I tried doing this in the main stack script. global tStackName -- Added a global here --still to change it to gStackName but will once i get it going on doFileNew ask file Name new database file: with MyDatabase.abd if it is empty then exit to top put it into tFileName if char -4 to -1 of tFileName is not .abd then put .abd after tFileName set the itemDelimiter to / put last item of tFileName into tStackName set the visible of stack Master Database to false clone stack Master database Err the result set the name of stack it to tStackName set the title of stack tStackName to (char 1 to -5 of tStackName) set the minWidth of stack tStackName to 800 set the minHeight of stack tStackName to 600 set the fileName of stack tStackName to tFileName -- tFileName is the full pathname of the file the user named earlier. Err the result set the visible of stack Master Database to true put the stackFileType into tSaveStackFileType set the stackFileType to RevoABD_ save stack tStackName Err the result set the stackFileType to tSaveStackFileType show stack tStackName toplevel stack tStackName end doFileNew --on the other stack I have a button that has the script on mouseUp copy field TextField of stack Armbase Database Designer to card 1 of stack tFileName end mouseUp Any ideas. If I get this I can get on with all the other buttons etc etc. Cheers Bob -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 265.8.7 - Release Date: 10/02/2005 ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: copy field to stack of unknown name
PS I also tried this in the main stack global tStackName, tFileName and a button that had on mouseUp copy field TextField of stack Armbase Database Designer to card 1 of stack tFileName end mouseUp and didn't get any luck with this either cheers bob -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 265.8.7 - Release Date: 10/02/2005 ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: copy field to stack of unknown name (I might have it. Need advice)
At 20:57 15/02/2005, you wrote: PS I also tried this in the main stack OK I think I may have it. How do I add an axtension in the script onto the end of the gliobals IE tStackName and add .abd on the end. I tried on mouseUp copy field TextField of stack Armbase Database Designer to card 1 of stack tStackName .abd end mouseUp Is this right? cheers bob global tStackName, tFileName and a button that had on mouseUp copy field TextField of stack Armbase Database Designer to card 1 of stack tFileName end mouseUp and didn't get any luck with this either cheers bob -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 265.8.7 - Release Date: 10/02/2005 ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 265.8.7 - Release Date: 10/02/2005 ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: copy field to stack of unknown name
On Feb 15, 2005, at 12:54 PM, Bob Hartley wrote: --on the other stack I have a button that has the script on mouseUp copy field TextField of stack Armbase Database Designer to card 1 of stack tFileName end mouseUp Probably too obvious, so forgive me if I'm off base, but: 1. Is the global tFileName defined in the second stack where this handler lives? 2. You want tFileName not in quotations, otherwise you're looking for a stack CALLED tFileName, which is clearly not your intent. Dan ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: copy field to stack of unknown name
At 22:36 15/02/2005, you wrote: On Feb 15, 2005, at 12:54 PM, Bob Hartley wrote: --on the other stack I have a button that has the script on mouseUp copy field TextField of stack Armbase Database Designer to card 1 of stack tFileName end mouseUp Probably too obvious, so forgive me if I'm off base, but: Hi Dan thanks for taking a look 22.51 here in scotland and I'm a bit tired so hope I make sense. 1. Is the global tFileName defined in the second stack where this handler lives? This is defined in the first stack Armbase Database Designer where there is a button new that clones a stack that the user can name. In the first stack there is a button and a field. the button has the above script. (removing the quotes from the tfielname make no difference, still an error) The target stack does not have the script. 2. You want tFileName not in quotations, otherwise you're looking for a stack CALLED tFileName, which is clearly not your intent. Dan cheers Bob ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 265.8.7 - Release Date: 10/02/2005 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 265.8.7 - Release Date: 10/02/2005 ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: copy field to stack of unknown name
Try this: on mouseUp global tStackName copy field TextField of stack Armbase Database Designer to card 1 of stack tStackName end mouseUp Cheers, Sarah On 16/02/2005, at 6:50 AM, Bob Hartley wrote: --on the other stack I have a button that has the script on mouseUp copy field TextField of stack Armbase Database Designer to card 1 of stack tFileName end mouseUp ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: copy field to stack of unknown name
Hi Bob, I think you are on the right track, but the stack name (or stack file name) needs to be a global or custom property if scripts in other objects are going to access it. Cheers, Sarah On 13/02/2005, at 2:04 AM, Bob Hartley wrote: At 15:31 12/02/2005, you wrote: Hi Bob, Hi Klaus No luck with this. I used the method of Richard Gaskin's employee database to ask the user for a filename before starting. I had this working the old fashioned way but I think the pre-save is more elegant. Anyway I used this for them to make a new file. on doFileNew ask file Name new database file: with MyDatabase.abd if it is empty then exit to top put it into tFileName if char -4 to -1 of tFileName is not .abd then put .abd after tFileName set the itemDelimiter to / put last item of tFileName into tStackName set the visible of stack Master Database to false clone stack Master database Err the result set the name of stack it to tStackName set the title of stack tStackName to (char 1 to -5 of tStackName) --set the minWidth of stack tStackName to 500 --set the minHeight of stack tStackName to 250 set the fileName of stack tStackName to tFileName -- tFileName is the full pathname of the file the user named earlier. Err the result set the visible of stack Master Database to true put the stackFileType into tSaveStackFileType set the stackFileType to RevoABD_ save stack tStackName Err the result set the stackFileType to tSaveStackFileType show stack tStackName toplevel stack tStackName end doFileNew Now when I use a buton with the script on mouseUp copy field TextField of stack Armbase Database Designer to card 1 of stack tFileName --or use tStackName end mouseUp then there is an error executing at 4:01:57 PM TypeChunk: can't find stack Object Add Field Linecopy field TextField of stack Armbase Database Designer to card 1 of stack tFileName Hintbutton id 1052 of card id 1002 of stack Armbase Database Designer If I use tStackName I get the same executing at 4:03:54 PM TypeChunk: can't find stack Object Add Field Linecopy field TextField of stack Armbase Database Designer to card 1 of stack tStackName Hintbutton id 1052 of card id 1002 of stack Armbase Database Designer But if I use on mouseUp copy field TextField of stack Armbase Database Designer to card 1 of stack MyDatabase.abd end mouseUp It works, however I don't know if the target stack is always going to be MyDatabase.abd If I use tStackName.abd I get the same error Any help would be great Cheers Bob; Sunny Scotland ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
copy field to stack of unknown name
Hi All. I have a wee database designer app for my students Armbase Database Designer. I would like to copy a field from my master database to the new database. The new database is named by the student so I don't know the name. Therefor I cant use on mouseUp copy field TextField of stack Armbase Database Designer to card 1 of stack MyDatabase.abd end mouseUp I thought of putting the file name of the stack into a variable tStackName and using the command on mouseUp copy field TextField of stack Armbase Database Designer to card 1 of stack tStackName end mouseUp Any ideas? All the best Bob; Sunny Scotland -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 265.8.7 - Release Date: 10/02/2005 ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: copy field to stack of unknown name
Hi Bob, Hi All. I have a wee database designer app for my students Armbase Database Designer. I would like to copy a field from my master database to the new database. The new database is named by the student so I don't know the name. Therefor I cant use on mouseUp copy field TextField of stack Armbase Database Designer to card 1 of stack MyDatabase.abd end mouseUp I thought of putting the file name of the stack into a variable tStackName and using the command on mouseUp copy field TextField of stack Armbase Database Designer to card 1 of stack tStackName ## leave the quotes and that should work fine :-) end mouseUp Any ideas? A variable will do. All the best Bob; Sunny Scotland Regards Klaus Major [EMAIL PROTECTED] http://www.major-k.de ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution