VERSION 5.00
Begin VB.Form frmPrecoCS 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "Envia preço/kg para CS"
   ClientHeight    =   1365
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   3900
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   Moveable        =   0   'False
   ScaleHeight     =   1365
   ScaleWidth      =   3900
   StartUpPosition =   2  'CenterScreen
   Begin VB.CommandButton btnEnviar 
      Caption         =   "Enviar"
      Height          =   375
      Left            =   960
      TabIndex        =   2
      Top             =   840
      Width           =   1935
   End
   Begin VB.TextBox edtPreco 
      Height          =   375
      Left            =   2520
      MaxLength       =   7
      TabIndex        =   0
      Top             =   240
      Width           =   975
   End
   Begin VB.Label Label1 
      Caption         =   "Digite o preço/kg (xxxx,xx):"
      Height          =   255
      Left            =   480
      TabIndex        =   1
      Top             =   360
      Width           =   1935
   End
End
Attribute VB_Name = "frmPrecoCS"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False

Private Sub btnEnviar_Click()
    Dim preco As Double
    
    preco = CDbl(edtPreco.Text)
    
    If EnviaPrecoCS(0, preco) = False Then
        ExibeMsgErro (Me.hWnd)
    End If
End Sub
