Re: value of variable
On Tuesday, September 28, 2004, at 09:28 PM, Ken Ray wrote: On 9/28/04 5:42 PM, Hershel Fisch [EMAIL PROTECTED] wrote: on mouseUp answer What kink of file are you putting ? with Tab Delimited and Comma Delimited and Cancel--and on put word 1 of it into sFileType if sFileType is cancel then exit mouseUp else answer file a put it into fld f1 do put URL quote file: it quote into fld quote f1 quote replace sFileType with ' in fld f1 end if end mouseUp Hershel, your code above puts the path from 'answer file' into fld f1, and then puts the contentes of the file into the same field, overwriting it. You don't need to do that. You also don't need to do the replace action on the data *in* the field; it's best to do it in a variable first. To use the string that came back from the first answer, you need to use do to resolve it to a variable and not a string. Something like this: Thanks, the reason I put it into the fld is to see whats going on. Hershel answer file a if it then put url(file: it) into tData do replace sFileType with quote ' quote in tData put tData into fld 1 end if HTH, Ken Ray Sons of Thunder Software Web site: http://www.sonsothunder.com/ Email: [EMAIL PROTECTED] ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: value of variable
Hi Hershel, On Tuesday, September 28, 2004, at 06:25 PM, Devin Asay wrote: I think it's because you put the string tab into the variable instead of the constant tab (ASCII 9). Does it work if you use put tab into myVar ? Yes, Thanks . But on mouseUp answer What kink of file are you putting ? with Tab Delimited and Comma Delimited and Cancel--and on put word 1 of it into sFileType if sFileType is cancel then exit mouseUp else answer file a put it into fld f1 do put URL quote file: it quote into fld quote f1 quote replace sFileType with ' in fld f1 end if end mouseUp how would I do this ? ... replace value(sFileType) with ' in fld 1 ... Tested and works :-) Hershel Best Klaus Major [EMAIL PROTECTED] http://www.major-k.de ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
value of variable
Hi all I'm trying to figure out how the value of var is used ? e.g. put tab into myVar replace myVar with , in fld 1 wouldn't work , why ? Hershel ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: value of variable
why are you doing the 'put url (file it) into field f1' part? also try this for your replace line do replace quote sFileType quote with empty in field quote f1 quote' watch for linewraps! On Sep 29 2004, at 00:42, Hershel Fisch wrote: On Tuesday, September 28, 2004, at 06:25 PM, Devin Asay wrote: I think it's because you put the string tab into the variable instead of the constant tab (ASCII 9). Does it work if you use put tab into myVar ? Yes, Thanks . But on mouseUp answer What kink of file are you putting ? with Tab Delimited and Comma Delimited and Cancel--and on put word 1 of it into sFileType if sFileType is cancel then exit mouseUp else answer file a put it into fld f1 do put URL quote file: it quote into fld quote f1 quote replace sFileType with ' in fld f1 end if end mouseUp how would I do this ? Hershel Otherwise, why not just use replace tab with comma in fld 1 Devin On Sep 28, 2004, at 3:25 PM, Hershel Fisch wrote: Hi all I'm trying to figure out how the value of var is used ? e.g. put tab into myVar replace myVar with , in fld 1 wouldn't work , why ? Hershel ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution Devin Asay Humanities Technology and Research Support Center Brigham Young University ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution ()()()()()()()()()() Chat with other RunRev developers: go stack URL http://homepage.mac.com/bvg/chatrev1.2.rev; ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: value of variable
On Tuesday, September 28, 2004, at 07:24 PM, Björnke von Gierke wrote: why are you doing the 'put url (file it) into field f1' part? What else should do ? (actually I should of put answer file empty instead of a.) I need the file path to locate a path and use the path. also try this for your replace line do replace quote sFileType quote with empty in field quote f1 quote' Doesn't work. watch for linewraps! On Sep 29 2004, at 00:42, Hershel Fisch wrote: On Tuesday, September 28, 2004, at 06:25 PM, Devin Asay wrote: I think it's because you put the string tab into the variable instead of the constant tab (ASCII 9). Does it work if you use put tab into myVar ? Yes, Thanks . But on mouseUp answer What kink of file are you putting ? with Tab Delimited and Comma Delimited and Cancel--and on put word 1 of it into sFileType if sFileType is cancel then exit mouseUp else answer file empty put it into fld f1 do put URL quote file: it quote into fld quote f1 quote replace sFileType with ' in fld f1 end if end mouseUp how would I do this ? Hershel Otherwise, why not just use replace tab with comma in fld 1 Devin On Sep 28, 2004, at 3:25 PM, Hershel Fisch wrote: Hi all I'm trying to figure out how the value of var is used ? e.g. put tab into myVar replace myVar with , in fld 1 wouldn't work , why ? Hershel ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution Devin Asay Humanities Technology and Research Support Center Brigham Young University ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution ()()()()()()()()()() Chat with other RunRev developers: go stack URL http://homepage.mac.com/bvg/chatrev1.2.rev; ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: value of variable
On 9/28/04 5:42 PM, Hershel Fisch [EMAIL PROTECTED] wrote: on mouseUp answer What kink of file are you putting ? with Tab Delimited and Comma Delimited and Cancel--and on put word 1 of it into sFileType if sFileType is cancel then exit mouseUp else answer file a put it into fld f1 do put URL quote file: it quote into fld quote f1 quote replace sFileType with ' in fld f1 end if end mouseUp Hershel, your code above puts the path from 'answer file' into fld f1, and then puts the contentes of the file into the same field, overwriting it. You don't need to do that. You also don't need to do the replace action on the data *in* the field; it's best to do it in a variable first. To use the string that came back from the first answer, you need to use do to resolve it to a variable and not a string. Something like this: answer file a if it then put url(file: it) into tData do replace sFileType with quote ' quote in tData put tData into fld 1 end if HTH, Ken Ray Sons of Thunder Software Web site: http://www.sonsothunder.com/ Email: [EMAIL PROTECTED] ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution