Zetrix
Advanced Premium Member
ciao a tutti,
qualcuno sa come si scrive la radice quadrata in vb.net ?
in Spaziometria si scrive Sqr ma in SpazioLight da errore lo script
forse perche le librerie sono diverse da Spaziometria
	
	
	
		
				
			qualcuno sa come si scrive la radice quadrata in vb.net ?
in Spaziometria si scrive Sqr ma in SpazioLight da errore lo script
forse perche le librerie sono diverse da Spaziometria
		Codice:
	
	Class Script
    Sub Main
        Dim Nu(9),a(5),Na(10),aN(5),Ru(1),Rt(5),Num1,Num2,Num3,Num4,Num5,Num6,Num7,Num8,Num9,Num10 As Integer
        Dim x , y , b, c ,d, e , k, s , r , es ,Ruota As Integer
        Dim ini As Integer = EstrazioniArchivio
        Dim fin As Integer = EstrazioniArchivio
        Dim T()  As String
        T = {" Ruota "," EE1 "," EE2 "," EE3 "," EE4 "," EE5 " ," Ruota "," Sqr1"," Sqr2"," Sqr3"," Sqr4"," Sqr5 "," Ruota ","  Data "}
        Call InitTabella(T,RGB(0,0,255),,,RGB(200,155,255),,"Dubai Light")
        For es = ini To fin
            For Ruota = 1 To 11
                aN(1) = Estratto(es,Ruota,1)
                aN(2) = Estratto(es,Ruota,2)
                aN(3) = Estratto(es,Ruota,3)
                aN(4) = Estratto(es,Ruota,4)
                aN(5) = Estratto(es,Ruota,5)
                a(1) = Sqr(Estratto(es,Ruota,1))
                a(2) = Sqr(Estratto(es,Ruota,2))
                a(3) = Sqr(Estratto(es,Ruota,3))
                a(4) = Sqr(Estratto(es,Ruota,4))
                a(5) = Sqr(Estratto(es,Ruota,5))
                Rt(1) = Left(a(1),3)
                Rt(2) = Left(a(2),3)
                Rt(3) = Left(a(3),3)
                Rt(4) = Left(a(4),3)
                Rt(5) = Left(a(5),3)
                T = {NomeRuota(Ruota),aN(1),aN(2),aN(3),aN(4),aN(5),NomeRuota(Ruota),Rt(1),Rt(2),Rt(3),Rt(4),Rt(5),NomeRuota(Ruota ),DataEstrazione(es)}
                Call AddRigaTabella(T,RGB(59,159,182),,,RGB(0,0,255),,"Dubai Light ")
                For x = 1 To 9
                    y=9
                    If aN(1) And x =  Rt(1) Then Call SetColoreCellaRighe (1,RGB(255,204,0),RGB(0,0,255) )
                    If aN(2) And x =  Rt(2) Then Call SetColoreCellaRighe (2,RGB(255,204,0),RGB(0,0,255) )
                    If aN(3) And x =  Rt(3) Then Call SetColoreCellaRighe (3,RGB(255,204,0),RGB(0,0,255) )
                    If aN(4) And x =  Rt(4) Then Call SetColoreCellaRighe (4,RGB(255,204,0),RGB(0,0,255) )
                    If aN(5) And x =  Rt(5) Then Call SetColoreCellaRighe (5,RGB(255,204,0),RGB(0,0,255) )
                    If Rt(1) = x Then Call SetColoreCellaRighe (7,RGB(253,233,16),RGB(0,0,255))
                    If Rt(2) = x Then Call SetColoreCellaRighe (8,RGB(253,233,16),RGB(0,0,255))
                    If Rt(3) = x Then Call SetColoreCellaRighe (9,RGB(253,233,16),RGB(0,0,255))
                    If Rt(4) = x Then Call SetColoreCellaRighe (10,RGB(253,233,16),RGB(0,0,255))
                    If Rt(5) = x Then Call SetColoreCellaRighe (11,RGB(253,233,16),RGB(0,0,255))
                    If Rt(1) = y Then Call SetColoreCellaRighe (7,ColoreRosa,ColoreNero)
                    If Rt(2) = y Then Call SetColoreCellaRighe (8,ColoreRosa,ColoreNero)
                    If Rt(3) = y Then Call SetColoreCellaRighe (9,ColoreRosa,ColoreNero)
                    If Rt(4) = y Then Call SetColoreCellaRighe (10,ColoreRosa,ColoreNero)
                    If Rt(5) = y Then Call SetColoreCellaRighe (11,ColoreRosa,ColoreNero)
                    If aN(1) And y =  Rt(1) Then Call SetColoreCellaRighe (1,ColoreRosa,ColoreNero)
                    If aN(2) And y =  Rt(2) Then Call SetColoreCellaRighe (2,ColoreRosa,ColoreNero)
                    If aN(3) And y =  Rt(3) Then Call SetColoreCellaRighe (3,ColoreRosa,ColoreNero)
                    If aN(4) And y =  Rt(4) Then Call SetColoreCellaRighe (4,ColoreRosa,ColoreNero)
                    If aN(5) And y =  Rt(5) Then Call SetColoreCellaRighe (5,ColoreRosa,ColoreNero)
                    Call SetColoreCellaRighe(0,RGB(0,0,255),RGB(200,155,255))
                    Call SetColoreCellaRighe(6,RGB(0,0,255),RGB(200,155,255))
                    Call SetColoreCellaRighe(12,RGB(0,0,255),RGB(200,155,255))
                    Call SetColoreCellaRighe(13,RGB(0,0,255),RGB(200,155,255))
                Next
            Next
        Next
        CreaTabella
    End Sub
End Class
			
				Ultima modifica: 
			
		
	
								
								
									
	
								
							
							 
 
		 
 
		 
 
		
 
     
     
     
     
     
 
		