![]() |
Free printable kids game - game forms builder Version 1.00 and Visual Basic projects (c) by Valery V Shmeleff Moscow/Russia www.oflameron.ru and www.oflameron.com |
|
|
|
![]() |
||||
Dim wrd As New Word.Application ''Create Word as COM [ web1 ] [ web2 ] [ web3 ] [ web4 ] Dim Pt As String, St As String ''Declare variables Private Sub Picture2_Click() ''Standard generation of game form ![]() St = App.Path ''Path to generator program St = St + "\oflameron-form2.xml" ''Path to XML template wrd.Visible = True ''Open Word Set doc = wrd.Documents.Add(St) ''Add Word doc Dim k, g For i = 0 To 15 For j = 0 To 59 Randomize ''Use random number generator k = Int((20 * Rnd) + 1) g = g + 1 frmOflameron.Caption = "Complete " + CStr(g) + " cells from 960" If k = 1 Then repltext = "1" If k = 1 Then FntColor = wdColorBlack ''Symbol color If k = 1 Then CellColor = wdColorWhite ''Cell background color +1 If k = 2 Then repltext = "-1" If k = 2 Then FntColor = wdColorBlack ''Symbol color If k = 2 Then CellColor = wdColorWhite ''Cell background color -1 If k = 3 Then repltext = "5" If k = 3 Then FntColor = wdColorBlack ''Symbol color If k = 3 Then CellColor = wdColorWhite ''Cell background color +5 If k = 4 Then repltext = "-5" If k = 4 Then FntColor = wdColorBlack ''Symbol color If k = 4 Then CellColor = wdColorWhite ''Cell background color -5 |
|
|
|
|
ee@oflameron.ru |