Jump to content

Is there a easier way to code this???


ngtw16a

Recommended Posts

%((L:KNS80_DATA,number))%{case}

%{:0}%(@Va2('KNS80_WP_DATA:',number,(L:KNS80_DSP,number) int,(L:KNS80_DATA,number) int))%!6.2f!

%{:1}%(@Va2('KNS80_WP_DATA:',number,(L:KNS80_DSP,number) int,(L:KNS80_DATA,number) int))%!5.1f!

%{:2}%(@Va2('KNS80_WP_DATA:',number,(L:KNS80_DSP,number) int,(L:KNS80_DATA,number) int))%!4.1f!

%{end}

 

I'm displaying the same field...but depending on the case value...they have different formats...

Just wondering if I can code this with only have to do the macro once and not 3 times?

 

It does work as coded...just checking to see if it can be done 'better'.

 

That and we're about to get 12" of snow here :)

 

~Pat

Link to comment
Share on other sites

  • 2 weeks later...
No, there is no simpler method available...

Bill Leaming http://smileys.sur-la-toile.com/repository/Combat/0054.gif

Gauge Programming - 3d Modeling Military Visualizations

Flightsim.com Panels & Gauges Forum Moderator

Flightsim Rig: Intel Core i7-2600K - 8GB DDR3 1333 - EVGA GTX770 4GB - Win7 64bit Home Premium

Development Rig1: Intel Core i7-3770k - 16GB DDR3 - Dual Radeon HD7770 SLI 1GB - Win7 64bit Professional

Development Rig2: Intel Core i7-860 - 8GB DDR3 Corsair - GeForce GTS240 1GB - Win7 64bit Home Premium

NOTE: Unless explicitly stated in the post, everything written by my hand is MY opinion. I do NOT speak for any company, real or imagined...

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...