Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

write to a file user defined Data types

Status
Not open for further replies.

Fursten

Programmer
Dec 27, 2000
403
PT
Hi,

Anyone knows how can I write to a file the value of all the variables defined in a data type?

For instance, if I have this:

Public type test
name as string
age as integer
end type

test.name = "something"
test.age = "32"

I would like to write something and 32 to one file. However it seems that I can´t use one data type in the wriete method. It seems that doesn exists any method able to do suchthing like for test.item(0) to test.item(1), because user defined data type is not an object, so doesn´t have own methods...

Is there any solution to this? Thank you? :)

Sergio Oliveira
 
Rather than use a type, why not use a class and have a Print method?

Chaz
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top