Jump to content
Sign in to follow this  
vicsmurf

Type statement like Visual Basic

Recommended Posts

vicsmurf

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

Share this post


Link to post
Share on other sites
jpm

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

Share this post


Link to post
Share on other sites
vicsmurf

No type as in VB. Look at Language reference in  the help file :D

<{POST_SNAPBACK}>

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

Share this post


Link to post
Share on other sites
jpm

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.

Share this post


Link to post
Share on other sites
vicsmurf

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

Share this post


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
Sign in to follow this  

×