Проблемы с выделением SIP-адреса из AppData \ Local \ Microsoft \ Office \ 16.0 \ Lync

Вы можете использовать 100vw / 100vh. CSS3 дает нам относительные единицы. 100vw означает 100% ширины окна просмотра. 100vh; 100% от высоты.

    <div style="display:flex; justify-content: space-between;background-color: lightyellow; width:100%; height:85vh">
        <div style="width:70%; height: 100%; border: 2px dashed red"></div>
        <div style="width:30%; height: 100%; border: 2px dashed red"></div>
    </div>
0
задан slavoo 17 January 2019 в 12:20
поделиться

1 ответ

В зависимости от того, является ли строковая часть example2 уникальной для адреса каталога, вы можете использовать что-то вроде

Dim lst As List(Of String) = IO.Directory.GetDirectories("C:...").ToList
MessageBox.Show(lst.FindAll(Function(x) x.Contains("example2"))(0))

, если хотите сравнить только последнюю часть строки, вы можете использовать что-то вроде [113 ]

Dim lst As List(Of String) = IO.Directory.GetDirectories("C:...").ToList

For Each item As String In lst

    Dim lastindexofbackslash As Integer = item.LastIndexOf("\")

    Dim _item As String = item.Substring(lastindexofbackslash + 1)

    If _item.Contains("example2") Then

        MsgBox(_item.Substring(4))

    End If

Next
0
ответ дан Markus 17 January 2019 в 12:20
поделиться
Другие вопросы по тегам:

Похожие вопросы: