Date: prev next · Thread: first prev next last
2016 Archives by date, by thread · List index


W O W Dick... Ik ben echt onder de indruk! Dat je dat zo snel kan! Maar hier wreekt zich het feit dat ik dus echt niet zo'n hele held ben in spreadsheets. Mijn vraag: Wat zou ik met je werk moeten doen? Kan ik het op één of andere manier aan calc te eten geven?

Op 01-09-16 om 21:06 schreef Dick Stomp:
Hier is het hele verhaal:
// Function
function calc(user, number) {
// Owner
if (user == 'owner' && number == '4') box =
eval("document.all.chmod.owner4");
if (user == 'owner' && number == '2') box =
eval("document.all.chmod.owner2");
if (user == 'owner' && number == '1') box =
eval("document.all.chmod.owner1");

// Group
if (user == 'group' && number == '4') box =
eval("document.all.chmod.group4");
if (user == 'group' && number == '2') box =
eval("document.all.chmod.group2");
if (user == 'group' && number == '1') box =
eval("document.all.chmod.group1");

// Other
if (user == 'other' && number == '4') box =
eval("document.all.chmod.other4");
if (user == 'other' && number == '2') box =
eval("document.all.chmod.other2");
if (user == 'other' && number == '1') box =
eval("document.all.chmod.other1");

if (box.checked == true) {
// Owner
if (user == 'owner') {
document.chmod.h_owner.value += ' + number';
a = document.all.chmod.h_owner.value;
b= eval(a);
document.all.chmod.h_owner.value=b;
document.all.chmod.t_owner.value=b;
}
// Group
if (user == 'group') {
document.all.chmod.h_group.value += ' + number';
a= document.all.chmod.h_group.value;
b= eval(a);
document.all.chmod.h_group.value = b;
document.all.chmod.t_group.value = b;
}
// Other
if (user == 'other') {
document.chmod.h_other.value += ' + number';
a= document.all.chmod.h_other.value;
b= eval(a);
document.all.chmod.h_other.value = b;
document.all.chmod.t_other.value = b;
}
}

if (box.checked == false) {
// Owner
if (user == 'owner') {
if (document.all.chmod.h_owner.value == '') {
document.all.chmod.t_owner.value=""
} else {
a = document.all.chmod.h_owner.value;
b = a - number;
c = eval(b);
document.all.chmod.h_owner.value = c;
document.all.chmod.t_owner.value = c;
}
}
// Group
if (user == 'group') {
if (document.all.chmod.h_group.value == '') {
document.all.chmod.t_group.value="";
}else {
a = document.all.chmod.h_group.value;
b = a - number;
c = eval(b);
document.all.chmod.h_group.value=c;
document.all.chmod.t_group.value=c;
}
}
// Other
if (user == 'other') {
if (document.all.chmod.h_other.value == '') {
document.all.chmod.t_other.value=""
} else {
a = document.all.chmod.h_other.value;
b = a - number;
c = eval(b);
document.all.chmod.h_other.value=c;
document.all.chmod.t_other.value=c;
}
}
}
}

//-->
</script>

<

Op 1 september 2016 20:52 schreef pieter kristensen <
pieterkristensen@gmail.com>:

Ik vind dit http://www.onlineconversion.com/html_chmod_calculator.htm
echt handig.
Kan ik zoiets in calc maken?

Ik bedoel: zo'n selectievlakje en als je erop klikt is het een waarde? En
als je er niet op klikt is het nul.
Het lukte me niet om in de help-functie te vinden.

Ik hoef echt geen uitvoerig antwoord, maar met wat aanwijzingen waar ik
moest zoeken zou ik wel blij zijn.

--
Unsubscribe instructions: E-mail to users+unsubscribe@nl.libreoffice.org
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/nl/users/
All messages sent to this list will be publicly archived and cannot be
deleted





--
Unsubscribe instructions: E-mail to users+unsubscribe@nl.libreoffice.org
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/nl/users/
All messages sent to this list will be publicly archived and cannot be deleted

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.