Jeg har i VB5 og VB6 aldrig haft problemer med at erklære variabler som globale i et modul:
Declare Function GetUserName Lib "advapi32.dll" Alias "GetUserNameA" (ByVal lpBuffer As String, nSize As Long) As Long Declare Function GetComputerName Lib "kernel32" Alias "GetComputerNameA" (ByVal lpBuffer As String, nSize As Long) As Long
Global netsti, besksti, labsti, doksti, tekbeh, singlesti, acrosti, prod, ufilnavn As String Global prod1, prod2, wordpadsti, scansti As String Global sagnr, tlfnr, eks, dokfil As String Global lab(90), hvdgrp(100), undgrp(1000), stam(20), ini(30), felt(101, 15) As String
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.