Cette action est irreversible, confirmez la suppression du commentaire ?
Signaler le commentaire
Veuillez sélectionner un problème
Nudité
Violence
Harcèlement
Fraude
Vente illégale
Discours haineux
Terrorisme
Autre
pere.noel
Une bévue wrote:
on trimMissingValue(textToTrim) if textToTrim = "missing value" then return "" return textToTrim end trimMissingValue
j'ai changé ma subroutine en :
on trimMissingValue(textToTrim) if textToTrim is missing value or textToTrim is {} then return "" else if class of textToTrim is string then return textToTrim end if end trimMissingValue
suivant un exemple de "Late Night Software" : <http://www.latenightsw.com/freeware/XMLTools2/asUtilities.html>
tjs la même erreur...
-- une bévue
Une bévue <pere.noel@laponie.com> wrote:
on trimMissingValue(textToTrim)
if textToTrim = "missing value" then return ""
return textToTrim
end trimMissingValue
j'ai changé ma subroutine en :
on trimMissingValue(textToTrim)
if textToTrim is missing value or textToTrim is {} then
return ""
else if class of textToTrim is string then
return textToTrim
end if
end trimMissingValue
suivant un exemple de "Late Night Software" :
<http://www.latenightsw.com/freeware/XMLTools2/asUtilities.html>
on trimMissingValue(textToTrim) if textToTrim = "missing value" then return "" return textToTrim end trimMissingValue
j'ai changé ma subroutine en :
on trimMissingValue(textToTrim) if textToTrim is missing value or textToTrim is {} then return "" else if class of textToTrim is string then return textToTrim end if end trimMissingValue
suivant un exemple de "Late Night Software" : <http://www.latenightsw.com/freeware/XMLTools2/asUtilities.html>
tjs la même erreur...
-- une bévue
pere.noel
Une bévue wrote:
'ai changé ma subroutine en :
on trimMissingValue(textToTrim) if textToTrim is missing value or textToTrim is {} then return "" else if class of textToTrim is string then return textToTrim end if end trimMissingValue
suivant un exemple de "Late Night Software" : <http://www.latenightsw.com/freeware/XMLTools2/asUtilities.html>
tjs la même erreur...
j'ai contourné le problème par :
set thisDepartment to department of thisPerson if thisDepartment is missing value then set thisDepartment to "" end if
mais est-ce du au fait que c'est à l'intérieur d'un block tell/end tell, je n'arrive pas à mettre ce test dans une subroutine ???
-- une bévue
Une bévue <pere.noel@laponie.com> wrote:
'ai changé ma subroutine en :
on trimMissingValue(textToTrim)
if textToTrim is missing value or textToTrim is {} then
return ""
else if class of textToTrim is string then
return textToTrim
end if
end trimMissingValue
suivant un exemple de "Late Night Software" :
<http://www.latenightsw.com/freeware/XMLTools2/asUtilities.html>
tjs la même erreur...
j'ai contourné le problème par :
set thisDepartment to department of thisPerson
if thisDepartment is missing value then
set thisDepartment to ""
end if
mais est-ce du au fait que c'est à l'intérieur d'un block tell/end tell,
je n'arrive pas à mettre ce test dans une subroutine ???
on trimMissingValue(textToTrim) if textToTrim is missing value or textToTrim is {} then return "" else if class of textToTrim is string then return textToTrim end if end trimMissingValue
suivant un exemple de "Late Night Software" : <http://www.latenightsw.com/freeware/XMLTools2/asUtilities.html>
tjs la même erreur...
j'ai contourné le problème par :
set thisDepartment to department of thisPerson if thisDepartment is missing value then set thisDepartment to "" end if
mais est-ce du au fait que c'est à l'intérieur d'un block tell/end tell, je n'arrive pas à mettre ce test dans une subroutine ???