Wanted: JPEG picture viewer VBX 
Author Message
 Wanted: JPEG picture viewer VBX

I am in need of an VBX that allows me to view .JPG pictures
within Visual Basic. Anyone who can recomend a viewer for me??

please respond with email.

Tore



Thu, 06 Nov 1997 03:00:00 GMT  
 Wanted: JPEG picture viewer VBX
I just got done downloading a group of files that read JPEG format in VB.
There is a vbx included, but it also requires 2 dll files. If you have
WWW access, type " http://werple.mira.net.au/~ecl " Then click to
download both zip files. If you need ftp support, the same files are
available on  "ftp.cica.indiana.edu/pub/pc/win3/desktop/wejc20.zip"

Use this same address and download ejcsdk20.zip

Hope This helps.
-



Fri, 07 Nov 1997 03:00:00 GMT  
 Wanted: JPEG picture viewer VBX
  I am trying to do something that maybee shouldn't be done. I have
many objects on my form that correspond to fields in an Access DB.
Prior to saving I check for NULL in the field and set it to " " if it
is NULL. Rather than do an If Then for every object, I want to put them
inside a FOR NEXT loop because the objects names end in a digit, IE:
Q1, Q2, Q3 etc. The delima is: How do you reference the contents of a
variable as being an object? The following is what I want to do, but
obviously the sintax is wrong. What is the correct (if any) way to do
this?

Dim oTemp  'Temporary variable to hold name of object on form
Dim fTemp  'Temporary variable to hold name of database field
Dim X      'for the FOR NEXT LOOP

FOR X = 1 to 8
  oTemp = "Q" & X
  fTemp = "FieldName" & X
  IF oTemp.TEXT = "" THEN
    oTemp.TEXT = " "
  END IF
  DataBase.Fields(fTemp) = oTemp.TEXT
NEXT

Any help would be appreciated. Replies can be sent via EMail.

Thanks!

Jim Hunter



Sat, 08 Nov 1997 03:00:00 GMT  
 Wanted: JPEG picture viewer VBX
Im not sure how to do what you want to do, but I do think that you have
been doing MUCH to much CLIST pgming on IBM main-frames

(What you want to do can be done just the way you have it in CLIST)

-Mike



Sat, 08 Nov 1997 03:00:00 GMT  
 Wanted: JPEG picture viewer VBX

You could go through each control and take a look at its tag value:

    For i = 0 To thisform.Controls.Count - 1
        If TypeOf thisform.Controls(i) Is TextBox Then
            If left$(thisform.Controls(i).tag,1) = "Q" Then ...
        End If
    Next I

------------------------------------------------------------
    HomePage = http://www.ionet.net/~robinson/home.shtml    
------------------------------------------------------------



Sun, 09 Nov 1997 03:00:00 GMT  
 Wanted: JPEG picture viewer VBX

You could go through each control and take a look at its tag value:

    For i = 0 To thisform.Controls.Count - 1
        If TypeOf thisform.Controls(i) Is TextBox Then
            If left$(thisform.Controls(i).tag,1) = "Q" Then ...
        End If
    Next I

------------------------------------------------------------
    HomePage = http://www.ionet.net/~robinson/home.shtml    
------------------------------------------------------------



Sun, 09 Nov 1997 03:00:00 GMT  
 Wanted: JPEG picture viewer VBX

Quote:

>   I am trying to do something that maybee shouldn't be done. I have
> many objects on my form that correspond to fields in an Access DB.
> Prior to saving I check for NULL in the field and set it to " " if it
> is NULL. Rather than do an If Then for every object, I want to put them
> inside a FOR NEXT loop because the objects names end in a digit, IE:
> Q1, Q2, Q3 etc. The delima is: How do you reference the contents of a
> variable as being an object? The following is what I want to do, but
> obviously the sintax is wrong. What is the correct (if any) way to do
> this?

> Dim oTemp  'Temporary variable to hold name of object on form
> Dim fTemp  'Temporary variable to hold name of database field
> Dim X      'for the FOR NEXT LOOP

> FOR X = 1 to 8
>   oTemp = "Q" & X
>   fTemp = "FieldName" & X
>   IF oTemp.TEXT = "" THEN
>     oTemp.TEXT = " "
>   END IF
>   DataBase.Fields(fTemp) = oTemp.TEXT
> NEXT

> Any help would be appreciated. Replies can be sent via EMail.

> Thanks!

> Jim Hunter


Hi Jim,

     It is possible, but in a slightly different way.
Set your text boxes as a control array.

Example:
        Rename Q1 as Q and give it an index of 1
        Rename Q2 as Q and give it an index of 2

        Doing that, you will be asked if you want to create a control array:
        say Yes

        Then proceed with the others, following the example above.  You won't
        be asked anymore if you want to create a control array.

Then your existing code can be used with minor modifications.

 FOR X = 1 to 8
   fTemp = "FieldName" & X        
   IF Q(X).TEXT = "" THEN
     Q(X).TEXT = " "
   END IF
   DataBase.Fields(fTemp) = Q(X).TEXT
 NEXT

You had the right idea, it just needed some slight modifications.

Another piece of advice:
     Are you doing this to avoid an "Invalid use of Null" error?
another way to avoid that, (faster since you avoid the above loop)
would be to do this where you access the data from your database

        Q(X) = "" & Database("FieldName" & X)

Good luck

Duane



Tue, 11 Nov 1997 03:00:00 GMT  
 
 [ 8 post ] 

 Relevant Pages 

1. Wanted - VBX control that will support JPEG Picture

2. JPEG info-viewer VBX (height, width etc)

3. JPEG Viewer VBX

4. ***WANTED*** HTML Viewer, VBX, DLL etc.

5. Wanted: File viewer/editor VBX

6. JPEG VBX - jpeg.txt [1/1]

7. Picture viewing VBX/OCX wanted

8. WANTED : vbx/ocx for loading/saving pictures.

9. WANTED: copy of VBX that can display pictures and multi-line text

10. Need jpeg viewer

11. VB4 GIF/JPEG VIEWER

12. RE Good JPEG Viewer Control

 

 
Powered by phpBB® Forum Software