|
| HOMEPAGE | INDICE FORUM | REGOLAMENTO | ::. | NEI PREFERITI | .:: | RSS Forum | RSS News | NEWS web | NEWS software | |
| PUBBLICITA' | | | ARTICOLI | WIN XP | VISTA | WIN 7 | REGISTRI | SOFTWARE | MANUALI | RECENSIONI | LINUX | HUMOR | HARDWARE | DOWNLOAD | | | CERCA nel FORUM » | |
19-05-2003, 17.13.23 | #31 | |
Guest
Messaggi: n/a
|
Quota:
|
|
19-05-2003, 17.17.29 | #32 |
Guest
Messaggi: n/a
|
... più che distratto, io solitamente programmo in Delphi, quindi non sono proprio a mio agio con le graffe (cmq nel ciclo IF le metterei appunto sotto all'IF . Per farti un idea del mio stile di programmazione (Delphi in questo caso) ti copio un pezzo di un mio programma...
Codice:
function GetUserAgent(): string; var reg: TRegistry; browser, framework: string; begin reg := TRegistry.Create; try // Proviamo ad aprire la chiave dell'user agent di IE... try reg.RootKey := HKEY_CURRENT_USER; reg.OpenKey('Software\Microsoft\Windows\CurrentVersion\Internet Settings', True); browser := reg.ReadString('User Agent'); // ... se la lettura avesse avuto qualche problema except browser := 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)'; end; // Work-around per la versione del .NET Framework... try reg.RootKey := HKEY_LOCAL_MACHINE; reg.OpenKey( 'Software\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\EEB2F510C51F7F146973745A53A3E092\InstallProperties', True); framework := reg.ReadString('DisplayVersion'); Result := copy(browser, 1, length(browser) - 1) + '; .NET CLR ' + framework + ')'; // ... se la lettura avesse avuto qualche problema except Result := browser; end; reg.CloseKey; finally reg.Free; end; end; P.S. Come vedi uso molti commenti, così poi se ci devi mettere le mani hai tutto più chiaro |
19-05-2003, 17.19.42 | #33 |
Gold Member
Registrato: 07-01-2002
Loc.: Milano
Messaggi: 2.863
|
ahhhh .. ok ..
Bye |
20-05-2003, 08.11.39 | #34 | |
Gold Member
WT Expert
Registrato: 09-01-2002
Loc.: None of your business
Messaggi: 5.505
|
Quota:
Le tue graffe sono i Begin ({) e gli End (}) |
|
21-05-2003, 15.56.22 | #35 | |
Guest
Messaggi: n/a
|
Quota:
|
|
30-05-2003, 14.09.13 | #36 | |
Hero Member
Registrato: 30-08-2002
Loc.: Portogruaro (VE) - Roma
Messaggi: 513
|
Quota:
Con HTML invece preferisco allineare i tag di apertura in verticale con quelli di chiusura (tranne quelli di formattazione del testo e <TD></TD>)... |
|
02-06-2003, 22.59.30 | #37 |
WT Dragon
Registrato: 18-11-2002
Loc.: VDV (Very Deep Void)
Messaggi: 2.923
|
clap clap.... molto ordinato eke... uso lo stesso stile in Delphi pure io. Il begin lo metti sotto e identato di 2 posizioni e l'end del blocco alla pari del begin? Se sì 6 proprio (Y).
___________________________________
... |
Utenti attualmente attivi che stanno leggendo questa discussione: 1 (0 utenti e 1 ospiti) | |
Strumenti discussione | |
|
|
Discussioni simili | ||||
Discussione | Autore discussione | Forum | Risposte | Ultimo messaggio |
Referendum 12-13 giugno | Gigi75 | Chiacchiere in libertà | 937 | 09-11-2008 12.53.07 |
ASSALTO AL CONSOLATO ITALIANO A BENGASI, 11 MORTI | Gigi75 | Chiacchiere in libertà | 152 | 20-02-2006 01.03.02 |
L'Airbus 380 | Daniela | Chiacchiere in libertà | 83 | 19-01-2005 16.08.19 |
Berlusca & Co. 2 - La vendetta | Paco | Chiacchiere in libertà | 1145 | 04-01-2005 20.28.18 |
Stasera in TV | Alhazred | Chiacchiere in libertà | 2217 | 11-12-2004 17.11.06 |