SHARE
TWEET

gui form for chek

a guest Jun 28th, 2017 126 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ' Gambas class file
  2.  
  3. Public Sub Button1_Click()
  4.   Dim total As Integer
  5.   Dim string2print As String
  6.   'v1,v2,v3,v4 - имя valuebox (хз как число вытащить отуда) - цена для каждого товара
  7.   total = Val(v1.text) + Val(v2.text) + Val(v3.text) + Val(v4.text) 'получаем текст и переводим его в цифровое значение
  8.   'Print total
  9.   ttl.text = Str(total) 'выводим значение в текстовое поле
  10.   string2print = n1.text & "=" & v1.text & " | " & n2.text & "=" & v2.text & "|" & n3.text & "=" & v3.text & "|" & n4.text & "=" & v4.text & "/" & company.text & "/"
  11.   Message(string2print)
  12. End
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top