Rengasami Ramanujam
Rengasami Ramanujam

Reputation: 1898

expected end of statement in VB form

We get "expected : end of statement error" for the below code and VB highlights Begin VB.Form Form1

Begin VB.Form Form1
   Caption = "Form1"
   ClientHeight = 3090
   ClientLeft = 60
   ClientTop = 450
   ClientWidth = 4680
   Icon  = "Form1.frx":0000
   LinkTopic = "Form1"
   ScaleHeight = 3090
   ScaleWidth = 4680
   StartUpPosition = 3    'Windows Default
End

Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False

Upvotes: 0

Views: 729

Answers (1)

Matt Wilko
Matt Wilko

Reputation: 27342

That code is from a .frm file and is not editable in the IDE.

You don't need to type this information in, it is auto generated when you add edit and remove control and properties from your form.

Unlike VB.NET you cannot edit the 'designer' code in the VB6 IDE yourself.

Upvotes: 3

Related Questions