Information générale
Catégorie:
Codage, syntaxe et commandes
>>mytable.fcDatabase in this case has a path like:
>>"\\computer\sharename\datapath"
>>
>>Problem is, the addlistitem() is stripping off the first "\". What ends up
>>being stored is "\computer\sharename\datapath"
>>
>>I tried assigning field value to a variable first, and then addlistitem
>>(variable, count), but that did the same thing. Is this something wierd with
>>addlistitem, or am I just smokin?
>
>Something weird. :-) Backslash in a list means the item is disabled, so that's why you're losing it here. Try trimming the '\\' off when you add it, and then when you select it, put it back on.
Hmmm. Actually what I ended up as a workaround was to check for the '\\' first and then stuck an extra '\' at the beginning and that works as well. I'm not sure I follow your meaning when you say the backslash makes the item "disabled". I don't see any different behavior in the display of an item with a single '\' in the list. Can you elaborate?
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement