Template Errors: PAGE_CONTAINER

  1. A non-numeric value encountered in /home/admin/web/codeby.net/public_html/forum/library/XenForo/Template/Abstract.php(265) : eval()'d code, line 492:
    491: $headerTabHeight_outer = '';
    492: $headerTabHeight_outer .= (XenForo_Template_Helper_Core::styleProperty('headerTabHeight') + XenForo_Template_Helper_Core::styleProperty('navTabs.border-top-width') + XenForo_Template_Helper_Core::styleProperty('navTabs.border-bottom-width') + XenForo_Template_Helper_Core::styleProperty('navTabs.padding-top') + XenForo_Template_Helper_Core::styleProperty('navTabs.padding-bottom'));
    493: $__compilerVar509 .= '
    
  2. A non-numeric value encountered in /home/admin/web/codeby.net/public_html/forum/library/XenForo/Template/Abstract.php(265) : eval()'d code, line 492:
    491: $headerTabHeight_outer = '';
    492: $headerTabHeight_outer .= (XenForo_Template_Helper_Core::styleProperty('headerTabHeight') + XenForo_Template_Helper_Core::styleProperty('navTabs.border-top-width') + XenForo_Template_Helper_Core::styleProperty('navTabs.border-bottom-width') + XenForo_Template_Helper_Core::styleProperty('navTabs.padding-top') + XenForo_Template_Helper_Core::styleProperty('navTabs.padding-bottom'));
    493: $__compilerVar509 .= '
    
  3. A non-numeric value encountered in /home/admin/web/codeby.net/public_html/forum/library/XenForo/Template/Abstract.php(265) : eval()'d code, line 492:
    491: $headerTabHeight_outer = '';
    492: $headerTabHeight_outer .= (XenForo_Template_Helper_Core::styleProperty('headerTabHeight') + XenForo_Template_Helper_Core::styleProperty('navTabs.border-top-width') + XenForo_Template_Helper_Core::styleProperty('navTabs.border-bottom-width') + XenForo_Template_Helper_Core::styleProperty('navTabs.padding-top') + XenForo_Template_Helper_Core::styleProperty('navTabs.padding-bottom'));
    493: $__compilerVar509 .= '
    
  4. A non-numeric value encountered in /home/admin/web/codeby.net/public_html/forum/library/XenForo/Template/Abstract.php(265) : eval()'d code, line 492:
    491: $headerTabHeight_outer = '';
    492: $headerTabHeight_outer .= (XenForo_Template_Helper_Core::styleProperty('headerTabHeight') + XenForo_Template_Helper_Core::styleProperty('navTabs.border-top-width') + XenForo_Template_Helper_Core::styleProperty('navTabs.border-bottom-width') + XenForo_Template_Helper_Core::styleProperty('navTabs.padding-top') + XenForo_Template_Helper_Core::styleProperty('navTabs.padding-bottom'));
    493: $__compilerVar509 .= '
    
  5. A non-numeric value encountered in /home/admin/web/codeby.net/public_html/forum/library/XenForo/Template/Abstract.php(265) : eval()'d code, line 496:
    495: $uix_fixedNavigationHeight_outer = '';
    496: $uix_fixedNavigationHeight_outer .= (XenForo_Template_Helper_Core::styleProperty('uix_fixedNavigationHeight') + XenForo_Template_Helper_Core::styleProperty('uix_fixedNavigation_style.border-top-width') + XenForo_Template_Helper_Core::styleProperty('uix_fixedNavigation_style.border-bottom-width') + XenForo_Template_Helper_Core::styleProperty('uix_fixedNavigation_style.padding-top') + XenForo_Template_Helper_Core::styleProperty('uix_fixedNavigation_style.padding-bottom'));
    497: $__compilerVar509 .= '
    
  6. A non-numeric value encountered in /home/admin/web/codeby.net/public_html/forum/library/XenForo/Template/Abstract.php(265) : eval()'d code, line 496:
    495: $uix_fixedNavigationHeight_outer = '';
    496: $uix_fixedNavigationHeight_outer .= (XenForo_Template_Helper_Core::styleProperty('uix_fixedNavigationHeight') + XenForo_Template_Helper_Core::styleProperty('uix_fixedNavigation_style.border-top-width') + XenForo_Template_Helper_Core::styleProperty('uix_fixedNavigation_style.border-bottom-width') + XenForo_Template_Helper_Core::styleProperty('uix_fixedNavigation_style.padding-top') + XenForo_Template_Helper_Core::styleProperty('uix_fixedNavigation_style.padding-bottom'));
    497: $__compilerVar509 .= '
    
  7. A non-numeric value encountered in /home/admin/web/codeby.net/public_html/forum/library/XenForo/Template/Abstract.php(265) : eval()'d code, line 496:
    495: $uix_fixedNavigationHeight_outer = '';
    496: $uix_fixedNavigationHeight_outer .= (XenForo_Template_Helper_Core::styleProperty('uix_fixedNavigationHeight') + XenForo_Template_Helper_Core::styleProperty('uix_fixedNavigation_style.border-top-width') + XenForo_Template_Helper_Core::styleProperty('uix_fixedNavigation_style.border-bottom-width') + XenForo_Template_Helper_Core::styleProperty('uix_fixedNavigation_style.padding-top') + XenForo_Template_Helper_Core::styleProperty('uix_fixedNavigation_style.padding-bottom'));
    497: $__compilerVar509 .= '
    
  8. A non-numeric value encountered in /home/admin/web/codeby.net/public_html/forum/library/XenForo/Template/Abstract.php(265) : eval()'d code, line 496:
    495: $uix_fixedNavigationHeight_outer = '';
    496: $uix_fixedNavigationHeight_outer .= (XenForo_Template_Helper_Core::styleProperty('uix_fixedNavigationHeight') + XenForo_Template_Helper_Core::styleProperty('uix_fixedNavigation_style.border-top-width') + XenForo_Template_Helper_Core::styleProperty('uix_fixedNavigation_style.border-bottom-width') + XenForo_Template_Helper_Core::styleProperty('uix_fixedNavigation_style.padding-top') + XenForo_Template_Helper_Core::styleProperty('uix_fixedNavigation_style.padding-bottom'));
    497: $__compilerVar509 .= '
    
  9. A non-numeric value encountered in /home/admin/web/codeby.net/public_html/forum/library/XenForo/Template/Abstract.php(265) : eval()'d code, line 501:
    500: $uix_tabLinksHeight_outer = '';
    501: $uix_tabLinksHeight_outer .= (XenForo_Template_Helper_Core::styleProperty('uix_tabLinksHeight') + XenForo_Template_Helper_Core::styleProperty('uix_tabLinks_style.padding-top') + XenForo_Template_Helper_Core::styleProperty('uix_tabLinks_style.padding-bottom') + XenForo_Template_Helper_Core::styleProperty('uix_tabLinks_style.border-bottom-width') + XenForo_Template_Helper_Core::styleProperty('uix_tabLinks_style.border-top-width'));
    502: $__compilerVar509 .= '
    
  10. A non-numeric value encountered in /home/admin/web/codeby.net/public_html/forum/library/XenForo/Template/Abstract.php(265) : eval()'d code, line 501:
    500: $uix_tabLinksHeight_outer = '';
    501: $uix_tabLinksHeight_outer .= (XenForo_Template_Helper_Core::styleProperty('uix_tabLinksHeight') + XenForo_Template_Helper_Core::styleProperty('uix_tabLinks_style.padding-top') + XenForo_Template_Helper_Core::styleProperty('uix_tabLinks_style.padding-bottom') + XenForo_Template_Helper_Core::styleProperty('uix_tabLinks_style.border-bottom-width') + XenForo_Template_Helper_Core::styleProperty('uix_tabLinks_style.border-top-width'));
    502: $__compilerVar509 .= '
    
  11. A non-numeric value encountered in /home/admin/web/codeby.net/public_html/forum/library/XenForo/Template/Abstract.php(265) : eval()'d code, line 505:
    504: $uix_tabLinksHeightSticky_outer = '';
    505: $uix_tabLinksHeightSticky_outer .= (XenForo_Template_Helper_Core::styleProperty('uix_tabLinksHeightSticky') + XenForo_Template_Helper_Core::styleProperty('uix_tabLinksSticky_style.padding-top') + XenForo_Template_Helper_Core::styleProperty('uix_tabLinksSticky_style.padding-bottom') + XenForo_Template_Helper_Core::styleProperty('uix_tabLinksSticky_style.border-bottom-width') + XenForo_Template_Helper_Core::styleProperty('uix_tabLinksSticky_style.border-top-width'));
    506: $__compilerVar509 .= '
    
  12. A non-numeric value encountered in /home/admin/web/codeby.net/public_html/forum/library/XenForo/Template/Abstract.php(265) : eval()'d code, line 505:
    504: $uix_tabLinksHeightSticky_outer = '';
    505: $uix_tabLinksHeightSticky_outer .= (XenForo_Template_Helper_Core::styleProperty('uix_tabLinksHeightSticky') + XenForo_Template_Helper_Core::styleProperty('uix_tabLinksSticky_style.padding-top') + XenForo_Template_Helper_Core::styleProperty('uix_tabLinksSticky_style.padding-bottom') + XenForo_Template_Helper_Core::styleProperty('uix_tabLinksSticky_style.border-bottom-width') + XenForo_Template_Helper_Core::styleProperty('uix_tabLinksSticky_style.border-top-width'));
    506: $__compilerVar509 .= '
    
  13. A non-numeric value encountered in /home/admin/web/codeby.net/public_html/forum/library/XenForo/Template/Abstract.php(265) : eval()'d code, line 505:
    504: $uix_tabLinksHeightSticky_outer = '';
    505: $uix_tabLinksHeightSticky_outer .= (XenForo_Template_Helper_Core::styleProperty('uix_tabLinksHeightSticky') + XenForo_Template_Helper_Core::styleProperty('uix_tabLinksSticky_style.padding-top') + XenForo_Template_Helper_Core::styleProperty('uix_tabLinksSticky_style.padding-bottom') + XenForo_Template_Helper_Core::styleProperty('uix_tabLinksSticky_style.border-bottom-width') + XenForo_Template_Helper_Core::styleProperty('uix_tabLinksSticky_style.border-top-width'));
    506: $__compilerVar509 .= '
    
  14. A non-numeric value encountered in /home/admin/web/codeby.net/public_html/forum/library/XenForo/Template/Abstract.php(265) : eval()'d code, line 510:
    509: $userBar_headerTabHeight_outer = '';
    510: $userBar_headerTabHeight_outer .= (XenForo_Template_Helper_Core::styleProperty('uix_userBarHeight') + XenForo_Template_Helper_Core::styleProperty('uix_userBar_style.border-top-width') + XenForo_Template_Helper_Core::styleProperty('uix_userBar_style.border-bottom-width') + XenForo_Template_Helper_Core::styleProperty('uix_userBar_style.padding-top') + XenForo_Template_Helper_Core::styleProperty('uix_userBar_style.padding-bottom'));
    511: $__compilerVar509 .= '
    
  15. A non-numeric value encountered in /home/admin/web/codeby.net/public_html/forum/library/XenForo/Template/Abstract.php(265) : eval()'d code, line 510:
    509: $userBar_headerTabHeight_outer = '';
    510: $userBar_headerTabHeight_outer .= (XenForo_Template_Helper_Core::styleProperty('uix_userBarHeight') + XenForo_Template_Helper_Core::styleProperty('uix_userBar_style.border-top-width') + XenForo_Template_Helper_Core::styleProperty('uix_userBar_style.border-bottom-width') + XenForo_Template_Helper_Core::styleProperty('uix_userBar_style.padding-top') + XenForo_Template_Helper_Core::styleProperty('uix_userBar_style.padding-bottom'));
    511: $__compilerVar509 .= '
    
  16. A non-numeric value encountered in /home/admin/web/codeby.net/public_html/forum/library/XenForo/Template/Abstract.php(265) : eval()'d code, line 510:
    509: $userBar_headerTabHeight_outer = '';
    510: $userBar_headerTabHeight_outer .= (XenForo_Template_Helper_Core::styleProperty('uix_userBarHeight') + XenForo_Template_Helper_Core::styleProperty('uix_userBar_style.border-top-width') + XenForo_Template_Helper_Core::styleProperty('uix_userBar_style.border-bottom-width') + XenForo_Template_Helper_Core::styleProperty('uix_userBar_style.padding-top') + XenForo_Template_Helper_Core::styleProperty('uix_userBar_style.padding-bottom'));
    511: $__compilerVar509 .= '
    
  17. A non-numeric value encountered in /home/admin/web/codeby.net/public_html/forum/library/XenForo/Template/Abstract.php(265) : eval()'d code, line 510:
    509: $userBar_headerTabHeight_outer = '';
    510: $userBar_headerTabHeight_outer .= (XenForo_Template_Helper_Core::styleProperty('uix_userBarHeight') + XenForo_Template_Helper_Core::styleProperty('uix_userBar_style.border-top-width') + XenForo_Template_Helper_Core::styleProperty('uix_userBar_style.border-bottom-width') + XenForo_Template_Helper_Core::styleProperty('uix_userBar_style.padding-top') + XenForo_Template_Helper_Core::styleProperty('uix_userBar_style.padding-bottom'));
    511: $__compilerVar509 .= '
    
  18. A non-numeric value encountered in /home/admin/web/codeby.net/public_html/forum/library/XenForo/Template/Abstract.php(265) : eval()'d code, line 514:
    513: $userBar_uix_fixedNavigationHeight_outer = '';
    514: $userBar_uix_fixedNavigationHeight_outer .= (XenForo_Template_Helper_Core::styleProperty('uix_fixedUserBarHeight') + XenForo_Template_Helper_Core::styleProperty('uix_fixedUserBar_style.border-top-width') + XenForo_Template_Helper_Core::styleProperty('uix_fixedUserBar_style.border-bottom-width') + XenForo_Template_Helper_Core::styleProperty('uix_fixedUserBar_style.padding-top') + XenForo_Template_Helper_Core::styleProperty('uix_fixedUserBar_style.padding-bottom'));
    515: $__compilerVar509 .= '
    
  19. A non-numeric value encountered in /home/admin/web/codeby.net/public_html/forum/library/XenForo/Template/Abstract.php(265) : eval()'d code, line 514:
    513: $userBar_uix_fixedNavigationHeight_outer = '';
    514: $userBar_uix_fixedNavigationHeight_outer .= (XenForo_Template_Helper_Core::styleProperty('uix_fixedUserBarHeight') + XenForo_Template_Helper_Core::styleProperty('uix_fixedUserBar_style.border-top-width') + XenForo_Template_Helper_Core::styleProperty('uix_fixedUserBar_style.border-bottom-width') + XenForo_Template_Helper_Core::styleProperty('uix_fixedUserBar_style.padding-top') + XenForo_Template_Helper_Core::styleProperty('uix_fixedUserBar_style.padding-bottom'));
    515: $__compilerVar509 .= '
    
  20. A non-numeric value encountered in /home/admin/web/codeby.net/public_html/forum/library/XenForo/Template/Abstract.php(265) : eval()'d code, line 514:
    513: $userBar_uix_fixedNavigationHeight_outer = '';
    514: $userBar_uix_fixedNavigationHeight_outer .= (XenForo_Template_Helper_Core::styleProperty('uix_fixedUserBarHeight') + XenForo_Template_Helper_Core::styleProperty('uix_fixedUserBar_style.border-top-width') + XenForo_Template_Helper_Core::styleProperty('uix_fixedUserBar_style.border-bottom-width') + XenForo_Template_Helper_Core::styleProperty('uix_fixedUserBar_style.padding-top') + XenForo_Template_Helper_Core::styleProperty('uix_fixedUserBar_style.padding-bottom'));
    515: $__compilerVar509 .= '
    
  21. A non-numeric value encountered in /home/admin/web/codeby.net/public_html/forum/library/XenForo/Template/Abstract.php(265) : eval()'d code, line 514:
    513: $userBar_uix_fixedNavigationHeight_outer = '';
    514: $userBar_uix_fixedNavigationHeight_outer .= (XenForo_Template_Helper_Core::styleProperty('uix_fixedUserBarHeight') + XenForo_Template_Helper_Core::styleProperty('uix_fixedUserBar_style.border-top-width') + XenForo_Template_Helper_Core::styleProperty('uix_fixedUserBar_style.border-bottom-width') + XenForo_Template_Helper_Core::styleProperty('uix_fixedUserBar_style.padding-top') + XenForo_Template_Helper_Core::styleProperty('uix_fixedUserBar_style.padding-bottom'));
    515: $__compilerVar509 .= '
    

Помогите с Rnd в VB6

Тема в разделе "Visual Basic", создана пользователем Hetman, 18 ноя 2004.

Статус темы:
Закрыта.
  1. Hetman

    Hetman Гость

    Репутация:
    0
    Проблема такова:
    генерю строку где каждый из 256 символов появляется по 16 раз т.е. в сумме 4096 символов.
    Для этого использую Rnd:
    Код:
    ==
    Randomize
    str$=Chr(255*Rnd)
    ==
    но получается только 1700 символов сгенерить за 2-4 секунды, а потом стоп и больше ни][рена.
    пробывал сгенерить два HEX числа что бы составить символ, но так ещё меньше выходит = 1600.
    В чём трабл?
    вместо диапозона 0-255
    только 0-99 :)
     
  2. ????

    ???? Гость

    Репутация:
    0
    Hetman
    Код есть, хорошо... Но он же не полный..?
    ну 256 я вижу, а 16 где?
    у меня с твоим кодом получилось сгенерировать только 1 символ за (время не засекал), а потом ...
    А это как делал?
    Может глюк :)

    З.Ы. Я не VB'шник, но немного разбираюсь. Думал помочь, а не могу... надеюсь понятно.
     
  3. Hetman

    Hetman Гость

    Репутация:
    0
    Я писал с надеждой что кто-то сталкивался с проблемой посему даю код пополнее. Если есть идеии его упращения/улучшения милости - просим
    Код:
    Do While Len(str) <= 4095
     tvalueA = Hex$(15 * Rnd)
     Randomize
     tvalueB = Hex$(15 * Rnd)
     
     tmp = Chr(Val(tvalueA & tvalueB))
     If Over(tmp) = False Then
      str = str & tmp
     End If
     DoEvents
    Loop
    функция Over
    Код:
    pos = 1
    count = 1
     Do While Len(str) < 4096 '
      t = InStr(pos, str, sstr)
      If t = 0 Then '{1}>
        Exit Do
      Else
        If count > 15 Then '{2}>
         Over = True
         Exit Function
        Else
         count = count + 1
         pos = t + 1
        End If '<{2}
      End If '<{1}
      DoEvents
     Loop
    генерироване доходит до 39% т.е. 1600 символов и всё!
    после исследования сгенерированной последовательности выяснилось, что используються толко первая сотня символов (до &h63 включительно), а почему остальные не появляються?
     
  4. Hetman

    Hetman Гость

    Репутация:
    0
    все! нашел сам я код пределал так
    Код:
    Do While Len(str) <= 4095
     Randomize
     value = CByte(255 * Rnd)
     If Over(str, value) = False Then
      str = str & Chr(value)
      'Command1.Caption = CInt(Len(str) / 4096 * 100) & "%"
     End If
     DoEvents
    Loop
    функция Over
    Код:
    Function Over(sstr$, smb As Byte) As Boolean
    pos = 1
    count = 1
     Do While Len(str) < 4096 '
      t = InStr(pos, sstr, Chr(smb))
      If t = 0 Then '{1}>
        Exit Do
      Else
        If count > 15 Then '{2}>
         Over = True
         Exit Function
    '     tmp = Val(tmp) + 1
    '     pos = 1
        Else
         count = count + 1
         pos = t + 1
        End If '<{2}
      End If '<{1}
      DoEvents
     Loop
    End Function
    В предидущем коде трабл в том был что когда
    то все "левые" символы сводились к одному и томуже символу-квадрату,
    который уже был в последовательности, так что мне кажется тема исчерпана.
     
Загрузка...
Статус темы:
Закрыта.

Поделиться этой страницей