All the old posts contain [code] and [/code] tags - it should be easy to replace them all with three back ticks as otherwise they show just as text, not as code.
see for example Set PopupMenu ListIndex
Sub SetText(extends pm as PopupMenu, assigns s as String) for i as integer = 0 to pm.ListCount-1 if pm.list(i) = s then pm.ListIndex = i return // exit end next // what if text is not in the popup menu? MsgBox "I tried to set <" + pm.Name + "> to <" + s + "> but it is not one of the available choices. Please inform the developer of this." End Sub
Hmm, slight correction: the code formatting is shown when both tags are on their own line or are both inline, but only as a single line.