Normal Topic Inserting pictures (Read 789 times)
NICEBERG
Full Member
Members
***
Offline


I came, I saw, I'm still
trying to figure it out!

Posts: 208
Location: Green Bay, WI
Joined: Dec 17th, 2003
Inserting pictures
Jun 24th, 2005 at 2:19pm
Print Post Print Post  
I'd like to work through this on my own, but time doesn't allow.

Scenario: Combobox (Dwg_Number); Image Element(Drawing)

Current programming: if Dwg_Number = "2430_19_000 then Drawing = "2430_1-_000.jpg" (and so on for each drawing)

This works okay, but I don't want to write a line of programming for every drawing - could be a LOT. I would like to just add the drawing numbers to the combobox and write a program statement that would add a .jpg extension and insert the corresponding pic into the Image Element on the "On element immediate change" of the Dwg_Number. I tried a few quick statements, but no luck so far.

Suggestions? (besides "learn the program" I mean??)

Thanks,
Fred
  
Back to top
 
IP Logged
 
NICEBERG
Full Member
Members
***
Offline


I came, I saw, I'm still
trying to figure it out!

Posts: 208
Location: Green Bay, WI
Joined: Dec 17th, 2003
Re: Inserting pictures
Reply #1 - Jun 24th, 2005 at 2:49pm
Print Post Print Post  
Never mind - I forgot to "dumb down" and just add the .jpg extension in the combobox, since there was room. Would be interested to see other ideas though.
  
Back to top
 
IP Logged
 
The Cow
YaBB Administrator
*****
Offline



Posts: 2530
Joined: Nov 22nd, 2002
Re: Inserting pictures
Reply #2 - Jun 24th, 2005 at 3:49pm
Print Post Print Post  
How about:
Code
Select All
Drawing = Dwg_Number + ".jpg"
 



  

Mark Lasersohn&&Programmer&&Lantica Software, LLC
Back to top
IP Logged
 
NICEBERG
Full Member
Members
***
Offline


I came, I saw, I'm still
trying to figure it out!

Posts: 208
Location: Green Bay, WI
Joined: Dec 17th, 2003
Re: Inserting pictures
Reply #3 - Jun 24th, 2005 at 4:23pm
Print Post Print Post  
I tried a statement "similar" to that, and kept getting an error, pointing at the .(period) in the .jpg, so I went the other route. Works your way, and saves me typing .jpg for every drawing. Thank you.
  
Back to top
 
IP Logged