Bonjour,
D'après le tutoriel DAO de Tofalu "Définition et manipulation de données avec DAO" la propriété Bookmark retourne un tableau contenant des données de type Byte :
D'après {F1} c'est un String :La propriété Bookmark du Recrodset retourne un signet vers l'enregistrement. Il s'agit d'un tableau contenant des données de type Byte.
Dim BytPosition() as Byte
BytPosition=oRecordset.Bookmark
(Chez moi c'est tout bilingue, mais je n'ai pas fait exprès : L'aide Visual Basic s'affiche en français et/ou en anglais, avec parfois des mélanges).
Dans quelles conditions un tableau de Bytes est-il "équivalent" ou peut-il être contenu dans un simple String ?When a bound form is opened in Form view, each record is assigned a unique bookmark. In Visual Basic, you can save the bookmark for the current record by assigning the value of the form's Bookmark property to a string variable. To return to a saved record after moving to a different record, set the form's Bookmark property to the value of the saved string variable. You can use the StrComp function to compare a Variant or string variable to a bookmark, or when comparing a bookmark against a bookmark. The third argument for the StrComp function must be set to a value of zero.
Est-ce que si on a déclaré le bookmark comme étant de type tableau de Bytes on peut toujours y appliquer une fonction de comparaison de chaînes ?
Quelle est la manière la plus "propre" de travailler avec un bookmark dont on souhaite affecter la valeur à une variable ?
Quelqu'un voudrait-il bien m'éclairer ?
Merci beaucoup,
Cordialement.
CRUSOE13
Partager