Advertisement
Guest User

Untitled

a guest
Nov 12th, 2018
291
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 3.88 KB | None | 0 0
  1. IsTest then
  2.                 SP_01.Show()
  3.             end if
  4.         else
  5.             SP_01.Ask()
  6.         end if
  7.        
  8.         if SP_01*{_1,_6} then
  9.             StickUsersDummy = {_1}
  10.         elseif SP_01*{_2,_5} then
  11.             StickUsersDummy = {_2}
  12.         elseif SP_01*{_3,_7} then
  13.             StickUsersDummy = {_3}
  14.         else
  15.             StickUsersDummy = {_4}
  16.         end if
  17.        
  18.             if StickUsersDummy*{_1,_3} then
  19.            
  20.                 SP_07s.Ask()
  21.                 'DO NOT DELETE THIS JUMP LABEL!
  22.                 START_OF_STICK_QUESTIONS:
  23.                 'DO NOT DELETE THIS JUMP LABEL!
  24.                
  25.                 do
  26.                 if SP_07s * {_1} then
  27.                     SP_02s.Ask()
  28.                 end if
  29.                
  30.                 SP_03s.Ask()
  31.                 if not(SP_02s = null) then 
  32.                     SP_04s.Label.Inserts["traS3RMCins"] = TRA_S3[{_1}]._scale1 + TRA_S3[{_1}]._scale2/7
  33.                     SP_04s.Label.Inserts["numOfSticksIns"] = SP_02s*SP_03s
  34.                     SP_04s.Ask()
  35.                 end if
  36.                
  37.                 loop while SP_04s = {_2}
  38.                
  39.                 SP_10s.Ask()
  40.                
  41.                 dim SP_09s_counter
  42.                 SP_09s_counter = 0
  43.        
  44.                 If SP_01*{_1} then
  45.                     If not(isnullObject(FindItem(IOM.Questions,"T13"))) then
  46.                         If T13.AnswerCount() > 0 then
  47.                             SP_09s = T13
  48.                             SP_09s._99 = T13._99
  49.                            
  50.                             If IOM.Info.IsTest then
  51.                                 IOM.Questions.SP_09s.Banners.AddNew("pictureTop","<span style='color:red'>Answer autopunched from T13.<br/>SHOWN only in TEST mode!</span>")
  52.                                 SP_09s.Show()
  53.                             End If
  54.                         Else
  55.                             SP_09s_counter = SP_09s_counter + 1
  56.                         End If
  57.                     Else
  58.                         SP_09s_counter = SP_09s_counter + 1
  59.                     End If
  60.                 Else
  61.                     SP_09s_counter = SP_09s_counter + 1
  62.                 End If
  63.                
  64.                 If SP_09s_counter > 0 then
  65.                     SP_09s.Ask()
  66.                 End if
  67.                
  68.                 If SP_09s.AnswerCount() > 0 then
  69.                     SP_09s_GLO = SP_09s.Categories[SP_09s].Properties["GLOBAL_CHANNEL"]
  70.                 End If
  71.                                
  72.                 if IOM.Info.IsDebug or IOM.Info.IsTest then
  73.                     SP_09s_GLO.Show()
  74.                 end if
  75.        
  76.                 SP_05s_Intro.Show()
  77.                 SP_05s.Ask()
  78.                
  79.                 SP_06s.Ask()
  80.                
  81.                 SP_08s.Ask()
  82.                
  83.                 If SP_08s.AnswerCount() > 0 then
  84.                     SP_08s_GLO = SP_08s.Categories[SP_08s].Properties["GLOBAL_CHANNEL"]
  85.                 End If
  86.                                
  87.                 If IOM.Info.IsDebug or IOM.Info.IsTest then
  88.                     SP_08s_GLO.Show()
  89.                 End If
  90.             end if 'if StickUsersDummy*{_1,_3} then
  91.            
  92.             if StickUsersDummy*{_2,_3} then
  93.            
  94.                 SP_07p_Intro.Show()
  95.            
  96.                 SP_07p.Ask()
  97.                
  98.                 SP_03p.Ask()
  99.                
  100.                 dim SP_09p_counter
  101.                 SP_09p_counter = 0
  102.    
  103.                 If SP_01*{_2} then
  104.                     If not(isnullObject(FindItem(IOM.Questions,"T13"))) then
  105.                         If T13.AnswerCount() > 0 then
  106.                             SP_09p = T13
  107.                             SP_09p._99 = T13._99
  108.                            
  109.                             If IOM.Info.IsTest then
  110.                                 IOM.Questions.SP_09s.Banners.AddNew("pictureTop","<span style='color:red'>Answer autopunched from T13.<br/>SHOWN only in TEST mode!</span>")
  111.                                 SP_09p.Show()
  112.                             End If
  113.                         Else
  114.                             SP_09p_counter = SP_09p_counter + 1
  115.                         End If
  116.                     Else
  117.                         SP_09p_counter = SP_09p_counter + 1
  118.                     End If
  119.                 Else
  120.                     SP_09p_counter = SP_09p_counter + 1
  121.                 End If
  122.                
  123.                 If SP_09p_counter > 0 then
  124.                     SP_09p.Ask()
  125.                 End if
  126.  
  127.                 If SP_09p.AnswerCount() > 0 then
  128.                     SP_09p_GLO = SP_09p.Categories[SP_09p].Properties["GLOBAL_CHANNEL"]
  129.                 End If
  130.                                
  131.                 If IOM.Info.IsDebug or IOM.Info.IsTest then
  132.                     SP_09p_GLO.Show()
  133.                 End If
  134.                        
  135.                 SP_05pIntro.Show()
  136.                
  137.                 SP_05p.Ask()
  138.        
  139.                 SP_06p.Ask()
  140.                
  141.                 SP_08p.Ask()
  142.                
  143.                 If SP_08p.AnswerCount() > 0 then
  144.                     SP_08p_GLO = SP_08p.Categories[SP_08p].Properties["GLOBAL_CHANNEL"]
  145.                 End If
  146.                
  147.                 if IOM.Info.IsDebug or IOM.Info.IsTest then
  148.                     SP_08p_GLO.Show()
  149.                 end if
  150.                
  151.             end if 'if StickUsersDummy*{_2,_3} then
  152.  
  153.         SetSectionTime("Section_SP_EndTime",IOM)
  154.          
  155.         if IOM.Info.IsTest then
  156.             IOM.Info.EstimatedPages = IOM.Info.EstimatedPages + 2
  157.             Section_SP_StartTime.Show()
  158.             Section_SP_EndTime.Show()
  159.         end if
  160.    
  161.     end if 'if TRA_S2[{_1}]._scale*{_1,_2} and RespondentType*{_1} then
  162.  
  163. '<section/>9 - 9. STICK PURCHASE
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement