|
-
Sep 7th, 2000, 11:40 AM
#1
Thread Starter
Lively Member
I haven´t use the "TYPE" variables, how can i call the Currency var from my form.
Private Type FORMATS
Currency As Double
End Type
sub form_load()
Formats.currency = "123.00" ' is this correct?
end sub
-
Sep 7th, 2000, 11:48 AM
#2
Member
You need to set your Type to a variable then you can set the Currency to your value also there is a Data type in VB called Currency.
Dim myFormats as FORMATS
myFormats.Currency = 123.00
VB 6, SQL, Java, AutoLISP, Avenue and on a good day AML
-
Sep 7th, 2000, 11:55 AM
#3
Thread Starter
Lively Member
ok but my question is about other thing
This is the correct example and i don't know how to use the data type "X" on a simple form
Private Type Group1
X As Double
End Type
sub form_load()
Group1.X = "123.00" ' is this correct?
end sub
-
Sep 7th, 2000, 12:01 PM
#4
Private Type Group1
X As Double
End Type
Dim grp1 as Group1
grp1.x = 'whatever
-
Sep 7th, 2000, 12:04 PM
#5
Member
Ok
You need to assign the type Group1 to a variable
'
'
Dim myVar as Group1
sub form_load()
''Group1.X = "123.00" ' is this correct?
' this is what you want
myVar.X = 123.00 'X is a double you can't assign a string
end sub
VB 6, SQL, Java, AutoLISP, Avenue and on a good day AML
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|