>> QUERY([FWClient];[FWClient]Subdomain=$host) >> >> If (Records in selection([FWClient])=1) >> >> return:="/"+String([FWClient]Version)+$inURL >> >> Else >> >> return:=$inURL >> >> End if > > > Return is a function. You have it as a variable and just assign a value (this > is not $0!!). The real one works because the default is that if nothing > returned, use the $inURL. > > return("/"+String([FWClient]Version)+$inURL)
You should definitely give the "Interpreter", "Methods", and "Libraries" chapters a thorough read before going much farther. Active4D differs from and hugely enhances 4D is some important ways. In Active4D you are free to use whatever spacing you want in your code, so instead of: "/"+String([FWClient]Version)+$inURL you can write: "/" + String([FWClient]Version) + $inURL which is a whole lot easier for the eye to parse, even with syntax highlighting. Also, capitalization doesn't matter in Active4D, so feel free to make the commands, keywords, etc. all in lowercase: query([fwclient]; [fwclient]subdomain = $host) Regards, Aparajita www.aparajitaworld.com "If you dare to fail, you are bound to succeed." - Sri Chinmoy | www.srichinmoy.org _______________________________________________ Active4D-dev mailing list Active4D-dev@aparajitaworld.com http://list.aparajitaworld.com/listinfo/active4d-dev Archives: http://vasudev.aparajitaworld.com/archive/active4d-dev/