VB hint needed

Pierre

Lifetime Supporting Member
Join Date
Apr 2002
Location
Montreal
Posts
1,669
The system has many PCs and a network of PLCs and somewhere a barcode scanner.

We have managed to bring into a Database, the realtime scan results in ASCII and now we want to add one not essential but nice feature.

Has the parts flow down the process line, they are scanned and we want to show the picture of the part in front of an QC inspector.

Everything works but this:

We have the part number and want tu use it as the .bmp file has the same number value.

For example, for parts No. 0001 there is a file named 0001.bmp

How can I add a suffix to this part number in order to retreive the image file name.

What don't work is

Picture1.Picture = LoadPicture(App.Path & "\DB\bmp\" & rs!P_NO ?????.BMP extension addedhere?????)

Tancks again guys!!!
 
Pierre,

Assuming you have all your variables properly configured, I think what you need is:

Picture1.Picture = LoadPicture(App.Path & "\DB\bmp\" & rs!P_NO & ".bmp")

This should simply append the .bmp to the end of the part number.

Steve
 
Ain't this site FANTASTIC?

Tanks Steve.

I'm an "older days hacker".

I will never ask a question unless I have spent a lot of time trying to figure out how the thing works myself.

After 4 hours of messing up the database and searching help files and the web. I tought I could ask.

Darnest thing is that it never occured to me that my searches would have been more succesfull if I new the word "append". I was looking fo "suffix".

When the wise man points at the moon I sometime seem to look at the finger :(

Tanck again Steve and PHIL!
 

Similar Topics

Recently a poster here was looking for help to locate the proper software to use with a specific PLC model. A regular here supplied the answer in...
Replies
0
Views
1,286
Hey ya'll I'm guessing im doing this right. Im a student at a technical college and have a question. my teacher want's us to design a program that...
Replies
5
Views
1,609
Hi all Using RSlogix 5k( but may be applicable to any other plc) in my project i have 6 devices (it can be motors or any other heavy...
Replies
14
Views
2,892
wanted to learn so i dove right in.bought plc and software.trilogi per an instructor at local college.have about 6 pages of different diagrams for...
Replies
3
Views
2,026
I have an old PLC (circa 2007) consisting of Telemecanique/Modicon/Schneider Electric devices. The system has developed errors and unfortunately...
Replies
2
Views
211
Back
Top Bottom