Search found 20 matches

by alberto.fre
Tue Aug 26, 2014 8:46 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: work with lines of field
Replies: 6
Views: 4397

Re: work with lines of field

thank you very much.
by alberto.fre
Tue Aug 26, 2014 7:52 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: work with lines of field
Replies: 6
Views: 4397

Re: work with lines of field

works fine, thank you very much. :D I've got an other doubt: there is a shorter way to return the data from many fields into one, separated by a comma or a newline. My solution is not very elegant and is very long :cry: thank you put field "1a" into field "numero" put field "2a" into line 2 of field...
by alberto.fre
Tue Aug 26, 2014 7:42 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: work with lines of field
Replies: 6
Views: 4397

Re: work with lines of field

thank you for the replies
your field contains actually a number PER line
yes
now I'll try using your suggests
bye
Alberto
by alberto.fre
Tue Aug 26, 2014 6:40 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: work with lines of field
Replies: 6
Views: 4397

work with lines of field

Hi, I have a doubt: my program works by step: 1) the user insert some numbers 2) the program puts the numbers into some lines of a field 3) the program calculates the average ?) i want to calculate the standard deviation; the syntax is "standardDeviation (a,b,c)" but how i can insert "a,b,c"? I don'...
by alberto.fre
Sat Aug 09, 2014 3:15 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: count field if..
Replies: 9
Views: 5808

Re: count field if..

encouraged :idea:
thank's
by alberto.fre
Sat Aug 09, 2014 3:07 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: count field if..
Replies: 9
Views: 5808

Re: count field if..

thank you, really simple and functional. My code is prehistoric :oops: . I have to study a lot more
by alberto.fre
Sat Aug 09, 2014 2:37 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: count field if..
Replies: 9
Views: 5808

Re: count field if..

Thank you for your attention my target is to calculate the partial average when the fields aren't all completed I cite my code for example. This code works fine for my target, but it isn't elegant. I need to count the empty fields to calculate the partial average. on mouseUp set the numberFormat to ...
by alberto.fre
Sat Aug 09, 2014 1:36 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: count field if..
Replies: 9
Views: 5808

Re: count field if..

thanks, it works fine; but to just get the number of empty fields of a group?
by alberto.fre
Sat Aug 09, 2014 10:37 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: count field if..
Replies: 9
Views: 5808

count field if..

Hi,
what command I can use to count only the fields blank? and what is its syntax? :?
my program calculates the average of seven rates entered by the user, but i also want to calculate the partial average.
thank you
by alberto.fre
Fri Nov 22, 2013 7:21 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: file and ftp: where is the problem?
Replies: 4
Views: 2896

file and ftp: where is the problem?

Ciao My code write a file in directory Documents.The file name is the variable tName that the user write in a initial card The script log-in into server ftp but the file upload fails (status Update: connected; status update: error) I don't know the reason. I think the error is in definition of file ...
by alberto.fre
Sat Nov 16, 2013 8:12 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: name file with variable
Replies: 13
Views: 7424

Re: name file with variable

I solved, thanks for the advice.
the variable "tName" was empty!
In fact, the request of the user name is in another card.
I have to study well yet variables.
Thanks for your help
by alberto.fre
Sat Nov 16, 2013 7:42 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: name file with variable
Replies: 13
Views: 7424

Re: name file with variable

Ciao
The code generates the file tName and doesn't generate the file with users names... why? :cry:

Code: Select all

on mouseUp
    set the defaultFolder to specialFolderPath("Documents")  
    put "file:"& tName &".txt" into tPath
   put fld "score" into URL (tPath) 
end mouseup
bye
by alberto.fre
Sat Nov 16, 2013 6:55 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: name file with variable
Replies: 13
Views: 7424

Re: name file with variable

Ok, I probably something err. is not sufficient to write? put field "score" into URL ( "file:" & tName".txt") The program generates a file with the field (for me, is text field "score") into the program directory when I try put specialFolderPath("Documents") & "/" & tName &".txt" into tPath the prog...