- Код: Выделить всё
Public function helloWorld(my param as string) as string
helloWorld = myParam
end function
Public function helloWorld(my param as string) as string
helloWorld = myParam
end function
Private Sub Test(str as String)
MsgBox "Hello World!" 'Sub means subprocedure, As String - variable type
End Sub
Private Sub Test(str as String)
MsgBox "Hello World!" 'Sub means subprocedure, As String - variable type
End Sub
Dim counter As Long
Public function helloWorld(my param as string) as string
helloWorld = myParam
end function
Public function helloWorld(my param as string) as string
helloWorld = myParam
end function
Sub Test
End Sub
Private Sub ColourPicker1_Cancel()
Unload Me
End Sub
Private Sub ColourPicker1_ColourChoosen(ByVal Colour As Long)
Select Case frmMain.tbsCodeTabs.SelectedItem.Key
Case "Code"
frmMain.rtfCode.SelColor = Colour
Case "Notes"
frmMain.rtfNotes.SelColor = Colour
End Select
frmMain.ColourButton1.Colour = Colour
Unload Me
End Sub
Private Sub Form_Load()
On Error Resume Next
Dim MeTop As Long
Dim MeLeft As Long
Dim TaskBarHwnd As Long
Dim TaskRect As RECT
Dim ColoursRect As RECT
Me.Move frmMain.tbRTF.Buttons("Font Colour").Left + frmMain.tbRTF.Left + frmMain.Left + 70, _
frmMain.rtfCode.Top + frmMain.Top + 650
TaskBarHwnd = FindWindow(TaskBar, "")
Call GetWindowRect(TaskBarHwnd, TaskRect)
Call GetWindowRect(Me.hwnd, ColoursRect)
If ColoursRect.Right > TaskRect.Right Then
MeLeft = Screen.Width - Me.Width
Else
MeLeft = frmMain.tbRTF.Buttons("Font Colour").Left + frmMain.tbRTF.Left + frmMain.Left + 70
End If
If ColoursRect.Bottom > TaskRect.Top Then
MeTop = (TaskRect.Top * Screen.TwipsPerPixelX) - Me.Height
Else
MeTop = frmMain.rtfCode.Top + frmMain.Top + 650
End If
Me.Move MeLeft, MeTop
Select Case frmMain.tbsCodeTabs.SelectedItem.Key
Case "Code"
ColourPicker1.SelectedColour = frmMain.rtfCode.SelColor
Case "Notes"
ColourPicker1.SelectedColour = frmMain.rtfNotes.SelColor
End Select
Call ColourPicker1.GetColours(App.EXEName, "Colours")
End Sub
Private Sub Form_Unload(Cancel As Integer)
Call ColourPicker1.SaveColours(App.EXEName, "Colours")
Call frmMain.ColourButton1.MouseUp
Set frmColour = Nothing
End Sub
Sub Main()
Dim Foo1$
Foo1 = "БЛА"
MsgBox Foo1
End Sub
gaidar писал(а):
- Код: Выделить всё
Select Case frmMain.tbsCodeTabs.SelectedItem.Key
Case "Code"
frmMain.rtfCode.SelColor = Colour
Case "Notes"
frmMain.rtfNotes.SelColor = Colour
End Select
Private Sub ColourPicker1_Cancel()
Unload Me
End Sub
A.A.Z. писал(а):Кул
- Код: Выделить всё
Sub Main()
Dim Foo1$
Foo1 = "БЛА"
MsgBox Foo1
End Sub
Респект всем Гайдарам вселенной
select * from myTable where user='me'
Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 105