Skip to the posts
Buffalo's neighborhood journals since 2003 🍀 Patrick Spicy Devil Logan🌭 Sahlen🥨 Weber Spank🥟 Pierogi🐸 Scaj🍺 Labatt Utica Pink Cherio❄️ Snow Murder

paul’s journal

visual basic logic

· · 🌡️ 0°F

strComp is a visual basic string manipulation function that compares the contents of two strings. When they are equal it returns 0. Yes, that is a zero, known everwhere else as false.

💬 1 comment

  1. ajay ·

    Ah, but if it is doing a comparison (and not an equality check), then the result could be negative (if first string is less than the second), 0 (if they are equal) or positive (if first is greater than the second). Think of it as the "<=>" operator. For example, the comparison function in Unix's qsort() routine does the same thing.

💬 Write a comment