help files
Z505 | PasWiki | FUQ | Search | Main Docs | API Guide



[Overview][Constants][Procedures and functions] Reference for unit 'pwumain' (#powtils_main)

IsVar

Declaration

Source position: pwumain.pas line 200

function IsVar(

  const name: String

):Byte;

Notes

This function is similar to the IsCgiVar function except it checks macro vars that were set with SetVar().

Pretend you have previously called SetVar (SetWebVar). The IsVar function can detect that your var was previously set.

Example

// if you visit http://url.com/cgi-bin/prog?p=page1
begin
  if IsVar('p') then outln('we found the p var');
  SetWebVar('macro', 'hello');
  if IsVar('macro') then outln('we found the macro var');
end.





lufdoc, Powtils, fpc, freepascal, delphi, kylix, c/c++, mysql, cgi web framework docs, Z505