Solved

VB.net 'Type' statements are no longer supported

Posted on 2014-04-09
2
486 Views
Last Modified: 2014-04-09
Hi I am trying to convert some VBA code to VB.net to use in an Excel add-in
but get the following error for the code below
'Type' statements are no longer supported; use 'Structure' statements instead.      


Type COPYDATASTRUCT
    dwData As Long
    cbData As Long
    lpData As Long
End Type
0
Comment
Question by:murbro
2 Comments
 
LVL 52

Accepted Solution

by:
Carl Tawn earned 500 total points
ID: 39989694
A direct translation would be:
Public Structure COPYDATASTRUCT
    Public dwData As Long
    Public cbData As Long
    Public lpData As Long
End Structure

Open in new window

0
 

Author Closing Comment

by:murbro
ID: 39989744
Thanks very much
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Introduction This Article is a follow-up to my Mappit! Addin Article (http://www.experts-exchange.com/A_2613.html), it was inspired by an email posting I made to EUSPRIG (http://www.eusprig.org/index.htm), I will briefly cover: 1) An overvie…
This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
The viewer will learn how to simulate a series of coin tosses with the rand() function and learn how to make these “tosses” depend on a predetermined probability. Flipping Coins in Excel: Enter =RAND() into cell A2: Recalculate the random variable…
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now