Jump to content

Type statement like Visual Basic


Recommended Posts

Hi there,

I'am new to Autoit and i must say i like it :)

Now i have a question I'am used to work with Visual Basic and i use the Type statement alot. Now i want to use that in Autoit as well. Is there a statement like that in Autoit or how can i do it otherwise? Do i have to use an Array for that..

Example VB:

Type EmployeeRecord   ' Create user-defined type.
       ID As Integer   ' Define elements of data type.
       Name As String * 20
       Address As String * 30
       Phone As Long
      HireDate As Date
End Type

How can i do the above in Autoit?

Thnx in advance,

VicSmurf :D

Edited by vicsmurf
Link to post
Share on other sites

Hi there,

I'am new to Autoit and i must say i like it :)

Now i have a question I'am used to work with Visual Basic and i use the Type statement alot. Now i want to use that in Autoit as well. Is there a statement like that in Autoit or how can i do it otherwise? Do i have to use an Array for that..

Example VB:

Type EmployeeRecord  ' Create user-defined type.

      ID As Integer  ' Define elements of data type.

      Name As String * 20

      Address As String * 30

      Phone As Long

      HireDate As Date

End Type

How can i do the above in Autoit?

Thnx in advance,

VicSmurf  :D

<{POST_SNAPBACK}>

No type as in VB. Look at Language reference in the help file :D
Link to post
Share on other sites

There is no alternitive to Type? (I looked in the Language Reference in the help file). Then i have to look further :)

<{POST_SNAPBACK}>

You right, no real alternative. the function return values with a specific type and you can convert some types with specific functions. :D

I was just pointing out the doc so you can understand the limit of the AutoIt3 language.

Link to post
Share on other sites

You right, no real alternative. the function return values with a specific type and you can convert some types with specific functions. :)

I was just pointing out the doc so you can understand the limit of the AutoIt3 language.

<{POST_SNAPBACK}>

Ok thnx for you awnsers! I will look further into it Edited by vicsmurf
Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...