Power Builder - Version SO

 
Vista:

Version SO

Publicado por Carlos Rojas (66 intervenciones) el 10/08/2004 06:51:06
Hola amigos, queria saber con que funcio puedo reconocer la version de sistema operativo que estoy usando
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

RE:Version SO

Publicado por Carlos Gil (124 intervenciones) el 10/08/2004 15:42:54
Hola Tocayo, de los ejemplos de power:

integer resp
string temp
resp = getenvironment(env)

choose case env.cputype
case alpha!
st_cpu_type.text = 'Alpha'
case hppa!
st_cpu_type.text = 'HPPA'
case i286!
st_cpu_type.text = '286'
case i386!
st_cpu_type.text = '386'
case i486!
st_cpu_type.text = '486'
case m68000!
st_cpu_type.text = '68000'
case m68020!
st_cpu_type.text = '68020'
case m68030!
st_cpu_type.text = '68030'
case m68040!
st_cpu_type.text = '68040'
case mips!
st_cpu_type.text = 'MIPS'
case pentium!
st_cpu_type.text = 'Pentium'
case powerpc!
st_cpu_type.text = 'PowerPC'
case sparc!
st_cpu_type.text = 'Sparc'
end choose

choose case env.ostype
case aix!
temp = 'AIX'
case hpux!
temp = 'HPUX'
case osf1!
temp = 'OSF1'
case sol2!
temp = 'Solaris 2'
case Windows!
temp = 'Windows'
case Windowsnt!
temp = 'Windows NT'
end choose
st_ostype.text = temp + ' '+string(env.osmajorrevision)+'.'+string(env.osminorrevision)+'.'+string(env.osfixesrevision)
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar