as keyword

Just starting out? Need help? Post your questions and find answers here.
Joseph.LM.King

as keyword

Post by Joseph.LM.King »

what does 'as' do, it highlights in pb 4.0 however, it seems to do nothing.
Dare
Addict
Addict
Posts: 1965
Joined: Mon May 29, 2006 1:01 am
Location: Outback

Post by Dare »

One place it is used in "Import":

Code: Select all

Import "Filename"
  FunctionName.<type>(<parameter>, [, <parameter> [= DefaultValue]...]) [As "SymbolName"]
  ...
I can't think of any others off the top of my head.
Dare2 cut down to size
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8451
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Post by netmaestro »

I don't believe there are any other uses, it's a new keyword for version 4's Import command.
BERESHEIT
Joseph.LM.King

Post by Joseph.LM.King »

oh that's fine. it would make purebasic very comfortable if you could declare types as byte, and as whatever using the keyword 'as'
Post Reply